| Subject: Re: GIF being renamed to SHTML?! |
Author: Xavier Roche |
Date: 10/15/2003 19:31 |
| | > it's just renaming files to .shtml :(
Ensure you didn't broke the sed line:
#!/bin/sh
#
test -f "$1" || exit 1
# One single line here:
cat "$1" | \
sed -e \
"s/\([\"']\)\([^\"']*\)\(\.html\)\([\"']\)/\1\2\.shtml\4/g"
\
> "${1%.*}.shtml"
# (End of long line)
rm -f "$1"
This should definitely work if you have sed and bash
installed
| |
|
|
|
|
2
Created with FORUM 2.0.11