Search Results

Search: Posts Made By: Rob Butler
19,414
Posted By Rob Butler
Have you tried: grep -o '[0-9]\{8\}'...
Have you tried:

grep -o '[0-9]\{8\}' input.txt

-Rob.
1,297
Posted By Rob Butler
At first I didn't notice his request to reverse...
At first I didn't notice his request to reverse mm and dd from the input file, so your approach is most likely best as cut can't reorder fields like awk can. But you'll need to change your code to:
...
1,297
Posted By Rob Butler
You may try this: cut -c 1-6,9- input.csv...
You may try this:

cut -c 1-6,9- input.csv |cut -d, -f 1,10|tr ',' '\t'-Rob.
Showing results 1 to 3 of 3

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