Omnimaga

General Discussion => Technology and Development => Computer Usage and Setup Help => Topic started by: noobnonin on October 07, 2013, 05:18:27 pm

Title: modifying a list
Post by: noobnonin on October 07, 2013, 05:18:27 pm
Good day

Good day all, i come back for help once again, does somebody knows a program or something related in which if i have a huge amount of information with the same pattern and i just want to change a few things, helps me so i dont have to do it one by one?

example:

(a2)i am noob(a2)                    ------------------                   and change this to ----------------              (a3)i am noob indeed(a3)
(ss) blablablabla (ss)                                                                                                                           (ss2) blablablabla (ss2)
(ss) blablablabla (ss)                                                                                                                            (ss3) blablablabla (ss3)

(a2)i am noob indeed(a2)                                                                                                                            etc etc----
(ss) blablablabla (ss)

(a2)i am noob yes i am(a2)
(ss) blablablabla (ss)
Title: Re: modifying a list
Post by: shmibs on October 07, 2013, 05:49:40 pm
what exactly are you trying to ask? most text editors have a "find and replace" function which can swap one string anywhere it occurs in a document for another specified string. if you want a more complex transformation, you will need to use something which supports regular expressions (https://en.wikipedia.org/wiki/Regular_expression). the two options i would suggest for something like that would be sed (https://en.wikipedia.org/wiki/Sed) (if you're using a unix-like system, including osx), or perl (http://www.perl.org/), which is a scripting language with fantastic regex support and runs on all the major operating systems.
Title: Re: modifying a list
Post by: noobnonin on October 07, 2013, 07:14:56 pm
ok thanks.... and please stop the mass downgrade >.>
Title: Re: modifying a list
Post by: DJ Omnimaga on October 09, 2013, 01:42:48 am
If you mean the mass downrating it was probably done for a reason (especially the wifi network hacking thread and even moreso the fact a second topic was made immediately after the first got locked). However if you ever have concerns about suspicious post rating activity or intentional mass downrating by a single member then contact an admin if they are active posting.
Title: Re: modifying a list
Post by: noobnonin on October 10, 2013, 08:08:27 pm
ahahahah you remember that post haha xd
well, i actuallly managed to see how i could hack those wifi networks but as i said before, i am not going to do it, i was just researching

Regards