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

RE: Bug in my shell script



| -----Original Message-----
| From: guinness-list-admin@redhat.com
| [mailto:guinness-list-admin@redhat.com]On Behalf Of Taylor, ForrestX
|
|
| Doesn't the sed part substitute anything that ends with .sts with nothing,
| and nothing ends in .sts.

* = any character
. = one or more of the char immediately infront of it
*. = match everything

*.sts would as far as I know (my regex might be a bit rusty)
match /home/guests

| Maybe if you put sed -e 's/\/home\/guests//g' --that seems to work by

Hmm.. I tried it without the -d - let me give this a try.

| itself.  You should need the echo "" | sh, because it will already run in
| sh.

You do need the echo "...." | sh since the $1 needs to be expended by the
shell ;)

J.





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