I would like to create an alias in my ~/.bash_profile that will:Take two arguments $1 $2Pass these to diffPipe the output to lessI have not found any solutions on Stack that do what I need, but please point me to any you know of! The following lines appear in my ~/.bash_profile:alias reload='. ~/.bash_profile'alias aliases='emacs ~/.bash_profile; reload'function dif () { diff $1 $2 | less; }alias different='dif' When I try:gsuehr$ reload-bash: /Users/gregorysuehr/.bash_profile: line 93: syntax error: unexpected end of file I am certain that I am not understanding how to use a bash function. I've confirmed that the 2 aliases: reload aliases work as expected if I comment out the function declaration. Could anybody share knowledge about:Why EOF error is occurring?How to use functions within bash to accomplish what I am trying here?
aliasing command which takes argument with using pipe
bash;alias