Introduction to LINUXshell script

Source: Internet
Author: User
LINUXshell script introduction echoHelloworld! Equivalent to echo & amp; #39; Helloworld! & Amp; #39; but not equivalent to echo & quot; Helloworld! & Quot ;(! When placed in double quotation marks, escape \) www.2cto.com simple judgment example 1 #! /Bin/bas... LINUX shell script introduction echo Hello world! Equivalent to echo 'Hello world! 'But not equivalent to echo "Hello world! "
(! When placed in double quotation marks, escape \) www.2cto.com simple judgment example 1 #! /Bin/bash2if [$ UID ne 0]; then3 echo Non root user. Please run as root.4else5 echo "Root user" 6fi... rest for a while and continue www.2cto.com continue 1 #! /Bin/bash2start = $ (data + % s) 3 commands; 4 statements; 5end = $ (data + % s) 6 differenc = $ (end-start )) 7 echo Time taken to execute commands is $ difference seconds.
Related Article

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.