Search Results

Search: Posts Made By: Shahul
1,465
Posted By agama
Since you are only reading one file, NR will...
Since you are only reading one file, NR will always be the same as FNR so there is no reason to include that test as it's always true. Secondly, it's never good form to use a variable, i in this...
2,052
Posted By itkamaraj
try it out. man find and search for the -o...
try it out.

man find and search for the -o and -a


find . -name "*.ksh" -o "*.lib" -print



find . -type f \( -iname "*.ksh" -or -iname "*.lib" \)
1,202
Posted By Tytalus
something like: # nawk -F","...
something like:


# nawk -F"," '{($2~"errorcode") ? t[$3]=$2 : s[$3]=$4 }END{for (x in t){print x,t[x],s[x]}}' infile
messageID errorcode sha


should be close to what you're after.

HTH
Showing results 1 to 3 of 3

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