xecuting shell commands with bash

wuxidba發表於2011-06-12
#!/bin/bash
# use backticks " ` ` " to execute shell command
echo `uname -o`
# executing bash command without backticks
echo uname -o

[jerry@localhost bin]$ ./echo.sh
GNU/Linux
uname -o


來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/23895263/viewspace-697717/,如需轉載,請註明出處,否則將追究法律責任。

相關文章