Search Results

Search: Posts Made By: meuser
1,170
Posted By meuser
Remove empty line and the next one
Hi all,

I'm trying to remove when this condition is met: an empty and the next one
I'm using this command:
sed '/^$/N; s/&//' file

Which searches for an empty line, N attaches it to the next...
1,709
Posted By meuser
[sed] print until a ":" is found
Hello,

I have a string like this: "./file-name.in:some text" (without quotes)

And need to extract the filename to delete the line containing "some text". I'm using this command for the 1st...
4,904
Posted By meuser
That worked ! thank you my friend!
That worked ! thank you my friend!
4,904
Posted By meuser
Thank you, radoulov. Let me ask one more...
Thank you, radoulov.

Let me ask one more question, because I can't find on Google neither regex tutorials: if it was foo/bar instead of end1/end2 ?
4,904
Posted By meuser
SED - delete words between two possible words
Hi all,

I want to make an script using sed that removes everything between 'begin' (including the line that has it) and 'end1' or 'end2', not removing this line.

Let me paste an 2 examples:
...
Showing results 1 to 5 of 5

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