Sample Header Ad - 728x90

Add line breaks to Grep Commands

1 vote
2 answers
2220 views
How can I add a few line breaks? I want it to show OpenFin category, have a line break, Chrome category, another line break, then memoryInfo. Here is what I have so far: cat LoginExInternal.txt | grep OpenFin >> LoginExcInternal.txt | echo $'\r' && cat LoginExInternal.txt | grep Chrome >> LoginExcInternal.txt | echo $'\r' && cat MemoryUnderThreshold.txt | grep memoryInfo:jsHeapSizeLimit:1 >> LoginExcInternal.txt | echo $'\r' I can't seem to get it into new lines though, the echo $'\r' doesn't seem to work. Please tell me how I can modify to make this work.
Asked by Ibrahim A (71 rep)
Mar 13, 2019, 12:49 PM
Last activity: Mar 13, 2019, 01:18 PM