Search Results

Search: Posts Made By: fredrik.aslund
3,202
Posted By fredrik.aslund
sed 's/\*.*//' deletes everything from first * on...
sed 's/\*.*//' deletes everything from first * on lines ;)
11,777
Posted By fredrik.aslund
Use the ! command with a range to run an external...
Use the ! command with a range to run an external command in vi and replace the buffer.

To delete every other two lines on a buffer in vi, use:

:1,$!sed '3~4d;4~4d'

To delete every other...
Showing results 1 to 2 of 2

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