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:If your data contains Unicode, you might need
-cinstead of-b.