Search Results

Search: Posts Made By: gneen
15
9,761
Posted By gneen
beware odd number of lines for the split
I'd modify olenkline's script slightly ... mainly because an odd value of hline would have split the file into three pieces!

==========Script follows ===========
#!/bin/ksh
filename=$1...
6,398
Posted By gneen
The solution I went with ... 23 seconds for 100K into 1M
I can't thank you all enough!

I ended up going with the awk script suggested by Otheus above ... I was so amazed at the speed I felt obligated to check the result with an alternative method - and...
6,398
Posted By gneen
Very promising awk script ...
Thanks otheus!
Nothing quite like a one-line cryptic awk script from a guru ... with a few minor typo corrections it shows excellent promise ... trying it with the giant files and the real data is...
6,398
Posted By gneen
but ...
Heh - the grep inside the read loop would "work" ... but I'd have to come back in a year to see the results!

For tiny files this would clearly be the way to go - but for files the size I'm...
6,398
Posted By gneen
omitting lines from file A that are in file B
I've got file A with (say) 1M lines in it ... ascii text, space delimited ...

I've got file B with (say) 10M lines in it ... same structure.

I want to remove any lines from A that appear...
Showing results 1 to 5 of 5

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