Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.
CSH & awk two files > one file
Name: amaussa Date: March 26, 2005 at 02:21:47 Pacific OS: SOLARIS
Comment:
nawk -f ama.awk equiv.txt name.txt #---------- ama.awk ------------------ FNR == NR { arr[$1]=$2; next; } { if ( $2 in arr ) $2 = arr[$2]; print; } ---------
if the order of the columns changes in the Name file how to make to modify the program. file EQUI.txt contains old code new code 11125879 211125648 13562452 311115642 the file NAME.txt contains the old code which can be in column 1, 2 or 3..
Name: amaussa Date: April 4, 2005 at 08:35:58 Pacific
Reply:
could you help me to undestand how works the programme ama.awk line by line. If I have another file name.txt with three columm and I want to compare the columm one of equi.txt with the columm tree of name.txt is it possible ?
Summary: I have two files: - EQUI containing two columns old_code and new_code - NAME containing a list of article with the old ones I code seek how to carry out a Unix order to replace in the file NAME all...
Summary: Hi , I wish to know how to combine two files to one file using unix command. I had two files aaa and bbb aaa files: 02 02 02 02 02 02 and bbb files : 5646 5646 5646 5646 5646 5646 I need to put it to...