I Have grep from file output like:
2531 POKRZYWNIAK KRZYSZTOF 244 18/01 2 13:46 23:26
3346 SOROTA DARIUSZ 244 18/01 1 04:05 13:46
Need to get it look like this:
2531 POKRZYWNIAK KRZYSZTOF 244 18/01 2 13:46 23:26
3346 SOROTA DARIUSZ_________244 18/01 1 04:05 13:46
without "" char - mean to space it until similiar/same values are one under one by each other. 4digit number under 4 digit number, name under name, 3digit name (ex.244) multichar like 18/01 string under 18/01, hour under hour, minutes under minutes. Output should look like below excluding "" char that i've used to demonstrate spaces I need.
I'm using cat filename.txt | grep -w $criteria
I'm also using grep with -i for case insensitive.