- Back to Home »
- Shell »
- Command Execution
Monday, July 13, 2015
Có hai cách để thực hiện command execution trong shell:
Syntax:
`command`
or
$(command)
Ex:
#!/bin/sh
echo The current directory is `pwd`
echo The current users are $(who)
exit 0