[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

Re: Bug in my shell script



It just so happens that I'm barely learning this, so some questions of my own included here:

At 3/29/01 10:15 PM +0200, you wrote:
---
#!/bin/sh -x

What does the -x do?


if [ $# -eq 0 ]; then
        echo "Usage: $0 <expression>";
        exit;
fi

Thanks; I didn't know how to do that. :)


echo "find /home/guests/jjans -type d -name '*"$1"*' -exec 'sed s/*.sts//g'
\;" | sh

You have 'sed s/*.sts//g' ^

Why is that dot there? I would have thought that * for wildcard would not need the dot.


-- Rodolfo J. Paiz rpaiz@gold.guate.net





[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index] []