Search Results

Search: Posts Made By: jepeto
3,498
Posted By jepeto
Thanks ahmad.diab!!! Your command worked...
Thanks ahmad.diab!!!

Your command worked fine

sed '2{/pattern/!d}'

(!) is telling sed what not to look for... is that correct?

Thanks again
3,498
Posted By jepeto
Delete line if pattern not found
I thought that this was going to be quit simple using sed but i wasn't able to find a way to delete the second line of a text file if my pattern was not found in the line
With awk i am completly...
3,772
Posted By jepeto
Thank you for the reply Franklin52 I dont know...
Thank you for the reply Franklin52
I dont know why but that didnt work for me.
The output i get is exactly what i have in my text file
It does not add any blank lines to it :(

---------- Post...
3,772
Posted By jepeto
Add blank lines
Hi!

I am trying to add blank lines at the end of a text file just before the last line. (This is a part of a script)

For example this is my text file... lines with dashes are included


...
Showing results 1 to 4 of 4

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