Skip to content

Instantly share code, notes, and snippets.

#!/usr/bin/env bash
#
# This script refreshes the access time of files and folders
#
@init-js
init-js / process_sub.sh
Last active July 30, 2019 01:32
process substitution useful cases
#!/usr/bin/env bash
# from bash manual:
# Process substitution is supported on systems that
# support named pipes (FIFOs) or the /dev/fd method of nam‐ ing open
# files. It takes the form of <(list) or >(list). The process list is
# run with its input or output connected to a FIFO or some file in
# /dev/fd. The name of this file is passed as an argument to the
# current command as the result of the expansion. If the >(list) form
# is used, writing to the file will provide input for list. If the