Skip to main content

All Questions

Tagged with
-1 votes
2 answers
385 views

alias the find function and use it with sudo [duplicate]

I'm having trouble creating an alias so I can run find in "silent mode" (without all the Permission denied messages). my bash skills are pretty bad so I'm not sure how to fix this here's my alias in ~...
ChumiestBucket's user avatar
1 vote
2 answers
634 views

find command throws errors when inside function

I can run the following command in bash without any errors: $ find /d/Code/Web/Development/Source/ \( -name '*.cs' -o -name '*.cshtml' \) -exec grep -IH UserProfileModel {} \; I wrote a function in ....
Big McLargeHuge's user avatar
1 vote
3 answers
2k views

A problem with find and grep

I have defined the following alias in ~/.bashrc: alias fg='find . -name $1 | xargs grep --color $2' in order to write fg "*.txt" " my_text " and find all file that have extension .txt and ...
Narek's user avatar
  • 127