219 reputation
39
bio website
location India
age 23
visits member for 1 year, 9 months
seen Jul 24 at 9:55

About me


Nov
22
comment Prevent scp from asking passphrase
Thanks. The answers from the duplicate function were really helpful. I think keychain will do. But If that's not convenient I'll go with passphrase-less authentication.
Nov
21
comment Automated ssh login with passphrase?
But where do I put from= and command=? I mean in which file?
Jan
4
comment Why is the terminal case-sensitive?
@scai, yes. It's generally a problem with case insensitiveness. Read Emanuel Berg's answer.
Jan
4
comment Why is the terminal case-sensitive?
Thanks. took me some time to read and understand it, but very helpful +1.
Jan
4
comment Why is the terminal case-sensitive?
@scai , How will two commands match?
Jan
4
comment Why is the terminal case-sensitive?
thanks. "it is a file system feature" made me understand more about linux filesystem. +1
Jan
4
comment Why is the terminal case-sensitive?
good. I get it. +1
Oct
12
comment Only one file name allowed error
yes. i just cross checked it with vim
Oct
12
comment Only one file name allowed error
what good may come from this. a user can tamper with other user's data. Doesn't this look bad?
Oct
12
comment How can I detect that no options were passed with getopts?
thanks. +1 for you. when I put the last 3 lines from your code in sample.sh and run bash sample.sh -abc file.txt it gives - 1 non-option arguments. how do I find out how many options were given. (here 3)
Oct
12
comment Only one file name allowed error
can I :wq! and forcefully save it even if I don't have the write permissions? In my case if I am not the super user?
Oct
11
comment Only one file name allowed error
Sure thing. thanks. Can't +1 for you.
Oct
11
comment Only one file name allowed error
Sorry about that. I'll keep this in mind. Also I should put only the first occurrence of code-word in code, right? Don't mind me asking it here instead of meta.
Oct
11
comment Only one file name allowed error
I wanted to leave a comment and ask those guys on stackoverflow.com/questions/1005/… but don't have enough reputation to leave a comment.
Oct
11
comment How can I detect that no options were passed with getopts?
what if I was running other shell? zsh, sh. does any shell other than bash take care of this condition?
Oct
11
comment How can I detect that no options were passed with getopts?
thanks. the above code really helped. Its too bad getopts doesn't have such provision. What's worse than that is can't upvote you.
Oct
11
comment How can I detect that no options were passed with getopts?
no. its bash. So how do i achieve what I want - handle the no argument condition using bash.
Oct
11
comment How can I detect that no options were passed with getopts?
I am running it under /bin/bash