View Single Post
  #1  
Old 06-27-2009, 08:13 AM
webdev webdev is offline
Senior Member
 
Join Date: Jun 2009
Posts: 7,868
Default Reading Input Data from File and STDIN

Hey all, I have a dumb question to ask .. I want to know how to create a shell script that reads input from the STDIN as default, but when [-o inputFile] is entered as an option, it will read the input from the inputFile. I want to do this in a way that doesn't need to duplicate code for each...
__________________
Website Development
Domain Name Forum
Reply With Quote