【发布时间】:2016-01-21 17:33:16
【问题描述】:
我的 csh 脚本
#!/bin/csh
# C-schell script to increase the boundingbox....
echo '%\!PS-Adobe-3.0 EPSF-3.0'
echo '%%BoundingBox: 0 0 1100 1100'
tail +3 $argv[1]
在这里调用
csh bbox.csh plt >! plt_P1.ps
但我有
csh -f bbox.csh plt
tail: cannot open ‘+3’ for reading: No such file or directory
tail 应该做什么?写代码的人用的是 Darwin,我在 Ubuntu 14.04 上。
【问题讨论】:
-
使用
tail -n+3 ...。没有-n的表单已经被弃用了几十年,并不是所有的tail实现仍然允许它。