WoofyDugfock
Group: Members
Posts: 146
Joined: Sep. 2004 |
|
Posted: April 30 2005,12:13 |
|
Hey guys, how about something like this???
Code Sample | for i in %f; do a=~/filetool.lst && echo "Adding $i to backup list .." && echo %d/$i |sed 's/^\/\(ramdisk\/\)*//'| join -a 1 -a 2 - $a >/tmp/t && mv /tmp/t $a; done && echo "Done."|| echo "Error" |
Even with the console messages and temp file, it ran a little faster (using time) for me than Mik's script on embedded.
`join` used like this is something like `cat - $a|sort|uniq`, except that (again) it seems to run slightly faster here (every bit of speed helps with embedded!).
-------------- "We don't need no stinkin' Windows"
http://news.zdnet.co.uk/software/linuxunix/0,39020390,39149796,00.htm
|