Results 1 to 2 of 2

Thread: Bash script that download, unzip archive and create text info file

  1. #1
    Join Date
    Nov 2020
    Beans
    1

    Bash script that download, unzip archive and create text info file

    I need a bash script that downloads (from URL) an archive in the /tmp directory, unzip it and create a text file with information - date of unzipping, time of unzipping, file size and file name. All scripts and comments are welcome. Thanks in advance guys!

  2. #2
    Join Date
    May 2010
    Beans
    1,069

    Re: Bash script that download, unzip archive and create text info file

    wget can download the file for you. You can then use unp to extract it easily.
    du will be good to show file and folder sizes.
    Date and time can be added to text files. For the full date / time use this sort of thing
    https://tecadmin.net/get-current-date-and-time-in-bash/

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •