; how do I check that a file with a particular extension exists in a directory ; in a shell script. a more relevant question is why do you want to? It sounds like you're checking to see if a file exists before you do something to it (process it, move it, delete it) this is a race condition and is considered to be bad programming. What are you really trying to do? r. -- SLUG - Sydney Linux User Group Mailing List - http://slug.org.au/ More Info: http://lists.slug.org.au/listinfo/slug
- [SLUG] if [[ -e *.TXT ]] ; then Alister Waller
- Re: [SLUG] if [[ -e *.TXT ]] ; then Jobst Schmalenbach
- Re: [SLUG] if [[ -e *.TXT ]] ; then Jeff Waugh
- RE: [SLUG] if [[ -e *.TXT ]] ; then Alister Waller
- Re: [SLUG] if [[ -e *.TXT ]] ; then Jeff Waugh
- Re: [SLUG] if [[ -e *.TXT ]] ; then Terry Collins
- Re: [SLUG] if [[ -e *.TXT ]] ; then Russell Davies
- Re: [SLUG] if [[ -e *.TXT ]] ; then Alister Waller
- Re: [SLUG] if [[ -e *.TXT ]] ; then Russell Davies
- Re: [SLUG] if [[ -e *.TXT ]] ; then Jeff Waugh
- Re: [SLUG] if [[ -e *.TXT ]] ; then Alister Waller
