HTTrack Website Copier
Free software offline browser - FORUM
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
 
Reply Create subthread


All articles

Subject Author Date
GIF being renamed to SHTML?!

10/14/2003 21:47
Re: GIF being renamed to SHTML?!

10/15/2003 07:04
Re: GIF being renamed to SHTML?!

10/15/2003 16:40
Re: GIF being renamed to SHTML?!

10/15/2003 17:44
Re: GIF being renamed to SHTML?!

10/15/2003 18:41
Re: GIF being renamed to SHTML?!

10/15/2003 19:31




2

Created with FORUM 2.0.11