[Date Prev][Date Next] [Thread Prev][Thread Next]
[Thread Index]
[Date Index]
[Author Index]
Bug in my shell script
- From: "Jasper Jans" <jjans bio vu nl>
- To: <guinness-list redhat com>
- Subject: Bug in my shell script
- Date: Thu, 29 Mar 2001 22:15:29 +0200
Hi..
I'm trying to write a shell script but for some reason I cannot
get it to work.. can anyone be so good to tell me what is going
wrong here?
---
#!/bin/sh -x
if [ $# -eq 0 ]; then
echo "Usage: $0 <expression>";
exit;
fi
echo "find /home/guests/jjans -type d -name '*"$1"*' -exec 'sed s/*.sts//g'
\;" | sh
---
I call this like: ./bla.sh roje
And the find part (if I run that seperately) returns lines like:
/home/guests/jjans/Projects/A
/home/guests/jjans/Projects/B
etc..
The sed part is support to strip of the /home/guests part and make it
such that the output is
/jjans/Projects/A
/jjans/Projects/B
etc..
However when I run this I get absolutely no output at all..
Anyone?
Thanks,
J.
[Date Prev][Date Next] [Thread Prev][Thread Next]
[Thread Index]
[Date Index]
[Author Index]
[]