On 19 Sep 2013, at 23:28, Peter Howkins wrote:
> find . -depth -type f -name "*.txt" -exec sh -c 'mv "$1" "${1%.txt},fff"' _
> {} \;
> find . -depth -type f -name "*.dat" -exec sh -c 'mv "$1" "${1%.dat},ffd"' _
> {} \;
> find . -depth -type f -name "*.htm" -exec sh -c 'mv "$1" "${1%.htm},faf"' _
> {} \;
> find . -depth -type f -name "*.arc" -exec sh -c 'mv "$1" "${1%.arc},ddc"' _
> {} \;
> find . -depth -type f -name "*.png" -exec sh -c 'mv "$1" "${1%.png},b60"' _
> {} \;
>
> find . -depth -type f -name "*.jpg" -exec sh -c 'mv "$1" "${1%.jpg},c85"' _
> {} \; && \
> find . -depth -type f -name "*.jpeg" -exec sh -c 'mv "$1" "${1%.jpeg},c85"' _
> {} \; && \
> find . -depth -type f -name "*.gif" -exec sh -c 'mv "$1" "${1%.gif},695"' _
> {} \; && \
> find . -depth -type f -name "*.html" -exec sh -c 'mv "$1" "${1%.html},faf"' _
> {} \;
Cheers Peter.
Now worked out how to put this into a Unix batch file and run it under Mac OS.
I added in
find . -depth -type f -name "*.oby" -exec sh -c 'mv "$1" "${1%.oby},feb"' _ {}
\;
plus put a command at the start to change directory
cd /users/gerald/dropbox/emulation/redsquirrel_disk439
so I didn't screw the entire drive. I then saved the file as a text file
(convert.txt) and typed
sh convert.txt
Now to see if it'll load into RPCemu..._______________________________________________
Rpcemu mailing list
[email protected]
http://www.riscos.info/cgi-bin/mailman/listinfo/rpcemu