16 Feb
2008
16 Feb
'08
06:06
Randall R Schulz wrote:
On Friday 15 February 2008 09:22, Per Jessen wrote:
Randall R Schulz wrote:
Please break yourself of the habit of doing "cat someFile |someCommand" Very, very few Unix command do not take file names as specifications of the input on which to operate. "cat someFile |someCommand" is best replaced by:
"somecommand
Not really. The best is to let the program open the file. Then it knows that file's name, for one thing, and can include it in any diagnostics.
In the input redirection case, it's known as "stdin"
As I said, only a very few commands don't take one or more file names as input specifications.
-- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org