When script is sourced, use the following return or exit code
paste <(cal $(date -d '2 month ago' +'%m %Y')
# Description: Print numbers with color: Negative is red and positive is green.
# Copy file to destination directory.
# If file already existed and have different content, then overwrite it.
#pwd is a shell builtin
To copy faster than cp, use tar|pv|tar. See performance benchmark at https://github.com/limelime/mtran/blob/master/benchmark/benchmark-results.md.
# john; smith; 49
# amanda; bush; 55
# john; kidman; 55
# john; bush; -9
# amanda; bush; 1
# Note: PATTERN-1 & PATTERN-2 will be also included in your result.
sed -n '/PATTERN-1/,/PATTERN-2/p' input.txt
# Bash built-in time
TIMEFORMAT=%R; time sleep 2s
Articles and comments posted are the property of their respective posters.