4 Linux Bash features

Source: Internet
Author: User

  • command Aliases and command calls :

    • Alias alias= ' COMMAND ' when referencing with options need to quote only valid for current bash

    • Unalias alias Cancellation

    • \command: Use its own commands, not the commands defined in the alias

    • ": Strong references even if internal variables are considered strings or other

    • "": Weak references can be used in scripts $variable

    • ": Anti-quote, you can add additional commands in the script to return execution results

  • wildcard :

    • *: Any character appears any number of times

    • []: matches any single character or character set in the specified character set

    • Span style= "FONT-SIZE:18PX;" >^: Take the inverse of the character set

    • [:lower:]:

    • [:upper:]:

    • [:alpha:]

    • [:d igit:]

    • [:alnum:]

    • [:p UNCT:]: punctuation

    • [:space:]: whitespace characters (including tab tab)

  • Echo: Echo [OPTIONS] [STRING]

    • -n Do not output the trailing newline

    • -E can use escape characters

      • \ nthe line break

      • \ t tab

      • \b Spaces

This article is from the "Ops Dog" blog, make sure to keep this source http://yunweigou.blog.51cto.com/6299641/1626540

4 Linux Bash features

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.