pmcmicha
Technical User
- May 25, 2000
- 353
#!/bin/ksh -p
Example:
File: Test
Users Misc
----- ----
Data: Jack 784
Dirk 2345
Cindy 0987
Noone 3412
I use this to only pull what I want to see...
cat Test|awk '{print $1}' > /tmp/test.out
Now from here I want to be able to look at /tmp/test.out and pull each name from the file and put those into a case statement. Can this be done? I think it can be done using awks getline, but I am unable to figure this out from the man pages. Anyone have any ideas? Thanks in advance.
Example:
File: Test
Users Misc
----- ----
Data: Jack 784
Dirk 2345
Cindy 0987
Noone 3412
I use this to only pull what I want to see...
cat Test|awk '{print $1}' > /tmp/test.out
Now from here I want to be able to look at /tmp/test.out and pull each name from the file and put those into a case statement. Can this be done? I think it can be done using awks getline, but I am unable to figure this out from the man pages. Anyone have any ideas? Thanks in advance.