The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > Top Forums > UNIX for Dummies Questions & Answers
.
google unix.com



UNIX for Dummies Questions & Answers If you're not sure where to post a UNIX or Linux question, post it here. All UNIX and Linux newbies welcome !!

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
Problem while execution of second set of commands ran16 Shell Programming and Scripting 0 06-15-2008 11:46 AM
Running UNIX commands remotely in Windows box from Unix box – avoid entering password D.kalpana UNIX for Dummies Questions & Answers 1 04-20-2007 06:24 AM
use two unix commands to solve the following problem vicky20000 UNIX for Advanced & Expert Users 3 01-20-2007 06:35 PM
Problem running plsql & unix commands in 1 script siog UNIX for Dummies Questions & Answers 5 10-05-2006 11:46 AM
Maingrame to UNIX sending UNIX commands skammer UNIX for Dummies Questions & Answers 2 06-27-2002 01:19 PM

Closed Thread
English Japanese Spanish French German Portuguese Italian Dutch Swedish Russian Norwegian Hungarian Hebrew Danish Bulgarian Greek Powered by Powered by Google
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
  #1 (permalink)  
Old 06-14-2009
cordel cordel is offline
Registered User
  
 

Join Date: Jun 2009
Posts: 1
A problem with a few UNIX commands

Hi guys ,
I'm new in UNIX and Linux ,and would appreciate your help (very) with the following questions .
1. how can I display all the files in the /home subdirectory tree usnig find and file . I'm supposed to do this in TWO different ways

2.using grep ,I need to isolate the line int /etc/passwd that contains my loign details .
how can I do that ? I've tried to use cat /etc/passwd to display its content and I can see that it has some lines containing the word "USER"
but I can't figure out a way to use grep in order to isolate the lines .
any hint ?

3.using find and grep and sort , I need to display a sorted list of all the files int /home subdirectory tree that contain the word hello inside them .
I tried something like : grep hello 'find "*.txt" -print' ,but it doesn't work.

thanks in advance guys .
  #2 (permalink)  
Old 06-14-2009
robsonde robsonde is offline
Registered User
  
 

Join Date: Dec 2007
Posts: 163
this sounds like homework problem.
read man page on find grep and sort.
  #3 (permalink)  
Old 06-14-2009
reborg's Avatar
reborg reborg is offline Forum Staff  
Administrator
  
 

Join Date: Mar 2005
Location: Ireland
Posts: 4,246
Homework is not permitted at The UNIX and Linux Forums.

Please read the rules, which you agreed to when you registered, if you have not already done so.

More-than-likely, posting homework has resulting in a forum infraction. If you did not post homework, please explain the company you work for and the nature of the problem you are working on.

Thank You.

The UNIX and Linux Forums.
Closed Thread

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

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 On
Pingbacks are On
Refbacks are On




All times are GMT -4. The time now is 08:11 AM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited. Language Translations Powered by .
vBCredits v1.4 Copyright ©2007 - 2008, PixelFX Studios
The UNIX and Linux Forums Content Copyright ©1993-2009. All Rights Reserved.Ad Management by RedTyger

Content Relevant URLs by vBSEO 3.2.0