TAILIEUCHUNG - UNIX Unleashed, System Administrator's Edition phần 5

q Bash có dòng lệnh chỉnh sửa tương tự như tcsh và ksh. Con trỏ có thể được chuyển đến bất kỳ vị trí trong dòng lệnh cho phép các lệnh để được chỉnh sửa. Điều khiển chỉnh sửa có thể được thiết lập để vi, emacs, hoặc các chế độ người dùng định nghĩa. | inside the quoted string leaving its unity as a single word intact even if the substituted value includes blanks tabs or newline characters . Command substitution occurs for strings enclosed in backquotes . The entire string enclosed between matching backquotes also known as backticks is extracted and executed by the current shell as if it were an independent command. The command can be two or more commands separated by semicolons a pipeline or any form of compound statement. Any data written to standard output by the command is captured by the shell and becomes the string value of the backquoted command. The string value is parsed into words and the series of words replaces the entire backquoted string. Using backquotes to perform command substitution can be thought of as an I O redirection to the command line. TIP Although command substitution is a powerful feature of the C shell it does have limitations. Some commands generate more output than a command line can hold for example. Command-line length is determined by the LINE_MAX and ARG_MAX system parameters consult your limits man page or look over usr include . Additionally at times you will need to process each item of output individually in which case command substitution is not of much use. Suppose that you want to find all your C source files . hh cc starting from your home directory down your entire directory tree and search the files found for the use of a certain class RWString . The command grep RWString find home -name . ch ch -print -follow generates the message bin grep Arg list too long on my system. The UNIX command xargs was tailor made to solve this problem. The general use of xargs follows xargs options command xargs reads from the standard input and places that input on the command-line of command. As many arguments as possible are passed to command on its command line. As a result the command executed by xargs may be called multiple times in order to use up all the input read from .

TỪ KHÓA LIÊN QUAN
TAILIEUCHUNG - Chia sẻ tài liệu không giới hạn
Địa chỉ : 444 Hoang Hoa Tham, Hanoi, Viet Nam
Website : tailieuchung.com
Email : tailieuchung20@gmail.com
Tailieuchung.com là thư viện tài liệu trực tuyến, nơi chia sẽ trao đổi hàng triệu tài liệu như luận văn đồ án, sách, giáo trình, đề thi.
Chúng tôi không chịu trách nhiệm liên quan đến các vấn đề bản quyền nội dung tài liệu được thành viên tự nguyện đăng tải lên, nếu phát hiện thấy tài liệu xấu hoặc tài liệu có bản quyền xin hãy email cho chúng tôi.
Đã phát hiện trình chặn quảng cáo AdBlock
Trang web này phụ thuộc vào doanh thu từ số lần hiển thị quảng cáo để tồn tại. Vui lòng tắt trình chặn quảng cáo của bạn hoặc tạm dừng tính năng chặn quảng cáo cho trang web này.