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
I'm using cat filename.txt | grep -w $criteria
I'm also using grep with -i for case insensitive.
Read more here: https://stackoverflow.com/questions/65077642/how-to-grep-similiar-values-one-by-one-under-each-other
Content Attribution
This content was originally published by Andrzej TI at Recent Questions - Stack Overflow, and is syndicated here via their RSS feed. You can read the original post over there.