[CentOS] Feed a list of filenames to vim

Bowie Bailey Bowie_Bailey at BUC.com
Wed May 18 14:09:19 UTC 2011


On 5/18/2011 9:54 AM, Jason Pyeron wrote:
>> -----Original Message-----
>> From: centos-bounces at centos.org 
>> [mailto:centos-bounces at centos.org] On Behalf Of Bowie Bailey
>> Sent: Wednesday, May 18, 2011 9:55
>> You can also do this:
>>
>> $ vim `ls -1 *.txt`
>>
>> or this:
>>
>> $ vim `find /some/dir -name '*.txt'`
>>
>> It works with any command that outputs a list of filenames.
> Until you have a space in a filename.

True.  But unless vim has a null-separator option for command line
arguments, I don't know of a way to automate that case.

-- 
Bowie



More information about the CentOS mailing list