I have been given assignment of 30 scripts out of which I was able to solve many, I need help with few out of which one asks to imitate head and tail command of unix without using the head and tail commands. Problem is stated below:
Write an interactive shell script to imitate the head and tail commands in unix.Dont use head and tail command and provide appropriate switch.
since your question is "imitate head/tail without using head/tail" and nothing else, then you can use other language to do that. awk, Python, Perl..etc.