You just need to escape it correctly.
alias xxx="svn status | awk '\$1 ==\"M\"{print \$2;}'"
More Related Contents:
- When should I wrap quotes around a shell variable?
- When to wrap quotes around a shell variable?
- Why should eval be avoided in Bash, and what should I use instead?
- How to redirect output to a file and stdout
- How to kill a child process after a given timeout in Bash?
- ./configure : /bin/sh^M : bad interpreter [duplicate]
- The ‘eval’ command in Bash and its typical uses
- How to join multiple lines of file names into one with custom delimiter?
- How to set environment variable for everyone under my linux system?
- Linux: copy and create destination dir if it does not exist
- How to redirect the output of the time command to a file in Linux?
- How to handle more than 10 parameters in shell
- How to count lines in a document? [closed]
- How to use ‘cp’ command to exclude a specific directory?
- What is the meaning of a double dollar sign in bash/Makefile?
- Is it OK to use the same input file as output of a piped command?
- Run cron job only if it isn’t already running
- Redirecting command output in docker
- CURL to access a page that requires a login from a different page
- How to get file creation date/time in Bash/Debian?
- Disable and re-enable address space layout randomization only for myself
- pass stdout as file name for command line util?
- How to join multiple lines of filenames into one with custom delimiter
- Check if a variable exists in a list in Bash
- Doesn’t sh support process substitution
- Run script with rc.local: script works, but not at boot
- Maximum number of Bash arguments != max num cp arguments?
- Write a bash shell script that consumes a constant amount of RAM for a user defined time [closed]
- How to create a dynamic variable and assign value to it?
- Using “$RANDOM” to generate a random string in Bash