I am trying to define alias for a group of commands counting and displaying the number of all files in account’s space with the names starting with g, t, and w. I got the result with the following command.
find $HOME -name '[gtw]*' | wc -l
But when I try to give the command, alias I got error
alias noAgtw='find $HOME -name '[gtw]*'| wc -l '
The error reads like this
noAgtw find: paths must precede expression: testing Usage: find [-H] [-L] [-P] [-Olevel] [-D help|tree|search|stat|rates|opt|exec] [path...] [expression] 0
Can anyone help me please?