Search Results

Search: Posts Made By: amnesiaiom
4,792
Posted By amnesiaiom
I am trying to check if there is a txt file...
I am trying to check if there is a txt file within a directory, and if ther is I need to do one thing, and if there isn't I need to do something else.

I have tried the code sample and it works I...
4,792
Posted By amnesiaiom
CSH - finding files with the same file extension
Hey,

I'm having a problem finding out if a directory holds any files with a certain file extension, for example .txt.

I have tried: if (! -e "*.txt")

and I've tried: set FILES=`ls *`

...
Showing results 1 to 2 of 2

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