The UNIX and Linux Forums
Forum Home
Linux and Unix Man Pages
Search Forums
Search Community Posts
Today's Posts
Quick Links
Man Pages
RedHat Commands
OpenSolaris Commands
Linux Commands
SunOS Commands
FreeBSD Commands
All UNIX Man Pages
All Linux Man Pages
Full Man Repository
Login or Register to Ask a Question and Join Our Community
Search Forums
Show Threads .
Show Posts
Tag Search
Advanced Search
Quick Links
Contact Us
Forum Rules
Today's Posts
FAQ
Pictures & Albums
All Albums
Miscellaneous
What is My IP
Whois
Mark Forums Read
Search Results
Showing results 1 to 4 of 4
Search took
0.01
seconds.
Search:
Posts Made By:
evoll
Forum:
Ubuntu
06-03-2011
8
How to convert full data matrix to linearised left data matrix?
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
8
How to convert full data matrix to linearised left data matrix?
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
2
How to compare two columns and fetch the common data with additional column
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
8
How to convert full data matrix to linearised left data matrix?
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
Member Badges and Information Modal
×