Re: Read a file line by line with spaces within it.
- From: pk <pk@xxxxxxxxxx>
- Date: Mon, 18 Aug 2008 15:08:26 +0200
Sorry, a part was missing (see below).
....
while IFS= read -r current_line
do
echo "$current_line" #outputs line
done < "$current_file"
--
All the commands are tested with bash and GNU tools, so they may use
nonstandard features. I try to mention when something is nonstandard (if
I'm aware of that), but I may miss something. Corrections are welcome.
.
- Follow-Ups:
- Re: Read a file line by line with spaces within it.
- From: StephaneLeFou
- Re: Read a file line by line with spaces within it.
- References:
- Read a file line by line with spaces within it.
- From: StephaneLeFou
- Re: Read a file line by line with spaces within it.
- From: pk
- Read a file line by line with spaces within it.
- Prev by Date: Re: Read a file line by line with spaces within it.
- Next by Date: Re: Read a file line by line with spaces within it.
- Previous by thread: Re: Read a file line by line with spaces within it.
- Next by thread: Re: Read a file line by line with spaces within it.
- Index(es):
Relevant Pages
|