to display the number of blank spaces in a specified file
hi
please help me i want to write a command using pipe that will be enable to count blank spaces in a file |
This sounds like homework to me. So I will say that one way to solve this is by using 'sed' and 'wc', for more info see the man pages 'man sed', 'man wc' as well as:
http://www.grymoire.com/Unix/ http://tldp.org/LDP/abs/html/ |
Even for a homework job a bit more info would be needed. Does it have to be done by standard command-line tools, or rather as a | Perl | PHP | Ruby | Python | <your favorite scripting here> | script? Maybe even as a compiled binary? There are a lot of ways to do it, depending where the project is heading to.
|
grep and wc can solve this for you as well
|
If you want help with homework, you need to do a minimum of two things:
1. Acknowledge that it is homework 2. Show us what work you have done. |
Quote:
This is not school its the real world. Wake up. |
Quote:
|
Quote:
Since you have read the rules, you know that the key statement is--in effect--that you cannot expect help on homework. Since you have been here for a while, you also know that people DO very often get help on homework. If you read my statement as a criteria for getting help, maybe you can feel better. If it helps, I'll stipulate that it is my opinion. |
Quote:
|
[slightly offtopic, but not really] You know it'd be kind of cool if you could have a man page give you information about just a particular option that an executable has, like say, man grep -o, and man would spit out a small grep description and that options description, or maybe it would be better if it gave just the description of the option since it would have to be a pretty good parser to pick out just one option like -c out of the wc man page. Ah well maybe someday someone will add that option to man.
|
Quote:
|
All times are GMT -5. The time now is 07:32 PM. |