The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
Newsgroups: comp.unix.programmer
From: Anand Hariharan <znvygb.nanaq.unevun...@tznvy.pbz>
Date: Sat, 4 Jul 2009 06:10:12 +0000 (UTC)
Local: Sat 4 July 2009 07:10
Subject: Writing a line based filter that exits when no input
Am writing a line-based filter a la sed or tr. What I would like it to
do, however, is if there is no input at start-up, it should present some usage information and exit. E.g., $ MyLineFilter < TextFile # OK $ Some Command | MyLineFilter # OK $ MyLineFilter $ echo $? $ MyLineFilter Command Line Args # Undecided what to do here ... Would appreciate some ideas on how to implement this. Currently, am writing the usage information to stderr (unconditionally), thanks, You must Sign in before you can post messages.
To post a message, you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
| ||||||||||||||