Search Results

Search: Posts Made By: Mary James
1,907
Posted By Mary James
Got the fix for my issue type ...
Got the fix for my issue

type


echo $SHELL

It will give the default shell.For my home directory it was ksh and my script was csh

So added this to the beggining of my script

...
1,907
Posted By Mary James
Syntax Error in Unix Shell Script
I am trying to run a unix script in my home directory.Snippet below


echo "`date '+%Y%m%d_%H%M%S'` Getting ProductList.dat"
if ( -f $DIR/ProductList.dat) then
cp $DIR/ProductList.dat...
2,523
Posted By Mary James
How can I modify the awk program if I need to...
How can I modify the awk program if I need to compare file2 and the second item in file1(Description here)

Please suggest

---------- Post updated 06-15-12 at 09:44 AM ---------- Previous...
2,523
Posted By Mary James
i used the below code awk...
i used the below code

awk 'BEGIN{FS="|"}NR==FNR{a[$1]=$1;next}a[$1]'


This gives me the error


a[$1]': Event not found


Changed the code by adding '\' as

nawk...
2,523
Posted By Mary James
Thanks Vivek,its my mistake.11111 should be...
Thanks Vivek,its my mistake.11111 should be removed from the output as it is present in file2

file1


00012|Description - 1|||||AA12345|1|AB12345|2|2012/06/03
AB123|Description -...
2,523
Posted By Mary James
Compare files using awk
Please help me to compare two files and remove the items in file2 from file1

file 1:delimited using pipe(|)

file1

00012|Description - 1|||||AA12345|1|AB12345|2|2012/06/03...
1,152
Posted By Mary James
It worked
:b:Thank you!!It worked
1,152
Posted By Mary James
Compare files
Please help me with awk.I have two files with the below details

file1
123456789 2012
987654321 2011
a1234567892012
a1234abcde2012
b1234567892012
c1234567892012
98765a12342012

file2...
Showing results 1 to 8 of 8

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