• Post Reply Bookmark Topic Watch Topic
  • New Topic

file exist?  RSS feed

 
Ranch Hand
Posts: 315
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
In my tcsh script.
I specified a path:
set location = /usr/kernel/mytext.txt

how can i echo an error message if mytext.txt doesn't exist?
Thanks!
 
Ranch Hand
Posts: 403
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!