Re:6.5 Million LinkedIn Password Hashes Leaked
by dpritchett on Wednesday June 06, 2012 @02:55PM
(#4075493)
[node -e] evaluates a line of node.js source from a command line argument:
[xargs] allows you to pipe the output of one command as an argument to another command. By default it will show up at the tail end of the second command's arg list, but if you want to interleave it you can use -I flag:
[xargs node -e] therefore allows text from STDIN to inserted into a script to be evaluated by the node interpreter, accessible via process.argv:
[ Parent
| on HN ]
Re:6.5 Million LinkedIn Password Hashes Leaked
by uselessuseof on Wednesday June 06, 2012 @06:46PM
(#4076593)
head -5 /usr/share/dict/words
same result as with xargs
grep petard /usr/share/dict/words
same result as with xargs
not sure what you are trying to demonstrate here
useless use of xargs?
Re:6.5 Million LinkedIn Password Hashes Leaked
by spal on Thursday June 07, 2012 @02:58AM
(#4077934)
No, he is trying to demonstrate how to use 'xargs node -e'.
Are you even reading this discussion properly or are you just searching for some shell snippets and ridicule them as soon as you get a chance? This is what it looks like from your history: http://news.ycombinator.com/threads?id=uselessuseof
ionwake doesn't want to learn how to search a word. He wants to know how 'xargs node -e' works. Please read this again: http://news.ycombinator.com/item?id=4075293