I can't understand it again. [0]

Source: Internet
Author: User
I can't understand [0]-general Linux technology-Linux programming and kernel information. The following is a detailed description. [I = s] This post was last edited by Shi fan at, September 14 ,.

#! /Bin/bash
2
3 # In a "tarball" (files processed by tar and gzip)
4 # + back up all the modified files in the current directory within the last 24 hours.
5
6 BACKUPFILE = backup-$ (date + % m-% d-% Y)
7 # embed time in the backup file.
8 # Thanks, Joshua Tschida, for the idea.
9 archive =$ {1:-$ BACKUPFILE}
10 # If the file name of the backup file is not specified in the command line,
11 # + then the "backup-MM-DD-YYYY.tar.gz" will be used by default ".
12
13 tar cvf-'Find.-mtime-1-type f-print'> repeated archive.tar
14 gzip unzip archive.tar
15 echo "Directory $ PWD backed up in archive file \" Your archive.tar.gz \"."
16
17
18 # pointed out the above Code by Stephen Chazelas,
19 # + if too many files are found, or if
20 # The execution fails when + names contain spaces.



What is the syntax of Row 6 and row 9? I can't understand...
What does # + mean?

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.