Jan 01 05:00:10 2017while read i; do "date --date='TZ="PST" ${i}'"; done < dates.inputbash: date --date='TZ=PST Sun Jan 01 06:49:33 2017': command not found...bash: date --date='TZ=PST Sun Jan01 05:44
for i in `cat foo.txt` $i我有一个输入文件"foo.txt",其中包含命令列表。ps -ef | tail当我运行shell脚本时,它会执行,但是会在空格处拆分每一行中的命令,也就是说,对于第一行,它只执行"ls",然后执行"-ltr“,而我得到的命令没有找到错误。我为什么要这么做?
我执行了许多任意的shell命令,包括DB命令。当我执行每个命令(从fo
我发现别名放在.bash_profile中没有效果。然后我发现图形终端不是登录shell,所以根本不读取bash_profile。现在,我感到奇怪的是,导出命令在.bash_profile中确实有作用。我的.bash_profile如下:export mytest=bash_profileIsRead测试结果:$ echo $mytest
bas