Linux - NewbieThis Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place!
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Introduction to Linux - A Hands on Guide
This guide was created as an overview of the Linux Operating System, geared toward new users as an exploration tour and getting started guide, with exercises at the end of each chapter.
For more advanced trainees it can be a desktop reference, and a collection of the base knowledge needed to proceed with system and network administration. This book contains many real life examples derived from the author's experience as a Linux system and network administrator, trainer and consultant. They hope these examples will help you to get a better understanding of the Linux system and that you feel encouraged to try out things on your own.
Click Here to receive this Complete Guide absolutely free.
i was looking through a 80 meg file to verify if accounts are attached to a process. some processes can have up to 10,000 accounts attached to them, some can have just one.
i tried this :
grep cdu115 ~/data/flat_files/account.t
and came up with thousands of accounts attached to processes cdu115a, cdu115c, cdu115f, and so on- but what i was looking for was just plain old cdu115. even if just one account is attached to this process, it is valid.
so i tired this
egrep '^cdu115$' ~/data/flat_files/account.t - which resulted in nothing, so the process is invalid. but just to be sure i tried:
egrep '^cdu115a$' ~/data/flat_files/account.t - which also resulted in nothing - but is false because when i greped cdu115 from this file i saw thousands of entries for cdu115a.
so i am uncertain.
I tried grep -e, double quotes, encasing the regex in / ... / .
i need to be certain that there are no accounts attached to process cdu115 before i delete it. and that is cdu115 without extremeties - no cdu115a, cdu115b, cdu115c, cdu115d, ect.
how can i be certain in regex terms that i am looking for just cdu115 and not cdu115a, cdu115b, cdu115c, ect.