SL0RD Voice
Joined: 05 Oct 2008 Posts: 19
|
Posted: Mon Nov 17, 2008 3:55 pm Post subject: File Opperations help |
|
|
First off, say you had this:
| Code: |
thing1 disc
thing2 disc
thing3 disc
thing4 disc
|
I would like to add a new line but if the line that i want to add starts with thing1 for example instead of adding it again at the end i want to update the existing thing1
also how could you delete a line by using lsearch but by searching the first word in each line so i would like to delete things3 for example by searching for thing3
secondly, say you had that same table, I want to be able to do a command and have it pull the first word from every line and list it in the channel ex: <bot> thing1, thing2, thing3, thing4
thanks to anyone who helps me with this. |
|