Search Results

Search: Posts Made By: matrixmadhan
2,762
Posted By matrixmadhan
But what have you tried ? this replaces the...
But what have you tried ?

this replaces the last "|" in the input
awk '{ sub(/\|$/, ";"); print }END{ printf "\n" }' ORS="" filename


try this for the required output
awk '{ print }END{...
Showing results 1 to 1 of 1

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