Reputation
343
Top tag
Next privilege 500 Rep.
Access review queues
Badges
1 4 16
Impact
~31k people reached

  • 0 posts edited
  • 0 helpful flags
  • 10 votes cast
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>
Sep
10
accepted Create files that both www-data and myuser can edit
Sep
10
asked Create files that both www-data and myuser can edit
Sep
9
awarded  Editor
Sep
9
revised Emptying a file for root user does not work
deleted 5 characters in body
Sep
9
asked Emptying a file for root user does not work
Jul
23
awarded  Nice Question
Jun
17
awarded  Constituent
Jun
17
awarded  Caucus
Feb
26
awarded  Popular Question