cc: [EMAIL PROTECTED]
Subject: Re: Re: [ast-users] Fast way to read a file into an array variable?
--------


> An interesting excercise left for the reader (or until I really need
> it myself) is to modify this to add another optional boolean parameter
> that is set to 1 if the last line of the file contains a \n.

To get the last character of a file into variabe x, $file, you can use
        read -n1 x < $file <#((EOF-1))

David Korn
[EMAIL PROTECTED]
_______________________________________________
ast-users mailing list
[email protected]
https://mailman.research.att.com/mailman/listinfo/ast-users

Reply via email to