Search Results

Search: Posts Made By: ghostdog74
6,895
Posted By ghostdog74
it depends on what you want to do. You can do it...
it depends on what you want to do. You can do it inside awk, or outside in the shell

awk 'BEGIN{FS="yyy"}
{ for(i=2;i<NF;i++) {
print $i
#do something here
}
}'...
6,895
Posted By ghostdog74
# awk 'BEGIN{FS="yyy"}{for(i=2;i<NF;i++) print...
# awk 'BEGIN{FS="yyy"}{for(i=2;i<NF;i++) print $i}' file
zzz sss aaa bbb
xxx rrr sss ttt
6,895
Posted By ghostdog74
may not work if there are more "yyy"s .
may not work if there are more "yyy"s .
Showing results 1 to 3 of 3

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