Quantcast
Channel: User Mark - Stack Overflow
Viewing all articles
Browse latest Browse all 44

Answer by Mark for How to escape single quotes while setting aliases

$
0
0

The other answers contain better solutions in this (and most) cases, but might you for some reason really want to escape ', you can do '"'"' which actually ends the string, adds a ' escaped by " and starts the string again.

alias mx='find . -name '"'"'*.sh'"'"' -exec chmod a+x {} \;'

There is more information at How to escape single quotes within single quoted strings.


Viewing all articles
Browse latest Browse all 44

Latest Images

Trending Articles



Latest Images

<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>