Hi,
I have the following command.(Delete all trailing blank lines at the end of a file.)
I don't understand the logic of this command and also I don't understand why -e is used.
Can you please let me know the logic of this command and why three -e are used
Famous Sed One-Liners Explained, Part III: Selective Deletion of Certain Lines and Special Applications - good coders code, great reuse
here you can find the basic explanation for this command which i am not able to understand (82nd question)
Thank You
I have the following command.(Delete all trailing blank lines at the end of a file.)
Code:
sed -e :a -e '/^\n*$/{$d;N;ba' -e '}'
Can you please let me know the logic of this command and why three -e are used
Famous Sed One-Liners Explained, Part III: Selective Deletion of Certain Lines and Special Applications - good coders code, great reuse
here you can find the basic explanation for this command which i am not able to understand (82nd question)
Thank You