From mboxrd@z Thu Jan 1 00:00:00 1970 Message-ID: <97135105618904.tru64-unix-managers.marc@archive.invalid> From: Nikola Milutinovic Date: Thu, 12 Oct 2000 11:50:54 +0000 To: tru64-unix-managers Subject: SUMMARY: ZSh question X-MARC-Message: https://marc.info/?l=tru64-unix-managers&m=97135105618904 Hi all. Many responses in a short time. :-) Thanks to: Jean-Pol.Guillement@math.univ-nantes.fr (Jean-Pol Guillement) "Gavin Kreuiter" "Rost, Werner" "Frank-Peter Reich" The first three respondants gave a working solution: cat file.cfg | wnile read i do ... done Frank sugested PERL solution: #!/usr/bin/perl @file_array = ; # Read in the complete File foreach (@file_array) { # Complete line is in the implizit variable $_ my ($item, $value) = split(); # Split $_ in the other variables ... # Do anything with the variables } Thank you all. I have already found an awk workaround for my problem, but I'll keep this in mind in the future. Heck, I might even switch back to ZSh builtins. Or switch forward, to Perl :-) Nix. -- "When you find that your views match [those of] the majority, it's time to pause and reflect." -- Samuel L. Clemens, a.k.a. Mark Twain