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 check if a string starts with a specific value
- Urlencode string in bash
- Output bold text in console
- How to check if a command exists
- Output italic text in console
- How to check if variable is empty
- How to get date in "YYYY-MM-DD" format
- How to convert string to lowercase
- How to search and replace string in variable
- How to convert string to uppercase
See more codes...