Search Results

Search: Posts Made By: sathish92
7,343
Posted By Scott
printf "$variable\n" would do the same as ...
printf "$variable\n"

would do the same as

echo -e "$variable"


The printf is portable, the echo (link (http://pubs.opengroup.org/onlinepubs/009695399/utilities/echo.html)) might not be. ...
1,643
Posted By Scrutinizer
awk '/#END/{$0=x}!/#START/' file
awk '/#END/{$0=x}!/#START/' file
1,643
Posted By danmero
awk 'NR==1 || /#END/{f--;next}/#START/{print...
awk 'NR==1 || /#END/{f--;next}/#START/{print x;f++;next}f' file
Showing results 1 to 3 of 3

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