Team Ai
Datasetpublic

codekingpro/portable-devtools

sourceHugging Faceupdated 5mo agoView on Hugging Face
1likes14kdownloads
uncompress57 linesDownload Raw Back to bin
1#!/bin/sh2# Uncompress files.  This is the inverse of gzip.3 4# Copyright (C) 2007, 2010-2025 Free Software Foundation, Inc.5 6# This program is free software; you can redistribute it and/or modify7# it under the terms of the GNU General Public License as published by8# the Free Software Foundation; either version 3 of the License, or9# (at your option) any later version.10 11# This program is distributed in the hope that it will be useful,12# but WITHOUT ANY WARRANTY; without even the implied warranty of13# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the14# GNU General Public License for more details.15 16# You should have received a copy of the GNU General Public License17# along with this program.  If not, see <https://www.gnu.org/licenses/>.18 19version="gunzip (gzip) 1.1420Copyright (C) 2025 Free Software Foundation, Inc.21This is free software.  You may redistribute copies of it under the terms of22the GNU General Public License <https://www.gnu.org/licenses/gpl.html>.23There is NO WARRANTY, to the extent permitted by law.24 25Written by Paul Eggert."26 27usage="Usage: $0 [OPTION]... [FILE]...28Uncompress FILEs (by default, in-place).29 30Mandatory arguments to long options are mandatory for short options too.31 32  -c, --stdout      write on standard output, keep original files unchanged33  -f, --force       force overwrite of output file and compress links34  -k, --keep        keep (don't delete) input files35  -l, --list        list compressed file contents36  -n, --no-name     do not save or restore the original name and timestamp37  -N, --name        save or restore the original name and timestamp38  -q, --quiet       suppress all warnings39  -r, --recursive   operate recursively on directories40  -S, --suffix=SUF  use suffix SUF on compressed files41      --synchronous synchronous output (safer if system crashes, but slower)42  -t, --test        test compressed file integrity43  -v, --verbose     verbose mode44      --help        display this help and exit45      --version     display version information and exit46 47With no FILE, or when FILE is -, read standard input.48 49Report bugs to <bug-gzip@gnu.org>."50 51case $1 in52--help)    printf '%s\n' "$usage"   || exit 1; exit;;53--version) printf '%s\n' "$version" || exit 1; exit;;54esac55 56exec gzip -d "$@"57 
codekingpro/portable-devtools · Team Ai