News for hackers. Stuff that matters.
Re:The Next Ten One-Liners from CommandLineFu Explained by sown on Wednesday March 24, 2010 @02:34PM (#1216462)
My favorite is the modifier for histories.

$ ls a b c

a b c

$ ls !$

ls c

c

$ ls a b c

a b c

$ ls !:3 !:2 !:1 !:0

ls c b a ls

ls: ls: No such file or directory

a b c

$

Re:The Next Ten One-Liners from CommandLineFu Explained by scrrr on Wednesday March 24, 2010 @03:17PM (#1216592)
Ah, what a cool page that CommandLineFu is... :)
Re:The Next Ten One-Liners from CommandLineFu Explained by zellux on Wednesday March 24, 2010 @01:07PM (#1216211)
I didn't know that pipes can work with remote commands before, what amazing combinations!
Re:The Next Ten One-Liners from CommandLineFu Explained by sophacles on Wednesday March 24, 2010 @01:42PM (#1216322)
They don't -- they work with the local ssh command. Its just that ssh when invoked with a "command argument" runs that command instead of a shell, with the stdin and stdout being run through the network.

The end result is similar to what you said, but the mechanism is different, the pipe itself is strictly a local construct.

Re:The Next Ten One-Liners from CommandLineFu Explained by zellux on Friday March 26, 2010 @02:46AM (#1220417)
Thanks for pointing out that :)