Search Results

Search: Posts Made By: pamu
3,056
Posted By pamu
Just remove FS from above code.. Try this.. ...
Just remove FS from above code..

Try this..


awk '{if(s == "") {if($0 == "111") { s=$0 555; print s;print "000"} else {print}} else{ print}}' file
3,056
Posted By pamu
Try something like this.. awk '{if(s ==...
Try something like this..


awk '{if(s == "") {if($0 == "111") { s=$0 FS 555; print s;print "000"} else {print}} else{ print}}' file
Showing results 1 to 2 of 2

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