Re: for loop in bash script over two variables
From: Barry Margolin (barry.margolin_at_level3.com)
Date: Thu, 23 Oct 2003 21:45:20 GMT
In article <firstname.lastname@example.org>,
Jeevan <email@example.com> wrote:
>I have two files, one (f1) which contains the list of files and other
>(f2) which contains list of their sizes respectively. I am trying to
>write a bash script which prints the name of the file and then its
>size. I was trying to use the following code but it is not working.
>for file in $files
paste f1 f2
-- Barry Margolin, firstname.lastname@example.org Level(3), Woburn, MA *** DON'T SEND TECHNICAL QUESTIONS DIRECTLY TO ME, post them to newsgroups. Please DON'T copy followups to me -- I'll assume it wasn't posted to the group.