Page 2 of 2 FirstFirst 12
Results 11 to 12 of 12

Thread: Using bash, how to create a folder using the date and time?

  1. #11

    Default Re: Using bash, how to create a folder using the date and time?

    Quote Originally Posted by ken_yap View Post
    The section starting:

    FORMAT controls the output. Interpreted sequences are:

    PS: It's the man page for date you're are looking at, right? man 1 date?
    I was searching the wrong man page for sure... Thanks.

  2. #12
    Join Date
    Jun 2008
    Location
    UTC+10
    Posts
    9,686
    Blog Entries
    4

    Default Re: Using bash, how to create a folder using the date and time?

    Just so you understand, there are two commands on that line. First the date command within $() is run, and its output is used as the argument to the mkdir command. This is called command substitution and man 1 bash will give you the details. There is an older form of $() which is `` and if you are using a Unix machine with an older shell, you need to use that form.

Page 2 of 2 FirstFirst 12

Posting Permissions

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