[lug] Scripting help, lynx
Ken Weinert
kenw at quarter-flash.com
Tue May 3 08:29:35 MDT 2011
On 5/3/2011 8:23 AM, Paul Nowosielski wrote:
> This worked rather well:
>
>
> for file in `find ./ -name *.html`
> do
> lynx -nolist -dump $file> $file.txt
> rm -f $file
> done
>
> find ./ -name '*.html.txt' | while read file ; do mv $file
> ${file%.html.txt}.txt ; done
>
>
Or just shortcut it:
for file in `find ./ -name *.html`
do
lynx -nolist -dump $file> ${file%%.html}.txt
rm -f $file
done
More information about the LUG
mailing list