Welcome to Linux Forums!

With a comprehensive Linux Forum, information on various types of Linux software and many Linux Reviews articles, we have all the knowledge you need a click away, or accessible via our knowledgeable members.

Linux Forum ArticlesLinux ForumsLinux Forum DownloadsLinux HostsFree MagazinesJobs
Home|Register|FAQ|Member List|Calendar|Unanswered Posts|Forum Rules|Today's Posts|Advanced Search|
SEARCH FOR IN
Go Back   Linux Forums > The Community > The Coffee Lounge
Reload this Page Help with UNIX
Linux Forums
Linux Forums
Welcome To The Linux Forums!
Welcome to Linux Forums. We pride ourselves in being one of the largest Linux communities on the web, we encourage you to REGISTER on our forums and participate in the community. There are over 150,000 members ready to answer your questions. JOINING US today will allow you to make new posts, get support, send messages to other members and submit downloads to our downloads directory and many other great features!

The Coffee Lounge General chat about anything that goes, a good place to introduce yourself and say hi, tell a Joke, or just relax.

Site Navigation
Articles
Linux Forums
Linux Downloads
Linux Hosting
Free Magazines
Job Board
Linux Forum Topics
Linux Forums
Your Distro
Linux Resources
GNU Linux Zone
The Community
Closed Thread
 
Thread Tools Display Modes
Old 06-26-2006   #1 (permalink)
Just Joined!
 
Join Date: Jun 2006
Posts: 2
Question Help with UNIX

Hi guys!

I'm working on some training which provides me with minimal information on what it is I'm supossed to do and how. I'm not a unix messiah. hehe

I'm supossed to get and store some lines of /etc/group that contain "user" in a file apparently on my home directory (though I don't know what lines they're talking about or what file on my home directory) and store and append them (to that same file) the lines of /etc/passwd that contain "user"

Please please help!

- neon
iamneon is offline  
Old 06-26-2006   #2 (permalink)
Super Moderator
 
Join Date: May 2004
Location: arch linux
Posts: 9,624
Is this homework for school?
__________________
oz

New Users: * FAQ *

ozar is offline  
Old 06-26-2006   #3 (permalink)
Linux Guru
 
antidrugue's Avatar
 
Join Date: Oct 2005
Location: Montreal, Canada
Posts: 3,213
Quote:
Originally Posted by iamneon
I'm supossed to get and store some lines of /etc/group that contain "user" in a file apparently on my home directory (though I don't know what lines they're talking about or what file on my home directory) and store and append them (to that same file) the lines of /etc/passwd that contain "user"
What do you want to do exactly? Please give some clarifications. You want to copy those files in your home directory?

Here is a little Unix tutorial, it might help you :
http://www.ee.surrey.ac.uk/Teaching/Unix/
__________________
"To express yourself in freedom, you must die to everything of yesterday. From the 'old', you derive security; from the 'new', you gain the flow."

-Bruce Lee
antidrugue is offline  
Old 06-26-2006   #4 (permalink)
Just Joined!
 
Join Date: Jun 2006
Posts: 2
hahhaha nooooo I'd be dammed if I were still in HS!

Im supossed to be doing a unix training, and i've submitted my answers like, 12 times. Its frustrating because my instructor won't tell me what lines i'm supossed to add or even hint me on the command or even let me know if I'm close. All he says is: try again. I need to advance into the other modules but this is the only mini lab preventing me to do so. I just can't understand it and my instructor won't help me out with it. Its through O'Reilly. Usually, they're really good. I don't know what's up with them this time.
iamneon is offline  
Old 06-26-2006   #5 (permalink)
Just Joined!
 
Join Date: Jun 2006
Posts: 2
That's exactly the problem. THEY won't even clarify it for me.

I'm gonna read over the tutorial!! Thank you so much!! Maybe I can figure this out... or maybe... just curl up in a binary corner and freeze
iamneon is offline  
Old 06-26-2006   #6 (permalink)
Linux User
 
gruven's Avatar
 
Join Date: Dec 2004
Location: Arkansas
Posts: 380
Send a message via ICQ to gruven Send a message via AIM to gruven Send a message via MSN to gruven Send a message via Yahoo to gruven Send a message via Skype™ to gruven
Let me get this straight. You want to basically get the lines with the word "user" in them from /etc/groups and /etc/passwd and store them in a file that you can append with your user at a later date?

If so, you need to learn about cat and grep.

Code:
man cat
man grep
If that isn't what you are trying to do, then I am sorry. If that is what you want to do, then it is a simple one line command that you do for what your instructor wants (maybe not simple for you because you haven't done it before). Maybe let us see some of your failed attempts and we can tell you what you did wrong.

Your instructor won't tell you why it is wrong because if he told you, then it would give the answer away because there really isn't much to it.
__________________

Linux User #376741
Gentoo Linux
gruven is offline  
Old 06-27-2006   #7 (permalink)
Linux Guru
 
budman7's Avatar
 
Join Date: Oct 2004
Location: Knee deep in Grand Rapids, Michigan
Posts: 3,242
This may not be homework for high school, but this is still homework.
I am locking this thread under the no homework rule.
__________________
Go RedWings
How to know if you are a geek.
when you respond to "get a life!" with "what's the URL?"
- Birger

New users read The FAQ
budman7 is offline  
Closed Thread



Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off
Job Search
keyword location
Post a Job »
job title, keywords or company
city, state or zip jobs by job search

Free Magazines
Free eBook:"Vulnerability Management for Dummies"
Get all the Facts and See How to Implement a Successful Vulnerability Management Program.
subscribe
Google vs The World: The Battle of the Message Security Vendors
With such a powerful name behind it, Google Message Security stands out in a sea of products that do exactly the same thing - or so they say. So when it comes right down to it, how does the Google selection stack up against the rest of messaging security's big guns?
subscribe
The Enterprise Newsweekly
eWeek is the essential technology information source for builders of e-business.
subscribe
Oracle Magazine
Oracle Magazine contains technology strategy articles, sample code, tips, Oracle and partner news, how to articles for developers and DBAs, and more. Oracle (NASDAQ: ORCL) is the world's largest enterprise software company.
subscribe
Total Telecom
Total Telecom is "The Economist of the communications industry".
subscribe
More free magazines »



All times are GMT. The time now is 01:35 PM.




© 2000 - 2008 - All Rights Reserved - Property of  MAS Media

Content Relevant URLs by vBSEO 3.2.0