Advertisement
v1ral_ITS

easily list files inside tar archive SHELL SCRIPT

Aug 14th, 2018
164
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 0.24 KB | None | 0 0
  1. #!/bin/bash
  2. read file < <( zenity --title "Current Directory" --width=560 --text "Choose Any .tgz, .tar.gz , Or .tar File" --forms --text "<b>$(\ls *.tgz) \n$(\ls *.tar.gz) \n$(\ls *.tar)</b>" --add-entry "Choice:" | tr -d "|" )
  3. tar --list -f $file
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement