#TerminalTip: how to use #grep to highlight a line of interest to you without removing any other lines:

Let's say you're using a command that lists something, and you want to highlight any line that contains the word "apple", without highlighting anything else, or removing any lines from the output. Here's how you can do that:

some_command |grep --color -ie ^ -e "^.*apple.*$"

#TerminalTip:

Try tacking |sed 's/\<00\>/🚫/g' at the end of your hexdump commands to make blank regions of binary files more visible

(Or if you don't want to use emoji, |sed 's/\<00\>/ /g)

You can also try |sed 's/\<00\>/🚫/g; s/\<ff\>/⬛/g' to flag 0xFF's as well. ;)

Print the Current Week Number in the Terminal

This screencast shows a quick way to find out the current week number in the terminal using the date command `date +%V`.

#CommandLine #CommandLineTool #DateCommand #LinuxHowto #LinuxTerminal #Screencast #TerminalTip #TerminalTuesday #UnixHowto #UnixTerminal #WeekNumber #WeekNumber50

Find out who has access to sudo with this quick terminal tip 🐧
Follow us to become an expert Linux user 😄

#Linux #Terminaltip

#terminaltip

Did you know you could ⌥+click to position the cursor in Terminal (& iTerm2) on a Mac? 🐭