作者indept (真人)
看板Programming
标题[问题] shell的小问题
时间Sat Nov 11 06:26:33 2006
一个简单的shell程式 go.sh
#!/bin/tcsh
grep $1 *.c
============
#./go.sh hello
没问题
#./go.sh hello world
#./go.sh 'hello world'
#./go.sh "hello world"
都不行, 请问要如何写才对呢?
--
※ 发信站: 批踢踢实业坊(ptt.cc)
◆ From: 171.64.92.135
1F:推 weijr:grep "$1" *.c 125.232.193.68 11/11 10:30