- Learning Linux Shell Scripting
- Ganesh Naik
- 98字
- 2021-06-25 22:02:51
Brace expansion
Curly braces allow you to specify a set of characters from which the shell automatically forms all possible combinations. To make this work, the characters to be combined with the given string must be specified as a comma-separated list with no spaces:
$ touch file{1,2,3} $ ls
$ mkdir directory{1,2,3}{a,b,c} $ ls
$ touch file{a..z} $ ls
The following is the summary of various I/O-redirection and logical operators:
For example:
$ ls || echo "Command un-successful" $ ls a abcd || echo "Command un-successful"
These commands will print Command un-successful if the ls command is unsuccessful.
推薦閱讀
- TIBCO Spotfire:A Comprehensive Primer(Second Edition)
- 西門子S7-200 SMART PLC從入門到精通
- 并行數據挖掘及性能優化:關聯規則與數據相關性分析
- 影視后期制作(Avid Media Composer 5.0)
- JSF2和RichFaces4使用指南
- CompTIA Network+ Certification Guide
- 基于單片機的嵌入式工程開發詳解
- Storm應用實踐:實時事務處理之策略
- 菜鳥起飛系統安裝與重裝
- 單片機C語言應用100例
- Red Hat Linux 9實務自學手冊
- 工業機器人實操進階手冊
- Photoshop CS4數碼攝影處理50例
- 手把手教你學Flash CS3
- Instant Slic3r