1
Fork 0
mirror of https://github.com/RGBCube/nu_scripts synced 2025-08-02 15:17:47 +00:00

Update ultimate_extractor.nu

wrote --help
This commit is contained in:
Kamil 2021-12-02 16:19:52 +00:00 committed by GitHub
parent 4ce79ac41e
commit c39d7f1327
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1,8 +1,6 @@
#As in the file name, the script is designed to conveniently handle any archive format #Function to extract archives with different extensions
def extract [name:string #name of the archive to extract
#usage: extract archive_name ] {
def extract [name:string] {
let exten = [ [ex com]; let exten = [ [ex com];
['.tar.bz2' 'tar xjf'] ['.tar.bz2' 'tar xjf']
['.tar.gz' 'tar xzf'] ['.tar.gz' 'tar xzf']