Search Results

Search: Posts Made By: vivekraj
14,009
Posted By vivekraj
You use the following command to remove the blank...
You use the following command to remove the blank lines from a file.

sed -i '/^$/d' filename

d - This is used to clear the content of the pattern space.
D - This is used to remove the first...
Showing results 1 to 1 of 1

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