use PERL, your life would be much easier.
On Fri, 13 Jul 2001, Chris G Haravata wrote:
> haba ng subject line ano? :)
>
> anyway, the problem is this: i need to create a script which will
> automatically create user home directories from a file. but i need to read
> the file first from within the script. the file looks like the ff:
>
> /home/2000/abc-123455
> /home/1995/def-678901
> /home/2001/ghi-234567
> <etc until 1125 lines later>
>
> problem is: is there a command to use which will read each line of the file
> and put the contents of that line in a variable?
> -----------------------
> Spawn - The Scourge of the Damned
>
> Chris G Haravata
> Backend Team Leader
> Information Technology Resource Group
> Asia Pacific College (www.apc.edu.ph)
> #3 Humabon Place, Magallanes Subd.,
> Makati City
> Tel No 8529232 loc 402
>
>
>
--
Mike B.
_
Philippine Linux Users Group. Web site and archives at http://plug.linux.org.ph
To leave: send "unsubscribe" in the body to [EMAIL PROTECTED]
To subscribe to the Linux Newbies' List: send "subscribe" in the body to
[EMAIL PROTECTED]