Search Results

Search: Posts Made By: TL56
25,461
Posted By TL56
I found this command and it worked for me: sed...
I found this command and it worked for me:
sed '/^ *$/d'

Thank you very much for responding and your assistance.
25,461
Posted By TL56
unfortunately that still did not do the trick.
unfortunately that still did not do the trick.
25,461
Posted By TL56
Delete blank lines at the end of file
I am attempting to delete blank lines in my file and I've used this command:
sed '/^$/d' $file > $file.fixed

all this seems to do is copy the file and not delete the blank lines located at the...
20,526
Posted By TL56
Thank you bakunin and radoulov. bakunin ...
Thank you bakunin and radoulov.

bakunin
The code s/|[|]*/|/g worked. Thanks a lot.
20,526
Posted By TL56
Remove pipes in file using SED
Hello,

I am writing a script to remove multiples pipes (|) from a file. It needs to look like this data|data|data
instead of data|||data||data||||data

I have found the correct sed command to...
Showing results 1 to 5 of 5

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