Reputation
Top tag
Next privilege 100 Rep.
Edit community wikis
Badges
1 12
Newest
 Curious
Impact
~17k people reached

  • 0 posts edited
  • 0 helpful flags
  • 3 votes cast
Mar
20
awarded  Curious
Dec
15
awarded  Popular Question
Mar
24
awarded  Popular Question
Mar
7
awarded  Popular Question
Feb
21
awarded  Popular Question
Jun
22
awarded  Notable Question
Dec
2
asked show/hide specific scripts from browsers (adblock)
Nov
16
awarded  Popular Question
Sep
12
asked Change text encoding into Filelocator Pro?
Jul
23
comment Regex Notepad++?
\r\n --> leave blank it gives me all the letters without regard to neighboring spaces.
Jul
23
comment Regex Notepad++?
yes..the empty lines ARE spaces, not empty lines. The \r is right, there isn't newline
Jul
23
asked Regex Notepad++?
Jul
22
awarded  Tumbleweed
Jul
15
asked How can I run a macro on multiple files?
Jul
12
accepted Using a table or script in sed to replace many special characters with escape characters?
Jul
12
comment Using a table or script in sed to replace many special characters with escape characters?
thank you very much..remove p from table.txt and the n from second command
Jul
12
comment Using a table or script in sed to replace many special characters with escape characters?
yes..with quotes it works. Peter, i try this command sed -i -f table-derrived.sed file-to-change.txt..in this case the string beta is not canceled but alfa,gamma are replaced twice..is normally?
Jul
12
comment Using a table or script in sed to replace many special characters with escape characters?
mmm..another problem..in my file-to-change.txt i have 3 strings: alfa, beta, gamma. In my table.txt i insert F/alfa/"$/p and F/gamma/Ciao!/p because i want change only alfa and gamma strings NOT other strings. When i run sed -i -nf table-derrived.sed file-to-change.txt the strings beta inside file-to-change.txt no longer exists! there are my replacements but not other strings!
Jul
12
comment Using a table or script in sed to replace many special characters with escape characters?
Finally i solve the problem..but i had to delete a portion of text from table.txt because s|^s=sed regex||\1FAIL|p was troubling me..errors were caused because I did not think that I should delete that text, foolishly thought that sed not consider it as string..That's working now the command..yes..but for a single file located in the same folder of sed..but i have problems if have to replace text files located on different folder..what is the command to replace on different or a range folders? sed -i -nf table-derrived.sed C:\Program Files\GnuWin32\2.txt doesn't working
Jul
12
comment Using a table or script in sed to replace many special characters with escape characters?
ok..now i understand the table-derrived. OK, i just paste in this form F/$[]$/"$/p in table.txt. I run your command on CMD: sed -nf table-to-regex.sed table.txt > table-derrived.sed . new file is created. I look inside table-derrived and i have F/$[]$/"$/p converted so: s/\$\[\]\$/"$/p. "$ is my replacement. I try to run 2nd command in 3 ways but i have errors: img338.imageshack.us/img338/4034/errorsed.png Strange because the content of table-derrived seems to be valid, look here: pastebin.com/F41LQs7R In file-to-change i added the text to replace, $[]$