Search Results

Search: Posts Made By: aoussenko
5,723
Posted By radoulov
Save the current Internal Field Separator in...
Save the current Internal Field Separator in oIFS, set it temporarily to '/' so the shell can split the string, restore ASAP the standard value.
For more information:

man sh|less -pIFS
1,497
Posted By rbatte1
Your plan will actually give you all the lines...
Your plan will actually give you all the lines twice except those that you want to exclude. You will get them once.

Could you consider:-exclude_list="ts584d|hf584db"
egrep -v $exclude_list...
1,211
Posted By DGPickett
Note that while the line range says delete (361 -...
Note that while the line range says delete (361 - 182 + 1)=180 lines, the count suffix says delete 181 lines and wins, so it is equivalent to ":181,362d", and the file now contains 1-360 and 542-$,...
1,211
Posted By sumitsks
:182,361d181 It will delete 181 lines...
:182,361d181


It will delete 181 lines from 361th line and place the cursor at 361th line
Showing results 1 to 4 of 4

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