Tag Archives: extract

How to extract multi-part, e.g. .z01, .z02 type of zip files on Ubuntu

I couldn’t extract an archive that I downloaded from edelivery which was in 3 files, 1.zip, 1.z01 and 1.z02: In order to extract on Ubuntu, do the following: zip -s- Input.zip -O output.zip This will gather the Input.zip file and … Continue reading

Posted in Uncategorized | Tagged , , , | 7 Comments

How to extract a number from a string (not a file) in Bash

export hobba=ksjdjf123ksks export nokka=`sed “s/[^0-9]//g” <<< $hobba` echo $nokka 123 Sources: http://stackoverflow.com/questions/13055889/sed-with-a-literal-string-not-input-file, http://stackoverflow.com/questions/6388046/extract-integer-from-string-using-bash

Posted in Uncategorized | Tagged , , , , , | Leave a comment