Share your knowledge at the LQ Wiki.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
Linux - Newbie This 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!


  Search this Thread
Old 03-05-2007, 05:44 PM   #1
LQ Newbie
Registered: Mar 2007
Posts: 2

Rep: Reputation: 0
Smile a pipeline for counting the lines in a directory

could someone please help me with a pipeline that will give me the name of a file with the most lines in a directory

i have tried wc .* and wc * to get the information about the files in a directory and it doesn't work!!! ls -l doesn't give me the number of lines either!!
Old 03-05-2007, 06:00 PM   #2
LQ Newbie
Registered: Mar 2007
Posts: 2

Original Poster
Rep: Reputation: 0
found the answer. wc *.*


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
counting number of lines inside a directory structure. vl@d Linux - General 4 11-20-2006 12:50 PM
pipeline buffering jk3us Linux - Software 2 12-17-2004 07:52 PM
Counting Lines ej25 Programming 20 12-06-2004 02:08 PM
pipeline using rm verstapp Linux - General 3 03-08-2004 11:33 PM
counting the commented lines using awk [ /* */] itsjvivek Linux - General 8 01-17-2003 08:30 AM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 07:21 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration