Fedora Linux Support Community & Resources Center
  #1  
Old 25th January 2012, 09:09 PM
glennzo's Avatar
glennzo Offline
Un-Retired Administrator
 
Join Date: Mar 2004
Location: Salem, Mass USA
Posts: 13,922
windows_xp_2003chrome
Simple bash script question

I'm writing and debugging a bash script. This script writes to several files. For testing purposes I've created text files and have directed the output to those text files. I run the script, check the text files to see if I got the results I'm expecting, clear the content of the text files and make changes to the script. Then I repeat the process. This is tedious. Now, the first few sections of the script behave as I want them to and are complete. Can I direct the output to /dev/null instead of text files while I move on to the next section?
__________________
Glenn
The Bassinator © ®


Laptop: Toshiba Satellite / Intel Core 2 Duo 1.73 GHz / 2GB / 160GB / Intel Mobile 945GM/GMS/GME/943/940GML Integrated Graphics
Desktop: BioStar MCP6PB M2+ / AMD Phenom 9750 Quad Core / 4GB / 1TB SATA / 500GB SATA / EVGA GeForce 8400 GS 1GB
Reply With Quote
  #2  
Old 25th January 2012, 09:13 PM
RupertPupkin's Avatar
RupertPupkin Offline
Registered User
 
Join Date: Nov 2006
Location: Detroit
Posts: 4,612
linuxfedorafirefox
Re: Simple bash script question

Code:
#     #  #######   #####
 #   #   #        #     #
  # #    #        #
   #     #####     #####
   #     #              #
   #     #        #     #
   #     #######   #####
Reply With Quote
  #3  
Old 25th January 2012, 09:29 PM
glennzo's Avatar
glennzo Offline
Un-Retired Administrator
 
Join Date: Mar 2004
Location: Salem, Mass USA
Posts: 13,922
windows_xp_2003firefox
Re: Simple bash script question

You funny guy! Thank you sir
__________________
Glenn
The Bassinator © ®


Laptop: Toshiba Satellite / Intel Core 2 Duo 1.73 GHz / 2GB / 160GB / Intel Mobile 945GM/GMS/GME/943/940GML Integrated Graphics
Desktop: BioStar MCP6PB M2+ / AMD Phenom 9750 Quad Core / 4GB / 1TB SATA / 500GB SATA / EVGA GeForce 8400 GS 1GB
Reply With Quote
Reply

Tags
bash, question, script, simple

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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 On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
simple bash question SkyFlyer Using Fedora 11 20th February 2008 11:20 AM
simple bash script konjo Programming & Packaging 9 14th November 2007 09:17 AM
simple bash script need doboy408 Using Fedora 2 23rd March 2006 07:23 AM


Current GMT-time: 05:55 (Saturday, 18-05-2013)

TopSubscribe to XML RSS for all Threads in all ForumsFedoraForumDotOrg Archive
logo

All trademarks, and forum posts in this site are property of their respective owner(s).
FedoraForum.org is privately owned and is not directly sponsored by the Fedora Project or Red Hat, Inc.

Privacy Policy | Term of Use | Posting Guidelines | Archive | Contact Us | Founding Members

Powered by vBulletin® Copyright ©2000 - 2012, vBulletin Solutions, Inc.

FedoraForum is Powered by RedHat