bald_pig Posted June 22, 2016 Posted June 22, 2016 Afternoon, I've had a student come to me asking for help with an piece of work set by OCR, which asks the student to use a suitably modified cat command to highlight given words. Now, as far as I'm aware, and as far I can find, cat can't do this, even when piping the output to grep! Any ideas?
3s-gtech Posted June 22, 2016 Posted June 22, 2016 I'm such a noob, I had no idea but I pictured this: As for the actual solution... 2
fiza Posted June 22, 2016 Posted June 22, 2016 I'm such a noob, I had no idea but I pictured this: [ATTACH=CONFIG]37468[/ATTACH] As for the actual solution... me too!
bald_pig Posted June 22, 2016 Author Posted June 22, 2016 Solutions, you can either pipe to less -p or to grep -color
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now