Search Results

Search: Posts Made By: srikanth_sagi
4,925
Posted By itkamaraj
/\|~\|$/ -> checking this pattern is there in...
/\|~\|$/ -> checking this pattern is there in the line (ends with |$), here $ indicates "end of the line"

$0=$0" " --> if the above condition is true, then it add single space to your line. ...
4,925
Posted By bartus11
This will do all those things. Try running: awk...
This will do all those things. Try running: awk '/\|~\|$/{$0=$0" "}1' file > new_fileand then compare file and new_file.
Showing results 1 to 2 of 2

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