I'm not sure what is going on for you. Try two separate grep actions (Linux example).
Ex: grep -o shows ONLY the matching text nothing else on the line
You are looking for 10-JUL in a bunch of logfiles, then you want specific error code ERR 1901a
If you supply us an exact example of your problem we can help you apply this concept, otherwise this is about as good as I can do with what I have. An OS name and a shell name would help improve our answers immensely.
By default, color is added / applied to screen output, not when writing to files or pipes, so additional measures need to be taken. With some more detail info (sample data) on the problem, sensible proposals might be givven.
I have a script which converts a .csv file to html nicely. Trying to add 3 colors, green, yellow and red to the output depending upon the values in the cells. Tried some printf command but just can't seem to get any where. Any ideas would be appreciated. nawk 'BEGIN{
FS=","
print ... (7 Replies)
Hi guys - I was wondering if there is a way to add 'color' to a grep I do like this below:
fgrep -i "XYZ-1124354-P" mylog.log | tr "\001" " " | sed G (7 Replies)
hi,
i have text file that file contains below information.
Name,Roll,Mark,Total
Sivasankar,2120,89,410
Raja,2212,87,425
i need to convert text file to CSV file also the heading(Name,Roll,Mark,Total) font should be BOLD and color should be RED. how can i set fonts in csv (5 Replies)
When I run:
git branch -a
I git a nice green and red colored output, but if I pipe the above command through grep:
git branch -a | grep -v "master"
I lose my colored output. Is there a way around this? (2 Replies)
Hi all,
i would to find out how can i turn on color hightlighting with the 'more' command.
When i view a big file, i tend to use the 'more' command and i would search for a interested string with the '/' command. Something the search returns more than 1 line found on the screen, how can i... (0 Replies)