Search Results

Search: Posts Made By: Selva_2507
1,909
Posted By Selva_2507
I think the below will work well, if you not like...
I think the below will work well, if you not like to replace the files on the same directory


while `read line`
do
sed 's/apple/orange/g' $line > <NewPath>/$line
done < changes.txt
...
1,902
Posted By Selva_2507
Need to pass shell arguments into Nawk/awk
Thanks you all for quick resposne. sorry I think i m not clear with my initial query.

Scripts should run like this ": ksh encrypt.ksh <input file> <Length> > Outputfile

Inputfile = different...
1,902
Posted By Selva_2507
Need to pass shell arguments into Nawk/awk
Hi,

I am in critical need of help, Thanks a ton for your help.

I need to know how to pass the shell argument into nawk code in AIX. so that my file gets passed into that awk script and it can...
Forum: AIX 01-10-2014
6,830
Posted By Selva_2507
Check process count
Hi,

We have scheduled few jobs/scripts in cron and it runs on daily basis at a specified time. We have a cron jobs has various parameters for main scripts like

/home/test/mainscript.ksh...
1,732
Posted By Selva_2507
Find duplicate rows between files
Hi champs,

I have one of the requirement, where I need to compare two files line by line and ignore duplicates. Note, I hav files in sorted order.

I have tried using the comm command, but its...
2,324
Posted By Selva_2507
Thanks all for your input and the code, it worked...
Thanks all for your input and the code, it worked like a champ.. you help is always appreciated.. thank you so much

---------- Post updated at 07:43 PM ---------- Previous update was at 07:41 PM...
2,324
Posted By Selva_2507
Thanks for your responses. the post by akshey has...
Thanks for your responses. the post by akshey has worked like a champ for 3 columns, but it missed to print .. in between the column, but its fine.

Now the requirement has been changed, its having...
2,324
Posted By Selva_2507
Thanks for your prompt response, but its not...
Thanks for your prompt response, but its not giving the output which is expected, instaed its giving as below


Database1..Table1..col1
Database1..Table1..col2
Database1..Table1..col2
..
...
...
2,324
Posted By Selva_2507
I have tied the below,i knew there is some logic...
I have tied the below,i knew there is some logic is missing, unable to capture it.


olddb=""
oldtb=""
while `read line`
do
DB=`echo $line | awk -F' ' '{print $1}'`
TB=`echo $line | awk -F' '...
2,324
Posted By Selva_2507
Combining rows into columns
hi experts,

I have a flat file with below contents

Database1 Table1 column1
Database1 Table1 column2
Database1 Table1 column3
Database1 Table1 column4
Database1 Table2 Column1
Database1...
1,440
Posted By Selva_2507
Thanks for your response. The requirement...
Thanks for your response.

The requirement is to compare two files (which has "database name"|"Tablename"|"Column1,column2,column3") in this pattern, but there might be a mismatch in number of...
1,440
Posted By Selva_2507
Compare files and share output from both files
hi all,

Thanks to all for your great help...

I have a scenario that I have two files (file1 & file2). I need to compare two files entire row by row and share the output if any discrepancies...
10,162
Posted By Selva_2507
Pass file as one of argument in shell
Hi,

Is there any way that we can pass one file as one of the argument in shell script ?
9,769
Posted By Selva_2507
Compare two files and
yeah.. thank you so much, itworked...
9,769
Posted By Selva_2507
Compare two files and get only missing names
Oldfile

LONDON
HUNGARY
Budapest
california

Newfile

HUNGARY
california
North carolina
India
LONDON
Budapest
Switzerland


Output should be:
9,769
Posted By Selva_2507
Compare two files and get only missing names
I need to compare two files (oldfile1 & newfile). Need to ignore the values which are present in both files. At the same time, i need to get only records in new file.

Tried using Join -v1 -v2...
4,212
Posted By Selva_2507
Thanks veri for your response. the scenario...
Thanks veri for your response.

the scenario goes like this,

I am getting all table list and from that using sp_help <tablename> getting the column list which has char/varchar.

Those details...
4,212
Posted By Selva_2507
Extract top 20 records from sybase db in shell script
Hi, I am new to advanced scripting.

I need to get top 20 records from database (Sybase) with a condition that all Char/varchar columns should have more than 4 characters.

I need to do this via...
Showing results 1 to 18 of 18

 
All times are GMT -4. The time now is 01:02 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy