How to print grep command output without separator
1. Given below is sample file called test. We are doing this practical with this file, hence suggest you to go through with its content once.
[email protected]:/tmp$ cat test red blue green yellow black white one four seven ten flower rose red rose office blog red flower rose linux seven unix red windows AIX [email protected]:/tmp$
--no-group-separator option with grep command.
grep --no-group-separator [Other Options] File-Name
In below given screenshot, you can see the
--no-group-separator along with grep command.