I have following data in file, i need to only keep first 9 character of file and | tee it to another file
03755432101JONPORT,
037554321031979123120800000000000000000000000000000000
0375543210413855
03755432105JEEY
03755432111P63
03755432133100620120000008156GR1
should look like
037554321
037554321
037554321
037554321
037554321
037554321
For such a simple task, use cut
:
cut -b1-9
If your data contains Unicode, you might need -c
instead of -b
.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With