Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 16 Oct 2020 06:20:05 +0530
From:      Manish Jain <bourne.identity@hotmail.com>
To:        Robert Huff <roberthuff@rcn.com>, questions@freebsd.org
Subject:   Re: sh scripting question
Message-ID:  <DB8PR06MB64424A22725BA519978C0806F6030@DB8PR06MB6442.eurprd06.prod.outlook.com>
In-Reply-To: <24456.60388.135834.43951@jerusalem.litteratus.org>
References:  <24456.60388.135834.43951@jerusalem.litteratus.org>

next in thread | previous in thread | raw e-mail | index | archive | help
Hi Robert,

Try :

for FILE in "`cat files.list`"


Good luck,

Manish Jain



On 2020-10-16 06:10, Robert Huff wrote:
> 
> 	I have a file ("files.list") with a list of filenames, similar to
> 
> 	/path A/path B/FreeBSD is great.txt
> 
> 	(note the embedded spaces)
> 	If I use
> 
> 	for FILE in `cat files.list`
> 
> 	FILE will be set to "/path".
> 	How do I get it to read the entire string?
> 	Or am I using the wrong tool?
> 	
> 
> 			Respectfully,
> 
> 
> 				Robert Huff
> 
> 
> 
> _______________________________________________
> freebsd-questions@freebsd.org mailing list
> https://lists.freebsd.org/mailman/listinfo/freebsd-questions
> To unsubscribe, send any mail to "freebsd-questions-unsubscribe@freebsd.org"
> 



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?DB8PR06MB64424A22725BA519978C0806F6030>