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 command exists
- How to get time in "HH:II:SS" (hour:minute:second) format
- Binet's Formula in bash
- How to check if a string starts with a specific value
- Check if file exists
- Output bold text in console
- Change file owner in bash
- Change directory permissions recursively using chmod in bash
- Urlencode string in bash
- Quickly create big file
See more codes...