clivesay

Group: Guests
Posts: 935
Joined: Dec. 2003 |
 |
Posted: Oct. 04 2004,00:17 |
 |
I like to spend my time finding ways to automate redundant tasks.
If you like to edit and repackage .dsl/.tar.gz files like I do, you probably have Ke4nt's howto doc printed out and laying in a high visibility area of your desk.
I love using emelfm and created a few shortcut buttons to speed up this task. I thought I would share with everyone. You can add these as buttons or, as I did, add them to the User Commands section of the emelfm menu.
Name: Unpack .dsl Command: tar -zxvf %f
Name: View .dsl Contents Command: tar -ztf %f > dirlist.txt
Name: Repack .dsl Command: tar -T dirlist.txt --no-recursion --numeric-owner -cvf- | gzip > %{}
Thanks to clacker for educating me on how to create the last command. It will prompt you to enter the name of your new tar.gz/.dsl.
Have fun!
Chris
|