Live Chat!

generate and print a sequence of number

0 votos Vota!!

September 28th, 2006 mysurface

To generate a sequence of number we can use seq
seq 1 10
With this it prints 1 to 10 line by line, because by default separator is new line, anyway you can check, do this
seq -s” ” 1 10
Doing this it change new line to a single blank space.
But that is the usage of the this [...]

Posted in Misc, Text Manipulation, backquote, cat, pipeline, seq, wc | Hits: 25425 | 1 Comment »

word count

0 votos Vota!!

September 17th, 2006 mysurface

Word count is a very common tools that used to calculate number of lines, words and characters. For example if I can do this
echo “hello world.” | wc
1 2 13
The result indicate that there are 1 line, 2 words and 13 characters.
You can output [...]

Posted in Common, cat, echo, wc | Hits: 17210 | 1 Comment »