-   Programming (
-   -   how many lines and words (bash) (

sharapchi 12-15-2006 12:22 PM

how many lines and words (bash)
How can i get the number of lines in a file and how can i learn the number of words in a line with using bash programming?


kilgoretrout 12-15-2006 12:28 PM

And how can I get some one else to do my homework.

fvu 12-15-2006 12:33 PM

wc -l [FILE] print the newline counts
wc -w [FILE] print the word counts

See: man wc or info wc

Freddy Vulto

matthewg42 12-15-2006 12:43 PM

Have a read of the wc manual page:

man wc
All the answers you seek are there.

sharapchi 12-15-2006 12:45 PM

I am so happy hearing these words from a senior member. I am only trying to improve myself on linux commands and bash nowadays. And i havent heard about a command named "wc". Thanks fvu and matthew. And for all helping penguins trying to walk.

All times are GMT -5. The time now is 11:06 PM.