Search Results

Search: Posts Made By: oldman2
1,128
Posted By bakunin
You can use "grep" without problems, you just...
You can use "grep" without problems, you just have to construe your regexp accordingly:

grep '^[^,]*,[^,]*,223,' /path/to/input

searches for "line start, followed by any number of non-','...
8,598
Posted By Scott
I got a bit close with this: $ sed...
I got a bit close with this:


$ sed "s/.\{8\}/&,/;s/[^\,]\{6\}/&,/g;s/,//" file1
20110624,000744,000693,000704,000764,


That's a garbled command - if ever I saw one! - even if SED didn't...
Showing results 1 to 2 of 2

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