[CentOS] Feed a list of filenames to vim
Benjamin Franz
jfranz at freerun.comWed May 18 15:06:42 UTC 2011
- Previous message: [CentOS] Feed a list of filenames to vim
- Next message: [CentOS] Feed a list of filenames to vim
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
On 05/17/2011 09:19 AM, Jussi Hirvi wrote:
> There are some googlable ways to feed a list of filenames to vim, but I
> stumble on weird results.
[...]
The easy way for me is 'avoid the shell - use Perl instead':
perl -e 'my @files = grep(!/^\s*$/,<ARGV>); chomp @files;
system("vim", at files);' example_list.txt
--
Benjamin Franz
- Previous message: [CentOS] Feed a list of filenames to vim
- Next message: [CentOS] Feed a list of filenames to vim
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
More information about the CentOS mailing list