LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 02-16-2004, 10:45 AM   #1
thesnaggle
Member
 
Registered: Sep 2003
Distribution: Fedora
Posts: 52

Rep: Reputation: 15
if statements


im trying to make a script that will look at a file and if it is over 1 meg in size run a script to copy it to another dir and if it is not 1 meg in size send a email saying that there is a problem

is this possable and if so how would i go about doing it
 
Old 02-16-2004, 10:52 AM   #2
hw-tph
Senior Member
 
Registered: Sep 2003
Location: Sweden
Distribution: Debian
Posts: 3,032

Rep: Reputation: 58
Mendel Cooper's The Advanced Bash Scripting Guide is an excellent start. He outlines everything you need to know and also supplies lots of good examples.

Håkan
 
  


Reply


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
if else statements 0.o Programming 7 09-27-2005 03:59 PM
if statements and case statements not working in bourne shell script mparkhurs Programming 3 06-12-2004 03:41 AM
Why my else statements always run? lectraplayer Programming 9 04-02-2004 12:38 PM
How do I use X =< Y w/ IF statements? dolvmin Linux - Software 11 09-24-2003 11:39 PM
if then statements vapor Programming 4 07-16-2003 07:44 AM


All times are GMT -5. The time now is 07:01 PM.

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