[CentOS] Feed a list of filenames to vim

Les Mikesell lesmikesell at gmail.com
Wed May 18 16:58:51 UTC 2011


On 5/18/2011 11:33 AM, Bowie Bailey wrote:
> On 5/18/2011 11:34 AM, Michael Gliwinski wrote:
>>
>> Note that there's also a shortcut for cat (without launching a subprocess):
>>
>>    $ vim $(<  listfile)
>
> That's one of those occasionally-useful tidbits that I will have
> completely forgotten about by the time I need to use it again!  :-)

Don't think of it as a special case.  It is a combination of two 
generically useful simple operations.  Unix, the shell, and vi are all 
about being able to reuse and combine simple steps instead of 
special-casing everything.

-- 
   Les Mikesell
    lesmikesell at gmail.com






More information about the CentOS mailing list