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.
sharad@linuxworld:/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 sharad@linuxworld:/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.