FOO=bar bash -c 'somecommand someargs | somecommand2'
More Related Contents:
- What are the special dollar sign shell variables?
- Can I export a variable to the environment from a Bash script without sourcing it?
- Set environment variables from file of key/value pairs
- Why can’t I specify an environment variable and echo it in the same command line?
- What is the exact meaning of IFS=$’\n’?
- LINES and COLUMNS environmental variables lost in a script
- How to write a bash script to set global environment variable?
- Is the behavior behind the Shellshock vulnerability in Bash documented or at all intentional?
- How does one change the language of the command line interface of Git?
- Is there a way to get my emacs to recognize my bash aliases and custom functions when I run a shell command?
- Get Environment Variable from Docker Container
- How do I tell if a regular file does not exist in Bash?
- How can I check if a program exists from a Bash script?
- How can I compare numbers in Bash?
- echo “#!” fails — “event not found”
- Shell redirection i/o order
- Loop through all the files with a specific extension
- How to apply shell command to each line of a command output?
- What do double-asterisk (**) wildcards mean?
- How to split strings over multiple lines in Bash?
- Is it possible to build variable names from other variables in bash? [duplicate]
- Creating a string variable name from the value of another string
- How do I preserve newlines in a quoted string in Bash? [duplicate]
- Sorting strings with numbers in Bash [duplicate]
- Get current directory or folder name (without the full path)
- What does the double-asterisk (**) wildcard mean?
- Pipe output to two different commands [duplicate]
- Using cut command to remove multiple columns
- Multi Level Bash Completion
- Left side of pipe is the subshell?