Linux vps-61133.fhnet.fr 4.9.0-19-amd64 #1 SMP Debian 4.9.320-2 (2022-06-30) x86_64
Apache/2.4.25 (Debian)
Server IP : 93.113.207.21 & Your IP : 216.73.216.122
Domains :
Cant Read [ /etc/named.conf ]
User : www-data
Terminal
Auto Root
Create File
Create Folder
Localroot Suggester
Backdoor Destroyer
Readme
/
usr /
share /
doc /
util-linux /
examples /
Delete
Unzip
Name
Size
Permission
Date
Action
filesystems
41
B
-rw-r--r--
2016-07-20 10:56
fstab
829
B
-rw-r--r--
2016-07-20 10:56
fstab.example2
1.57
KB
-rw-r--r--
2018-03-07 19:29
fstrim.service
92
B
-rw-r--r--
2018-03-07 19:29
fstrim.timer
170
B
-rw-r--r--
2018-03-07 19:29
getopt-parse.bash
1.55
KB
-rwxr-xr-x
2018-03-07 19:29
getopt-parse.tcsh
2.19
KB
-rwxr-xr-x
2018-03-07 19:29
motd
344
B
-rw-r--r--
2016-07-20 10:56
securetty
26
B
-rw-r--r--
2016-07-20 10:56
shells
37
B
-rw-r--r--
2016-07-20 10:56
udev-raw.rules
316
B
-rw-r--r--
2016-07-20 10:56
Save
Rename
#!/bin/bash # A small example script for using the getopt(1) program. # This script will only work with bash(1). # A similar script using the tcsh(1) language can be found # as getopt-parse.tcsh. # Example input and output (from the bash prompt): # # ./getopt-parse.bash -a par1 'another arg' --c-long 'wow!*\?' -cmore -b " very long " # Option a # Option c, no argument # Option c, argument 'more' # Option b, argument ' very long ' # Remaining arguments: # --> 'par1' # --> 'another arg' # --> 'wow!*\?' # Note that we use "$@" to let each command-line parameter expand to a # separate word. The quotes around "$@" are essential! # We need TEMP as the 'eval set --' would nuke the return value of getopt. TEMP=$(getopt -o 'ab:c::' --long '-long,b-long:,c-long::' -n 'example.bash' -- "$@") if [ $? -ne 0 ]; then echo 'Terminating...' >&2 exit 1 fi # Note the quotes around "$TEMP": they are essential! eval set -- "$TEMP" unset TEMP while true; do case "$1" in '-a'|'--a-long') echo 'Option a' shift continue ;; '-b'|'--b-long') echo "Option b, argument '$2'" shift 2 continue ;; '-c'|'--c-long') # c has an optional argument. As we are in quoted mode, # an empty parameter will be generated if its optional # argument is not found. case "$2" in '') echo 'Option c, no argument' ;; *) echo "Option c, argument '$2'" ;; esac shift 2 continue ;; '--') shift break ;; *) echo 'Internal error!' >&2 exit 1 ;; esac done echo 'Remaining arguments:' for arg; do echo "--> '$arg'" done