Sending a command result to another program
by z3n on Apr.21, 2009, under Linux Happyness, Tips & Hints
Problem:
I wanted to mass edit .htaccess files on my server, but i didn’t wanted to give a vi on every of them.
Solution:
As far as i know, there should be an easier solution for this, but this is the one i’ve found so far:
command | xargs -n1 command1
Example:
find ./ -depth -name .htaccess | xargs -n1 vi
No comments for this entry yet...