![]() |
|
|
google unix.com
|
|||||||
| Forums | Register | Forum Rules | Links | Albums | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| 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 |
| The cut command. Really simple question! | rorey_breaker | Shell Programming and Scripting | 1 | 08-26-2007 01:08 PM |
| head command | sumesh.abraham | Shell Programming and Scripting | 6 | 02-23-2007 10:21 AM |
| simple 'head' question | terms5 | UNIX for Dummies Questions & Answers | 3 | 02-17-2006 12:31 AM |
| SImple command question | Diabeticus | UNIX for Dummies Questions & Answers | 4 | 02-08-2002 09:43 AM |
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
||||
|
Simple Command (head) Question
Okay, this probably sounds dumb for anyone who knows the answer, but I'm completely lost. I have to use the head command to search a directory AND all of its subdirectories to display the first line of all .txt files. I know how to do this: head -1 ~/UnixCourse/*.txt, but that does not search the subdirectories. I've tried to figure it out on my own and use help resources, but had no luck. I would really appreciate if someone could save me a little time and effort by helping me out here.
|
|
||||
|
I've looked into find and understand how to make that work with subdirectories, but I have not seen any way to use it with the "head" command. Am I missing something or was I just not clear that I need to use the head command to get the first lines of each file?
|
![]() |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|