![]() ![]() You'll also need to escape a few things within the alias as a result, and you need to escape any of the field arguments to awk since these will get interpreted as arguments by Bash as well when you're setting the alias. ![]() For example, using "" to indicate the string boundaries (which seems easier in this particular case), we first place quotation marks around the string: alias cpu="top -b n 2 -d 0. Escape single quote in command in alias Terminal. To make this an alias, which is possible, you need to use double quotes around the entire value for the alias. Pick one, and either remove the need for, or escape the other. Nesting of single quotes inside a single-quoted string is not supported in Bash (and other POSIX-compatible shells).
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |