[CentOS] stupid bash question
Craig White
craig.white at ttiltd.comWed Aug 15 22:19:58 UTC 2012
- Previous message: [CentOS] KVM Setup for Win7 Pro on CentOS 5.x
- Next message: [CentOS] stupid bash question
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
the relevant snippet is... NAME="*.mov" cd $IN if test -n "$(find . -maxdepth 1 -name $NAME -print -quit)" and if there is one file in this directory - ie test.mov, this works fine but if there are two (or more) files in this directory - test.mov, test2.mov then I get an error... find: paths must precede expression So my code is evidently wrong. I just want a test for 1 or more files ending in .mov in the directory? Any one want to toss me a bone here? -- Craig White ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ craig.white at ttiltd.com 1.800.869.6908 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ www.ttiassessments.com Need help communicating between generations at work to achieve your desired success? Let us help!
- Previous message: [CentOS] KVM Setup for Win7 Pro on CentOS 5.x
- Next message: [CentOS] stupid bash question
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
More information about the CentOS mailing list