tru64-unix-managers (formerly alpha-osf-managers) (1994-2012)
 help / color / mirror / Atom feed
* ZSh question
@ 2000-10-12 10:56 Nikola Milutinovic
  0 siblings, 0 replies; only message in thread
From: Nikola Milutinovic @ 2000-10-12 10:56 UTC (permalink / raw)
  To: tru64-unix-managers

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.

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2000-10-12 10:56 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2000-10-12 10:56 ZSh question Nikola Milutinovic

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