Search Results

Search: Posts Made By: RudiC
24,886
Posted By RudiC
That means you need to interact with the script...
That means you need to interact with the script to select / deselect the relevant lines. Which would make your approach in post #6 moot. You'd need to find the lines, propose them to the user, read...
24,886
Posted By RudiC
Again, why the numbered grep detour,...
Again, why the numbered grep detour, opening/reading the file more frequently than necessary? Do you need the line numbers elsewhere?


For numbers, how about


sed -n '/cdc/=' file | sed...
24,886
Posted By RudiC
A bit complex, no? And a waste of resources, if...
A bit complex, no? And a waste of resources, if you change more than one line, as you open/read your file, create a temp file, and mv it once per change!


If you know the pattern, why the detour...
Showing results 1 to 3 of 3

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