11 lines
200 B
Bash
Executable File
11 lines
200 B
Bash
Executable File
#!/usr/bin/env sh
|
|
|
|
case "$1" in
|
|
*.tar*) tar tf "$1";;
|
|
*.zip) unzip -l "$1";;
|
|
*.rar) unrar l "$1";;
|
|
*.7z) 7z l "$1";;
|
|
*.pdf) pdftotext "$1" -;;
|
|
*) highlight -O ansi "$1";;
|
|
esac
|