Search Members Help

» Welcome Guest
[ Log In :: Register ]

Mini-ITX Boards Sale, Fanless BareBones Mini-ITX, Bootable 1G DSL USBs, 533MHz Fanless PC <-- SALE $200 each!
Get The Official Damn Small Linux Book. DSL Market , Great VPS hosting provided by Tektonic
Pages: (5) </ 1 2 [3] 4 5 >/

[ Track this topic :: Email this topic :: Print this topic ]

reply to topic new topic new poll
Topic: "Add to filetool.lst" button, In emelfm?< Next Oldest | Next Newest >
clivesay Offline





Group: Guests
Posts: 935
Joined: Dec. 2003
Posted: April 18 2005,13:39 QUOTE

I just wanted to let everyone know that mikshaw's little emelfm button script works very well. It is at the top of my button list right under mydsl. This is a little gem to have around.

Chris

bookmark
Back to top
Profile PM MSN YIM 
ke4nt1 Offline





Group: Members
Posts: 2329
Joined: Oct. 2003
Posted: April 18 2005,15:29 QUOTE

Agreed, tnx mikshaw....

and I understood the word fubar to mean ..
( Fscked Up Beyond All Repair )

73
ke4nt
Back to top
Profile PM 
roberts Offline





Group: Members
Posts: 4983
Joined: Oct. 2003
Posted: April 18 2005,23:20 QUOTE

Accepted and will be in the next release. This should help make it easier to explain to new users what to add to their filetool.lst depending on their needs.
Back to top
Profile PM WEB 
mikshaw Offline





Group: Members
Posts: 4856
Joined: July 2004
Posted: April 29 2005,12:20 QUOTE

Malfunction! *zzztrrrrgtz!*

There's a potential problem with that command.
Suppose 'pwd' returns '/ramdisk/home/dsl'.  The line(s) added will begin with 'ramdisk/'.  This isn't a problem with a vanilla liveCD or Frugal, but suppose you switch to using a persitent home with no symlink to it in /ramdisk.  Those files you previously backed up will have nowhere to go.

To fix this i've changed the cut command to sed:
pwd|sed 's/^\/ramdisk//;s/^\///'

Cut removed only the leading slash, but this one will remove the slash, plus a leading '/ramdisk' if it exists.


--------------
http://www.tldp.org/LDP/intro-linux/html/index.html
Back to top
Profile PM WEB 
WoofyDugfock Offline





Group: Members
Posts: 146
Joined: Sep. 2004
Posted: April 30 2005,12:13 QUOTE

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!).

:p


--------------
"We don't need no stinkin' Windows"

http://news.zdnet.co.uk/software/linuxunix/0,39020390,39149796,00.htm
Back to top
Profile PM 
22 replies since Mar. 27 2005,02:19 < Next Oldest | Next Newest >

[ Track this topic :: Email this topic :: Print this topic ]

Pages: (5) </ 1 2 [3] 4 5 >/
reply to topic new topic new poll
Quick Reply: "Add to filetool.lst" button

Do you wish to enable your signature for this post?
Do you wish to enable emoticons for this post?
Track this topic
View All Emoticons
View iB Code