-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA512 On 07/25/2012 11:53 AM, Gaël DONVAL wrote: > Do you know of any lighter/simpler alternative to the tar program? > [...] Any idea?
There is bash function, which makes tar simpler to use. I know that it's not alternative, but it might be good alternative to alternative. I will attach it to this email. To use it, just copy-paste it to your bashrc or zshrc or whatever shell you use rc. To use it, just run "ex something.zip" and it will extract it. - -- Mika Suomalainen NOTICE! I am on mobile broadband with very limited time, so I cannot read emails very much. The best time to contact me is probably weekends when I have better connectivity with good luck. -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.19 (GNU/Linux) Comment: Public key: http://mkaysi.github.com/PGP/key.txt Comment: Fingerprint = 24BC 1573 B8EE D666 D10A AA65 4DB5 3CFE 82A4 6728 Comment: Why do I (clear)sign emails? http://git.io/6FLzWg Comment: Please remove PGP lines in replies. http://git.io/nvHrDg Comment: Charset of this message should be UTF-8. Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/ iQIcBAEBCgAGBQJQEBEHAAoJEE21PP6CpGcoIioQALL0U8pWNHigTyR14tSLEWOC GY9S92JBtviI8IkmzJpSPYeiUZbgFHoG5qHDSjJbKKREcRsuGWvMofyqagV0fgbs evHg+/Z38b92BUsIhOg4cmY4OOkh/IHh52SnLUpxUAnzzV7n854dA8b2E+Zq7OGk iFFsp74nygeM7VB4kM3nAFZ/i838UW2gX5/girHE/cTynSKLOptt0aq6m3/d5UtT H088GTSGwAl+M9cldz9sJ6NY+E5gtvIA0Ogk7QspSPANtOJp31mo12IKtZZFqRTA MIYsm0zPNCY505rdsliBcY6ObklyuwrPfKDJL+DQDVRnF7XjMZ/JGJ/9FbKtXc2r 5fUWS0embMTfTEqla62m+HqIFN4L7dWDwD/HAZOHK16pdud1AE32PTf5LGHRfPtE jiv9PtR+VvrlhuAASlZTRqHEjGdIVlEEp3jafmeQ9t1l1TcMo3TXcC1AwoZyYnzI iQfApQT8/KbLzt4E6ZJjxig6Iq1w6xzOmE0KOfB1/Sy1a9Bdd8aEEiA0Tej6PIWy D9G1M3kU6xqLbfHqlrsqm/b2K3ixFJkVzMjnvqlwB+80qOyUTxFt79q1v3K/IRtU KzIUNEd11xJmOMkOSFaNkfuvuz50OC6mEho5coPevMuZxoyFOL7q2iUd1HuGEd02 /4z6ULgaho+iF1paGG6c =x96a -----END PGP SIGNATURE-----
# ex command. Copied from zshrc of bioterror ( http://ricecows.org/configs/zsh/.zshrc ). Original comment below: ## for unit193 ;) ## use command "ex" to extract any archive files. ## "ex package.zip" for example function ex () { if [ -f "$1" ] ; then case "$1" in *.tar) tar xvf $1 ;; *.tar.bz2 | *.tbz2 ) tar xjvf $1 ;; *.tar.gz | *.tgz ) tar xzvf $1 ;; *.bz2) bunzip2 $1 ;; *.rar) unrar x $1 ;; *.gz) gunzip $1 ;; *.zip) unzip $1 ;; *.Z) uncompress $1 ;; *.7z) 7z x $1 ;; *.xz) tar xJvf $1 ;; *.deb) DIR=${1%%_*.deb} ar xv $1 mkdir ${DIR} tar -C ${DIR} -xzvf data.tar.gz ;; *.rpm) rpm2cpio $1 | cpio -vid ;; *) echo ""${1}" cannot be extracted via extract()" ;; esac else echo ""${1}" is not a valid file" fi }
ex.txt.sig
Description: PGP signature