In bash, escape is a method for referencing a single character. the escape character (\ backslash) before a single character tells shell that this character does not need to be interpreted specially, and only serves as the literal meaning. however,
Hive hql: from a string "P? A? B? C? PPP? Hhh "? As the separator, find the 5th string
Bash program:
Test. Sh#!/bin/bashhive -e "select (split('p?a?b?c?ppp?hhh','?'))[4] from a limit 1;"Error:Caused by: Java. util. RegEx. patternsyntaxexception:
https://www.zhihu.com/question/21418449Mort | Zsh vs. Bash: Incomplete contrast resolution (1) 2014-10-07BdpqlxzWhat's the difference between zsh and bash?A lot of people have written about "why zsh is better than bash", "Why zsh is better than
Here is an example:
The code is as follows:
[Chengmo@localhost ~/shell]$ ls
A.txt B.txt C.old
#2
[Chengmo@localhost ~/shell]$ ls *.txt
A.txt B.txt
#3
[Chengmo@localhost ~/shell]$ ls d*.txt
LS: Unable to access d*.txt: No file or directory
Bash string processing (against Java)-2. String Representation (String constant)
In JavaYou know!Use single quotes to indicate character constants: 'C'Double quotation marks are used to indicate a String constant: "hello world" Java character escape\
1. Linux Scripting Basics
1.1 Basic Introduction to grammar
1.1.1 Start
The program must start with the following line (must be on the first line of the file):
#!/bin/sh
The symbolic #! is used to tell the system that the parameters behind it
Article Title: Custom bash. Linux is a technology channel of the IT lab in China. Includes basic categories such as desktop applications, Linux system management, kernel research, embedded systems, and open source.
Finally, we installed the Solaris 1
1. For I in 'ls *. mp3'
Common Mistakes:
for i in `ls *.mp3`; do # Wrong!
Why is it wrong? Because the for... in statement is segmented by space, the file name containing space is split into multiple words. If you encounter 01-Don't eat the
1. What is shell?
In fact, I have heard of shell before I came into contact with Linux. At that time, I was talking about shell programming and I knew nothing about it. But surprisingly, I remember this term when my memory is really bad. Okay,
Under Linux, the status of Bash is negligible, and the daily management and operation of Linux is mostly done in bash, so in order to improve the productivity of Linux, it becomes the problem of how to use bash efficiently. While some of the special
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.