293 reputation
311
bio website
location India
age 23
visits member for 2 years, 2 months
seen Dec 24 at 13:32

About me


Oct
22
revised grep not working in a for loop over a list
edited body
Oct
22
accepted grep not working in a for loop over a list
Oct
22
comment grep not working in a for loop over a list
Oh yes. My mistake! It works perfect now. Thanks a lot
Oct
22
asked grep not working in a for loop over a list
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
revised Replace using vim - Replace a pattern […] by a string
added 15 characters in body
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
revised Replace using vim - Replace a pattern […] by a string
added 35 characters in body
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
25
asked Replace using vim - Replace a pattern […] by a string
Sep
24
awarded  Autobiographer
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>