Visit Jeremy's Blog.
Go Back > Forums > Non-*NIX Forums > Programming
User Name
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.


  Search this Thread
Old 09-28-2004, 11:38 PM   #1
Registered: Apr 2003
Posts: 225

Rep: Reputation: 30
[c shell] file empty?

How do i check if a file is not empty and exists???
Old 09-28-2004, 11:57 PM   #2
Registered: Sep 2004
Location: CA, USA
Distribution: Slackware 10.2
Posts: 132

Rep: Reputation: 15
You should do a google search for 'shell programming' In bash, the command you would use is 'test' When I saw this in the guides, they compared csh with bash. It seems csh has this functionality built in already, but to be sure, you really should do a search for it.


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
remove a non empty directory in shell acidjuice Slackware 10 06-28-2011 01:02 PM
How can I check wether a file is empty in Linux by using shell script programming ??? Bassam Linux - General 2 02-26-2004 02:01 AM
cancel shell programm is dir is empty saavik Programming 1 12-29-2003 07:23 AM
shell scripting-.bash_profile empty mjkramer Linux - Newbie 1 10-04-2003 04:45 AM
XF86Config file is empty Linux - Newbie 2 06-30-2001 10:41 AM

All times are GMT -5. The time now is 08:04 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration