Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!

Click here to return to the 'How to implement drag-drop from unix' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
How to implement drag-drop from unix
Authored by: mario_grgic on Sep 03, '08 03:07:19PM

Yes of course there is. The standard UNIX way is command substitution. For example:

find . -name "*.java"

finds all java files in the current directory. So what if you want to open these files in vi? Well do command substitution

vi $(find . -name "*.java")

This first runs the command in $(...) and then passes the output of that as arguments to vi, which in turn opens the files found for editing (all of them at once).

Of course, sometimes it is better to just pipe output of one command to another with |

[ Reply to This | # ]