How to delete lines and move them up accordingly.
Posted: Fri Apr 01, 2011 3:33 am
I would like to delete certain lines ended with a carriage return and move them up accordingly. These lines are found in 75 files in the same directory.
Example BEFORE:
1. This is Line 1
2. This is Line 2
3. This is Line 3
Now, I would like to delete "2. This is Line 2" and get the whole thing to move up and adjust accordingly as shown below.
Example AFTER:
1. This is Line 1
3. This is Line 3
Example BEFORE:
1. This is Line 1
2. This is Line 2
3. This is Line 3
Now, I would like to delete "2. This is Line 2" and get the whole thing to move up and adjust accordingly as shown below.
Example AFTER:
1. This is Line 1
3. This is Line 3