Guest User

Untitled

a guest
Jun 24th, 2018
93
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.72 KB | None | 0 0
  1. Instead of use
  2.  
  3. tmpfile=/tmp/me$$ tmpfile=`mktemp`
  4.  
  5. [ ] [[ ]]
  6.  
  7. (( ++count ))
  8. (( $# )) || { echo "Expected an argument to the script." >&2; exit 1; }
  9.  
  10. read filesize _ < <(wc -c myfile)
  11. openssl base64 <<< "Bar!" # as opposed to the more expensive: echo "Bar!" | openssl base64
  12. content=$(<file) # as opposed to the more expensive: content=$(cat file)
  13.  
  14. rm "$(grep -l foo <<< "$(</my/file.list)")"
  15.  
  16. files=(/foo/*); for file in "${files[@]}"; do pinch "$file"; done
  17.  
  18. tmpfile=`mktemp`
  19.  
  20. tmpfile=$(mktemp)
  21.  
  22. foo="$( some
  23. multiline
  24. command in a string)"
  25.  
  26. foo="$( some
  27. multiline
  28. command in a string)"
  29.  
  30. [[ "$str" = @(+([a-z])?([0-9])) ]]
Add Comment
Please, Sign In to add comment