Advertisement
Guest User

Highlight whitespace on the terminal

a guest
Jul 14th, 2011
212
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 0.24 KB | None | 0 0
  1. #! /bin/sh
  2. # Highlight whitespace on the terminal
  3. #  -- rolfwr
  4. reset=$(printf '\033[0m')
  5. color=$(printf '\033[0;36m')
  6.  
  7. cat $@ | sed -e "
  8. s/  /${color}▹▹▹▹▹▹▹▹${reset}/g
  9. s/ /${color}·${reset}/g
  10. s/$/${color}${reset}/"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement