How to use SED, AWK and (E)GREP? - where do you get 13 digit pre paid turbo tax code
Hello everyone,
I have a non-txt file, which accumulate as follows:
Text text text 0000000000000
1111111111111
0000000000000 Full text
2222222222222
As you can see, there are some lines where the text before a 13-digit number, sometimes there are lines where there is only one 13-digit number, sometimes before and after, etc.
I tried for hours to extract the txt only 13 two-digit numbers with sed, awk and grep.
That is what I read in the console (with Terminal in Mac OS X) wrote:
egrep '[0-9] () 13.13 "foo.txt | sed' s / .* \\ \\ \\ \\ \\ \\ \\ \\ \\ \\ \\ \\ \\ \\ \\ \\ ([0 | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9] (13, 13) \\ \\ \\ \\ \\ \\ \\ \\ \\ \\ \\ \\ \\ \\ \\ \\) .* / ...> zahlen.txt
What do I get a file with lines with the 13-digit numbers, but the textstill there.
What am I doing wrong?
Thank you in advance.
Where Do You Get 13 Digit Pre Paid Turbo Tax Code How To Use SED, AWK And (E)GREP?
3:27 PM
0 comments:
Post a Comment