Generating number sequences in shell scripts

I learned this technique from a fellow participant .

$ yes |nl |head -100 |cut -f1

You can remove the  new lines as below.

$  yes |nl |head -100 | cut -f1| tr ‘\n’ ‘\t’

Cool.

Otherwise, my course is progressing well. I wrote a simple file transfer daemon and implemented  the client..  Now, I have to do the same with pthreads and non blocking calls.  We had the first glimpse of kernel programming today when some kernel data structures for process and memory managment was iintroduced. I have to read  a lot to get the exact picture.

3 comments

Comments are closed.