I have a very long command in bash, which I do not want to type all the time, so I put an alias in my .profile
alias foo=\'...\'
Now I want
I am using the ll
commonly know alias for this example but you may use your alias instead, just replace ll
in the following line with your alias (foo
) and it should work:
find . -exec `alias ll | cut -d"'" -f2` {} \;
your case:
find . -exec `alias foo | cut -d"'" -f2` {} \;
Note it assumes your alias is quoted using the following syntax:
alias foo='your-very-long-command'