293 reputation
311
bio website
location India
age 23
visits member for 2 years
seen 15 secs ago

About me


2d
comment grep not working in a for loop over a list
Oh yes. My mistake! It works perfect now. Thanks a lot
Sep
25
comment Replace using vim - Replace a pattern […] by a string
Each number on newline. I couldn't type a newline in the comment :(
Sep
25
comment Replace using vim - Replace a pattern […] by a string
23499. 23500. 36754. 43266 and so on. Account numbers from email subject
Sep
25
comment Replace using vim - Replace a pattern […] by a string
We might need another regex for number 23499. Account number is not a constant 23499. Let me try your solution.
Sep
25
comment Replace using vim - Replace a pattern […] by a string
Yes i am able to remove [emails]. But the solution seems little difficult. Whats wrong with the things i have tried in #2?
Sep
25
comment Replace using vim - Replace a pattern […] by a string
I would prefer if i get the solution in vim
Sep
25
comment Replace using vim - Replace a pattern […] by a string
No i want to remove emails and the [] brackets that contain those emails
Sep
25
comment Replace using vim - Replace a pattern […] by a string
you see I can easily remove some part from the lines using Visual mode. vim is just a preference.
Sep
25
comment Replace using vim - Replace a pattern […] by a string
I have tried :%s/.*\-//g as there is - before the accountId I can get the account numbers easily now. By the way the solution you gave %s/\v.* - ([0-9]*), params =.*/\1/ is not working. It says Pattern not found
Sep
25
comment Replace using vim - Replace a pattern […] by a string
If I am able to remove emails it will be great (emails are put in []). I will easily be able to get the account numbers.
Sep
25
comment Replace using vim - Replace a pattern […] by a string
How can I replace emails by whitespace? Emails are put in []
Sep
25
comment Replace using vim - Replace a pattern […] by a string
Hi, I am really sorry I created a confusion. I don't have < and >. In fact <account> is a number.
Sep
11
comment Create files that both www-data and myuser can edit
Both solutions are appropriate and secure. I went with the former one. Also to change group to www-data for files that are already created by user me, I did - chgrp -R www-data </path/to/invoices>
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