tru64-unix-managers (formerly alpha-osf-managers) (1994-2012)
 help / color / mirror / Atom feed
From: Nikola Milutinovic <Nikola.Milutinovic () ev ! co ! yu>
To: tru64-unix-managers
Subject: ZSh question
Date: Thu, 12 Oct 2000 10:56:13 +0000	[thread overview]
Message-ID: <97134817212993.tru64-unix-managers.marc@archive.invalid> (raw)

Hi all.

A simple ZSh and possibly other shells related question.

I have a (config) file with lines like this:

ITEM1	VALUE1
ITEM2	VALUE2
.....

I would like to parse it and I have tried the following:

for i in `cat file.cfg`
  do
  ...
  done

The problem is $i is not a line of CFG file, but a single word. Is there
a way to make $i be the entire line, like awk would do it?

awk '{ ...processing... }' file.cfg

Nix.

                 reply	other threads:[~2000-10-12 10:56 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed
read-only archive

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox