Difference between revisions of "Bash: alias"
Jump to navigation
Jump to search
Line 6: | Line 6: | ||
==Examples == | ==Examples == | ||
alias trim="awk ' {\$1=\$1} 1 '" | alias trim="awk ' {\$1=\$1} 1 '" | ||
− | + | ||
+ | alias g="grep" | ||
+ | alias gi="grep -i" | ||
+ | alias gv="grep -v" | ||
== See also == | == See also == |
Revision as of 15:29, 25 December 2019
This article is a Draft. Help us to complete it.
alias does not accept parameters but a function can be called just like an alias
Examples
alias trim="awk ' {\$1=\$1} 1 '" alias g="grep" alias gi="grep -i" alias gv="grep -v"
See also
Bash [ -c ]
,alias
,&&
, Bash history, Autocompletion,set
,unset
,export
,.bash_aliases, .bashrc and .bash profile
,PS1
,echo
,brace expansion
, Function,shopt
,trap
,set -e
,source
,PATH
,complete
,disown
,.hushlogin
,.bashrc
,builtin
,eval
,set
,$PATH
,$HOME
,TZ
,.profile
,-e, -i
,Builtin (Bash)
,mapfile
,~
, return (Bash), for, until,declare, dirname, basename, functions.sh
, Bash arithmetic expansion,shift, bash --rcfile, readonly
Advertising: