Search Results

Search: Posts Made By: sachin.bajaj
2,175
Posted By sachin.bajaj
Which OS are you using?
Which OS are you using?
1,744
Posted By sachin.bajaj
"comm file1 file2" gives you three columns 1->...
"comm file1 file2" gives you three columns
1-> rows only present in file1
2-> rows only present in file2
3-> rows that are common to both files

This should help you if your tables are identical...
1,744
Posted By sachin.bajaj
Try 'comm' command
A sample result should help!!

Anyways, from what I imagine, try to capture table name along with the column name; sort the file and use the command "comm".
26,973
Posted By sachin.bajaj
daPeach, Which shell r u using? >cat 1 ...
daPeach,
Which shell r u using?

>cat 1
#!/usr/bin/ksh

string1=qwerWhatever
s1f4=${string1:0:4}
echo $s1f4

>
>1
1[4]: s1f4=${string1:0:4}: bad substitution
26,973
Posted By sachin.bajaj
Another Solution......... #!/usr/bin/ksh ...
Another Solution.........

#!/usr/bin/ksh

string1=qwerWhatever
string2=qwerWhatever1
currdir=`pwd`

echo "string1 ==> $string1"
echo "string2 ==> $string2"
echo "currdir ==> $currdir"
...
11,234
Posted By sachin.bajaj
You may use 'paste' if you require something like...
You may use 'paste' if you require something like (Delimiter "|")

TypeID 0xA|InfoA None|InfoB None.........................

nawk 'c-->0;$0~s{if(b)for(c=b+1;c>1;c--)print...
11,234
Posted By sachin.bajaj
Try this... nawk...
Try this...
nawk 'c-->0;$0~s{if(b)for(c=b+1;c>1;c--)print r[(NR-c+1)%b];print;c=a}b{r[NR%b]=$0}' b=2 a=4 s="string" file1
...where "b" and "a" are the number of lines to print before and after...
87,660
Posted By sachin.bajaj
Try using Here Document
This worked for me


mailx -s "$email_subject" $EmailRecipients << EOM
`uuencode $exp_file $exp_file`

Please find the file attached

Message in Body goes here.............

EOM
Showing results 1 to 8 of 8

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