tags:

views:

17

answers:

1

Escaping * char in cshell alias

i want to write a C Shell Alias which can find files starting with a pattern

ie equivalent of find . -name "pattern*"

myfind pattern should do above cmd where myfind is the alias name. How do i escape the * in csh alias ?

alias myfind 'find . -name !**'

+1  A: 

You dont need to escape. This works as -

alias myfind "find . -name 'pattern*'"
Gopi
Single quotes are more or less equivalent to escaping.
Dennis Williamson
Agreed. I should have said "no need to escape '*'s specifically"
Gopi