Guest User

Untitled

a guest
Jun 22nd, 2018
71
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.24 KB | None | 0 0
  1. for cmd in ls blah foo; do
  2. alias "$cmd=$cmd --color"
  3. done
  4.  
  5. grep --color=yes 'foo' bar.txt | less #leads to weird ANSI stuff in output
  6. grep --color=yes 'foo' bar.txt | less -R #binary codes interpreted as colors
  7.  
  8. alias ls='ls --color'
Add Comment
Please, Sign In to add comment