Any code of your own that you haven't looked at for six or more months might as well have been written by someone else.
I am doing a startup!
Cross-browser testing from your browser!
I have written my fourth book!
Be faster than Larry Wall in the shell!
You're viewing a comment by Mark and its responses.
# On computer A with IP 192.168.1.10
$ cat file | nc -l -p 6666
And of course, if you've been following along for a week or two, you know that this (BING!) is a Useless Use of Cat!
Remember, nearly all cases where you have:
cat file | some_command and its args ...
you can rewrite it as:
some_command and its args ... < file
and in some cases, but not this one, you can move the filename to the arglist as in:
some_command and its args ... file
Just another Useless Use of the Internet...
I see your point and for everyone that doesn't see this tip, it's a great one.
I personally just prefer to use cat. It keeps the data flow a nice left-to-right, which makes it easier to read.
Data flow <------
cmd < file | cmd
Data flow -------->
cat file | cmd | cmd
you can do
<file cmd | cmd
which is the same as
cmd <file | cmd
but with the right flow
That's fine until you get the redirect the wrong way around and blow away a file...
(why do I need your e-mail?)
It would be nice if you left your e-mail address. Sometimes I want to send a private message, or just thank for the great comment. Having your e-mail really helps.
I will never ever spam you.
(Your twitter handle, if you have one.)
* use <pre>...</pre> to insert a plain code snippet.
* use <pre lang="lang">...</pre> to insert a syntax highlighted code snippet.
For example, <pre lang="python">...</pre> will insert Python highlighted code.
* use <code>...</code> to highlight a variable or a single shell command.
* use <a href="url" nospam>title</a> to insert links.
<a href="url" nospam>title</a>
* use other HTML tags, such as, <b>, <i>, <blockquote>, <sup>, <sub> for text formatting.
Type the word "browser_132": (just to make sure you're a human)
Please preview the comment before submitting to make sure it's OK.
Peter Krumins' blog about programming, hacking, software reuse, software ideas, computer security, browserling, google and technology.
Reach me at:
Or meet me on:
Subscribe through an RSS feed:
Subscribe through email:
Enter your email address:
Delivered by FeedBurner
See all top articles
See all downloads
See more detailed list of recent articles
See more detailed category information
See more detailed list of all articles