Sponsored Content
Top Forums Shell Programming and Scripting New to UNIX like 2 weeks of study only Post 302922710 by Gmoney93079 on Monday 27th of October 2014 10:30:39 PM
Old 10-27-2014
ok, let me ask you this then, lets say I enter a users name, I read in the value, while name is not equal to x I do something, I then grep a file to search if the value of name exists in there, if so I don't want it to do anything, if not, then I want it to do something, then exit the if block go back where I left off in while loop, check value of name variable, if name is not x continue looping, once name is an x end program. How would I do that then? In other words how do you compare the value of name to value of name that I grep from another file?
 

10 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

I want to start study Unix!

hello .. I am college student and a new guy to unix. I have a simple question: what does "unix" stand for ,or just a meaningless name ? (4 Replies)
Discussion started by: nanuo
4 Replies

2. UNIX for Dummies Questions & Answers

i want to study unix,but it is very dificult.

14 (2 Replies)
Discussion started by: zbweh5280
2 Replies

3. UNIX for Dummies Questions & Answers

help for unix study

hi I am vijay how r the unix gurus? I want to install unix for our sites.So pls tell me abt unix installation user guide & also all the unix commands.Pls help me.I am waiting for yr reply. bye..........vijay :D (2 Replies)
Discussion started by: vi77_surat
2 Replies

4. Programming

Good Unix Online Study Material

HI Friends, I wanted to start this thread inorder to keep all the Unix starters to easily find useful material through this thread...I request you all to provide with the URL address of any gud material you know... thanks and regards... (2 Replies)
Discussion started by: rahul3894singh
2 Replies

5. UNIX for Dummies Questions & Answers

Any study material for begineers for UNIX please??

Any study material for begineers for UNIX please?? (2 Replies)
Discussion started by: niranjany
2 Replies

6. UNIX for Dummies Questions & Answers

Unix study help

Hi, I need some help with the follow questions :(. Any help would be great! Answer with the necessary commands 1. In your login directory, make a directory called week4/revision 2. Without changing directories, make another directory week4_revision/data 3. Change to week4_revision/data... (2 Replies)
Discussion started by: Heyo
2 Replies

7. What is on Your Mind?

UNIX Admin (Papers and study material)

Hi, I want to prepare and then appear for Unix admin certification. Please guide me for the study material and Exams that are required to be taken for UNIX certifcation. Thanks in advance. (11 Replies)
Discussion started by: raman1605
11 Replies

8. Programming

UNIX- -Case study - Library management.

Hi.. I am a new joinee to this foram.I need to submit a case study in UNIX .Please help me to submit the case study by giving your valuable ideas.It will be very helpful for me. Topic: Unix File Management A university wants to computerize its Library operations because of... (2 Replies)
Discussion started by: viji_jeya
2 Replies

9. UNIX for Dummies Questions & Answers

UNIX Study Material

Hi , Can anyone suggest me any UNIX Study material and UNIX Certification specific for TELECOM-DOMAIN. Best Regards, Om Prakash. (14 Replies)
Discussion started by: omprakash1986
14 Replies

10. SCO

Study UNIX Kernel

Hi all, I hope you are fine, I'd like study Os I tried a book like Silberschatz it's a good book but like other books it talks about the concepts abstractly and that's due to it try to encompass many concepts from many operating systems in GENERAL. i am not too much comfortable from these... (20 Replies)
Discussion started by: Abdo_8008
20 Replies
ZGREP(1)                                                      General Commands Manual                                                     ZGREP(1)

NAME
zgrep - search possibly compressed files for a regular expression SYNOPSIS
zgrep [ grep_options ] [ -e ] pattern filename... DESCRIPTION
Zgrep invokes grep on compressed or gzipped files. These grep options will cause zgrep to terminate with an error code: (-[drRzZ]|--di*|--exc*|--inc*|--rec*|--nu*). All other options specified are passed directly to grep. If no file is specified, then the standard input is decompressed if necessary and fed to grep. Otherwise the given files are uncompressed if necessary and fed to grep. If the GREP environment variable is set, zgrep uses it as the grep program to be invoked. EXIT CODE
2 - An option that is not supported was specified. AUTHOR
Charles Levert (charles@comm.polymtl.ca) SEE ALSO
grep(1), gzexe(1), gzip(1), zdiff(1), zforce(1), zmore(1), znew(1) ZGREP(1)
All times are GMT -4. The time now is 06:29 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy