bashHow to escape single quote in a single-quoted string
echo 'It'"'"'s easy'ctrl + c'"'"'in order to escape, replace |
More of Bash
- How to get time in "HH:II:SS" (hour:minute:second) format
- How to get time in "YYYY-MM-DD HH:II:SS" (year-month-date hour:minute:second) format
- How to get date in "YYYY-MM-DD" format
- How to convert string to lowercase
- How to check if a command exists
- How to search and replace string in variable
- How to count lines in a text file
- How to convert string to uppercase
- Output bold text in console
- Urlencode string in bash
See more codes...