Search Results

Search: Posts Made By: evoll
Forum: Ubuntu 06-03-2011
3,497
Posted By kumaran_5555
Please post such questions under Shell Scripting...
Please post such questions under Shell Scripting Forum. You will receive faster and may be better replies.
Forum: Ubuntu 06-03-2011
3,497
Posted By kumaran_5555
Hope this is what you are looking for ...
Hope this is what you are looking for
cgi@tioman> (/home/cgi) $ awk '{if(NR==1){print}else{for(i=1;i<=NF;i++){ printf "%s\t",$i ;if($i==0){printf "\n"; next} }}}' test.txt

Bh1 Bh2 Bh3 Bh4...
Forum: Ubuntu 05-20-2011
4,950
Posted By radoulov
awk 'NR == FNR { f[$1] next } $1...
awk 'NR == FNR {
f[$1]
next
}
$1 in f
' version1 version2
Forum: Ubuntu 06-03-2011
3,497
Posted By itkamaraj
try this.. awk ' { for(i=1; i<=NR; i++)...
try this..


awk ' { for(i=1; i<=NR; i++) print $i }' filename
Showing results 1 to 4 of 4

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