DSL Ideas and Suggestions :: "Add to filetool.lst" button



Another half-baked idea, is it possible to create a script, to attach to a button in emelfm, that would add the selected file to the filetool.lst?
ie., you're browsing through the files, you find something of interest, select it, hit the button, and the script appends the full file location to the backup list - simplifying (well, in some cases) the process of adding files to the list?

No idea of the logistics of this.  Something along the lines of get full file location and append this to the text file, starting a new line on the append?

This sounds like a cool idea.

The script would need to "grep" the existing filetool.lst to prevent duplicates, but otherwise I like the concept.

RE: duplicates in the list, wouldn't duplicate files just overwrite themselves in the backup, rather than double-up?  If they did, you wouldn't need to worry about the grep complications?

I'm not sure how tarring works, if you try to add a file to a tar when that particular file already exists, does it ignore it, overwrite it, duplicate it, or come to a screaming halt?

It duplicates inside the tar file, but apparently overwrites on extraction
OK, so will need to grep.
Um, what's a grep?  :D   (kidding, know what it is, just not how to utilise it properly.  I guess if I sat down and actually learned how to write scripts properly, I wouldn't need to keep making these vague suggestions for other people to implement!)

Next Page...
original here.