Search Results

Search: Posts Made By: vickramshetty
Forum: Linux 05-28-2010
32,775
Posted By Corona688
If you're using GNU find, you can use the -regex...
If you're using GNU find, you can use the -regex option:

find ./ -regextype posix-extended -regex ".*\.(pl|pm|sql|so|sh|java|class|jar|gz|Z)"

If you don't have GNU find, you can use egrep:
...
Forum: Linux 05-28-2010
32,775
Posted By pseudocoder
Maybe find . -type f | egrep...
Maybe
find . -type f | egrep '.pl$|.pm$|.sql$|.so$|.sh$|.java$|.class$|.jar$|.gz$|.Z$' or
find . -type f | egrep '.p[lm]$|.sql$|.s[oh]$|.java$|.class$|.jar$|.gz$|.Z$'
Showing results 1 to 2 of 2

 
All times are GMT -4. The time now is 11:40 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy