I need to use the Linux find command so that I can search for one name or the other.
I need a way to find two files that are transferred from MS Windows applications. One is produced with a .csv extension, and the other has a .CSV extension. They also have spaces in the file names, which I know how to handle.
However, but I am not quite sure how to add .CSV to the -name \*.csv parameter of the followingfind command.
Can two values be OR’d in the -name parameter?
for fnam in `find . -maxdepth 1 -type f -name \*.csv -exec echo "{}" \;`
do
.
.
.
This command should find both types of files. Please note the escape characters and spaces after parentheses.
find . \( -name "*.cvs" -o -name "*.CVS" \)