[prev in list] [next in list] [prev in thread] [next in thread] 

List:       gentoo-desktop
Subject:    Re: [gentoo-desktop] Bash scripting
From:       "Boyd Stephen Smith Jr." <bss03 () volumehost ! com>
Date:       2005-11-08 19:51:59
Message-ID: 437101DF.8050605 () volumehost ! com
[Download RAW message or body]

Justin Denick wrote:
> Does anybody know of a way to read a file line-by-line where each 
> record(line) is 530 bytes(characters including space)long?

Can any record contain a newline (for example, escaped with some character)?

If not, you can simply use 'read' bash built in to read one line at a 
time.  You may need to use the option that turns off escapes in the 
input, depending on if you want to recognize '\' as an escape character 
or simply a normal character.

-- 
Boyd Stephen Smith Jr.
bss03@volumehost.com
-- 
gentoo-desktop@gentoo.org mailing list

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic