Keith_S_Thompson

grep-test.sh

Sep 24th, 2014
292
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 0.44 KB | None | 0 0
  1. #!/bin/sh
  2.  
  3. v() {
  4.     echo "% $@"
  5.     eval "$@"
  6. }
  7.  
  8. v uname -a
  9. v /usr/bin/dpkg -l grep
  10. v /usr/bin/dpkg -L grep
  11. v /bin/ls -l /bin/grep
  12. v /usr/bin/file /bin/grep
  13. v /usr/bin/sha1sum /bin/grep /bin/fgrep /bin/egrep
  14. v /usr/bin/ldd /bin/grep
  15. v /bin/grep --help '|' head -n 2
  16. v /bin/grep foo /dev/null '|' /usr/bin/head -n 2
  17. v /bin/echo hello '|' /bin/grep hello
  18. v /bin/echo hello '|' /bin/fgrep hello
  19. v /bin/echo hello '|' /bin/egrep hello
Advertisement
Add Comment
Please, Sign In to add comment