generate and print a sequence of number

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 […]

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

word count

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 result separately, -c indicates characters, -w indicate […]

Posted in cat, Common, echo, wc | Hits: 52670 | 2 Comments »