bash -c

From wikieduonline
Revision as of 12:59, 4 June 2024 by Welcome (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

-c string.             If the -c option is present, then commands are read from string. If there are arguments after the string, they are assigned to the positional parameters, starting with $0.
DIR="YOUR_DIR" bash -c 'tar c "$DIR" | xz -T0 -c > "$DIR".tar.xz && ls -lh "$DIR".tar.xz'
DD_AGENT_MAJOR_VERSION=7 DD_API_KEY=XXXXXXXXXXXXXX DD_SITE="datadoghq.com" bash -c "$(curl -L https://install.datadoghq.com/scripts/install_mac_os.sh)"

Related

See also

Advertising: