Possible Duplicate:
bash tool to get nth line from a file
I want to build a small SSH manager for myself, and I want to hold all servers in a plain text file and I want to do something like:
ssh -i /home/edy/Documents/visually_ops.pem root@((N-th line of my file))
So I can use the ssh
command and send it the N-th line of my plain text file, which is the host name. Would this be achievable?