Re: [xubuntu-users] Terminal: Batch Unzip All *.7z Files In Folder While Deleting Each 7z File?
On 06/20/2017 06:19 PM, Jesse Palser wrote: > Hi, > > I need to batch(from terminal) decompress all *.7z files in a folder > while deleting each 7z file. > How can I do the above in Xubuntu 16.04? First, install 7z $ sudo apt-get install p7zip-full Then in the directory where the .7z files are: $ for f in *.7z; do 7z e $f; /bin/rm -f $f; done ///Peter -- xubuntu-users mailing list xubuntu-users@lists.ubuntu.com Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/xubuntu-users
Re: [xubuntu-users] Terminal: Batch Unzip All *.7z Files In Folder While Deleting Each 7z File?
"command to extract 7z files *.7z" && rm *.7z If the first command fails it won't do the second command. On Tue, Jun 20, 2017 at 12:19 PM, Jesse Palser < jessepalsermailingli...@gmail.com> wrote: > Hi, > > I need to batch(from terminal) decompress all *.7z files in a folder while > deleting each 7z file. > How can I do the above in Xubuntu 16.04? > > PS - If delete is not possible then how can I specify a different > directory to unzip files to? > (different HDD) > > Thanks! > > Jesse > > -- > xubuntu-users mailing list > xubuntu-users@lists.ubuntu.com > Modify settings or unsubscribe at: https://lists.ubuntu.com/mailm > an/listinfo/xubuntu-users > -- xubuntu-users mailing list xubuntu-users@lists.ubuntu.com Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/xubuntu-users -- xubuntu-users mailing list xubuntu-users@lists.ubuntu.com Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/xubuntu-users
Re: [xubuntu-users] Terminal: Batch Unzip All *.7z Files In Folder While Deleting Each 7z File?
"command to extract 7z files *.7z" && rm *.7z If the first command fails it won't do the second command. On Tue, Jun 20, 2017 at 12:19 PM, Jesse Palser < jessepalsermailingli...@gmail.com> wrote: > Hi, > > I need to batch(from terminal) decompress all *.7z files in a folder while > deleting each 7z file. > How can I do the above in Xubuntu 16.04? > > PS - If delete is not possible then how can I specify a different > directory to unzip files to? > (different HDD) > > Thanks! > > Jesse > > -- > xubuntu-users mailing list > xubuntu-users@lists.ubuntu.com > Modify settings or unsubscribe at: https://lists.ubuntu.com/mailm > an/listinfo/xubuntu-users > -- xubuntu-users mailing list xubuntu-users@lists.ubuntu.com Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/xubuntu-users