Command replacement-$ (), reverse quotation marks

Source: Internet
Author: User
Command replacement can use the output of a command as an extension mode.

Introduction

Command replacement can use the output of a command as an extension mode.

Format:

$ (Ls)

As follows:

[Root @ allyes20121031 de_info_center] # echo $ (ls)

2. txt argv. cpp argv. h config. cpp config. h countlogs_data.h de_info_d_socket de_info.h de_information_center de_information_center_config.txt domain_socket_client.h domain_socket.h fork_management.h global. cpp global. h internet_socket.h log. h log_record.h log.txt main. cpp server_data.h shell_script task. h task_id_center.h task_management.cpp task_management.h task_result task_result.h tmp

[Root @ allyes20121031 de_info_center] #

========================================================

Reverse quotation marks

In earlier shell programs, there were also reverse quotation marks.

As follows:

[Root @ allyes20121031 de_info_center] # echo 'Ls'

2. txt argv. cpp argv. h config. cpp config. h countlogs_data.h de_info_d_socket de_info.h de_information_center de_information_center_config.txt domain_socket_client.h domain_socket.h fork_management.h global. cpp global. h internet_socket.h log. h log_record.h log.txt main. cpp server_data.h shell_script task. h task_id_center.h task_management.cpp task_management.h task_result task_result.h tmp

[Root @ allyes20121031 de_info_center] #

========================================================

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.