Search Results

Search: Posts Made By: bakunin
11,637
Posted By bakunin
Yes, but the original problem was: read a lot...
Yes, but the original problem was: read a lot (~700k) files and extract only a certain part of line 3. Shell expansion can extract that part but it is not easy to interrupt the reading process after...
11,637
Posted By bakunin
By replacing a line with a certain number of...
By replacing a line with a certain number of hyphens with a word i can easily parse. Like, in the following (simplified, just proof-of-concept) example:

sed -n 's/^x$/one/p
...
11,637
Posted By bakunin
This is not a complete solution, just a detail...
This is not a complete solution, just a detail for one:

Despite the preference of the majority here for awk i suppose that sed is the fastest to search for something at exactly line 3:

sed -n...
Showing results 1 to 3 of 3

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