Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- TM_LOCAL=`ls -l --time-style=long-iso ~/.vimrc | awk '{ print $6" "$7 }'`
- ls -l --time-style=long-iso ~/.vimrc | awk '{ print $6" "$7 }'
- TM_LOCAL=$(ls -l --time-style=long-iso ~/.vimrc |
- awk '{ print $6" "$7 }' ; exit ${PIPESTATUS[0]} )
- result=$(echo -e "anbnc" |
- ( cat ; exit 1 ) |
- ( cat ; exit 42 ) ; echo ${PIPESTATUS[@]})
- output=$(head -n -1 <<< "$result")
- status=($(tail -n 1 <<< "$result"))
- echo "Output:"
- echo "$output"
- echo "Results:"
- echo "${status[@]}"
- Output:
- a
- b
- c
- Results:
- 0 1 42
- declare -a status
- status=(${PIPESTATUS[@]})
- [[ -f ~/.vimrc ]] && TM_LOCAL=$(stat -c '&y' ~/.vimrc 2>/dev/null)
- TM_LOCAL=${TM_LOCAL%:*} # Safe to do, even if stat fails
- ./testcron | (test ${PIPESTATUS[0]} -ne 0 || mail -s "testcron output" paul)
Add Comment
Please, Sign In to add comment