Shell Alias Taking Multiple Arguments

This page answers questions like these:


Related Links:
Shell String Containing Spaces is Not Splitting
Bash String Manipulation
Embed Quotes in a Shell Command or String



Shell Alias Taking Multiple Arguments:

To make an alias that takes multiple arguments you actually need to make a function, not an alias:

FUNCTION() { cp "$1" "$2" }


Related Links:
Shell String Containing Spaces is Not Splitting
Bash String Manipulation
Embed Quotes in a Shell Command or String

Home  >  Linux / Unix  >  Shell Alias Taking Multiple Arguments


Tags: bash alias taking multiple arguments, ksh alias taking multiple arguments, linux, unix, solaris, bsd, aix

Copyright © HelpDoco.com
shell-alias-with-multiple-args.txt
Linux-Unix/shell-alias-taking-multiple-arguments.htm
1