Domain Name Forum

Domain Name Forum (http://www.domainnameforum.org/index.php)
-   Shell Scripting (http://www.domainnameforum.org/forumdisplay.php?f=130)
-   -   Reading Input Data from File and STDIN (http://www.domainnameforum.org/showthread.php?t=4035)

webdev 06-27-2009 08:13 AM

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...


All times are GMT -4. The time now is 05:11 AM.

Powered by vBulletin®
Copyright ©2000 - 2026, Jelsoft Enterprises Ltd.