Find the answer to your Linux question:
Results 1 to 2 of 2
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1

    Need help with simple bash script (noob)


    I'm just trying to make a simple date script that corresponds to different arguements...

    The script is called


    date +"%D"

    date +"%d/%m/%y"

    date +"%A, %B %d %Y"

    date +"%s"

    I just want to be able to have the arguement "one" to correspond to the first date format (date +"%D"). So that when I type ./ one, only the first date format is displayed and so on.

    I would appreciate it if someone could help me out.


  2. #2

    Duplicate threads/posts are not allowed here, it is against Forum Rules. It will help avoid getting mixed or conflicting advise. Please continue this discussion at your original thread.

    Thread Locked.

Posting Permissions

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