Total Format - Total Entertainment
 
 

Go Back   Total Format Forum > Computing Forums > General Computer Discussion

General Computer Discussion You should use this section to discuss software topics including Windows, Linux and various software applications, together with hardware related topics including buying a new machine, graphics cards, keyboards, etc.

Reply
 
LinkBack Thread Tools Display Modes
Old 20-05-2009, 21:10   #1 (permalink)
Name, Title, Location Pirax
Full Member

Leeds :D
England
AvatarPirax's Avatar
Posts365
Karma Pirax is adept.Pirax is adept.Pirax is adept.Pirax is adept.Pirax is adept.Pirax is adept.Pirax is adept.Pirax is adept.Pirax is adept.Pirax is adept.Pirax is adept.
Pu4,808.41
Default Changing info in lots of text files

Hello, im looking for a way to mass replace a value in lots of text files.

I use Maya for 3D animation and have created a fair few MEL scripts. I have about 30 different scripts that rely on getting various textures from my storage computer.

Now for reasons i wont go into it looks for the computer name which has now changed.

So do any of you know a way to mass change the values in a text file so i can change it from "StorageOrion" "Cluster01" as there are about 300 entries and i dont fancy copy and pasting it 300 times.

So i can set it to search for "StorageOrion" and replace it with "Cluster01" if worse comes to worse i can use replace all function in word but still a bit of a ball ache
Pirax's Sig:Marching On Togeather!.
ToolsPirax is offline
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 20-05-2009, 23:06   #2 (permalink)
Name & TitleHarv
Guest
Postsn/a
Pu0 [Check]
Default

download crimson editor - free text editor

Homepage of Crimson Editor

You can open up all your text files at the same time then do a mass search and replace on all the open text files then do a save all as well. Its a great text editor
Tools
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 20-05-2009, 23:45   #3 (permalink)
Name, Title, Location Pirax
Full Member

Leeds :D
England
AvatarPirax's Avatar
Posts365
Karma Pirax is adept.Pirax is adept.Pirax is adept.Pirax is adept.Pirax is adept.Pirax is adept.Pirax is adept.Pirax is adept.Pirax is adept.Pirax is adept.Pirax is adept.
Pu4,808.41
Default

Sounds perfect will give it a try 2moz
Pirax's Sig:Marching On Togeather!.
ToolsPirax is offline
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 21-05-2009, 08:11   #4 (permalink)
Name, Title, Location LippoW
Pompous atheist

Oulu
Finland
AvatarLippoW's Avatar
Awards
Mood
Posts1,386
Karma LippoW is an experienced TFer.
LippoW is an experienced TFer.LippoW is an experienced TFer.LippoW is an experienced TFer.LippoW is an experienced TFer.LippoW is an experienced TFer.LippoW is an experienced TFer.LippoW is an experienced TFer.LippoW is an experienced TFer.LippoW is an experienced TFer.LippoW is an experienced TFer.LippoW is an experienced TFer.LippoW is an experienced TFer.LippoW is an experienced TFer.
Pu7,173.37
Four Leaf Clover Four Leaf Clover Four Leaf Clover Four Leaf Clover Big Beer Big Beer Big Beer Big Beer
Default

Notepad++ is a good one too. And free. It's has many useful addons.

.:: NOTEPAD++ ::.
ToolsLippoW is offline
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 21-05-2009, 13:06   #5 (permalink)
Name, Title, Location Pirax
Full Member

Leeds :D
England
AvatarPirax's Avatar
Posts365
Karma Pirax is adept.Pirax is adept.Pirax is adept.Pirax is adept.Pirax is adept.Pirax is adept.Pirax is adept.Pirax is adept.Pirax is adept.Pirax is adept.Pirax is adept.
Pu4,808.41
Default

Thanks LippoW ill give them both a look now.
Pirax's Sig:Marching On Togeather!.
ToolsPirax is offline
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 21-05-2009, 14:14   #6 (permalink)
Name, Title Puratech
The True Forsaken

United Kingdom
AvatarPuratech's Avatar
Awards
Mood
Posts6,036
Karma Puratech is a superior being.Puratech is a superior being.Puratech is a superior being.Puratech is a superior being.
Puratech is a superior being.Puratech is a superior being.Puratech is a superior being.Puratech is a superior being.Puratech is a superior being.Puratech is a superior being.Puratech is a superior being.Puratech is a superior being.Puratech is a superior being.Puratech is a superior being.Puratech is a superior being.Puratech is a superior being.Puratech is a superior being.Puratech is a superior being.
Pu2,413.93
Heart Love Hearts Banana Grapes Dummy Cookie TV Chocolate Nut Slush Cake Donut Burger in a bun Big Beer Beer Umbrella Pie

Default

Is something linux would do 100 times better, could do it via the command line or a little script.

I do recall someone using hyperedit, but that seems like something else now.

Not to criticise your google skills, but this search seems to bring up a lot of appropriate replys to look into: search replace text string multiple files - Google Search

Its not an uncommon problem, id expect theres plenty of little programs that do exactly what you want. Remember to backup stuff first though incase it doesnt work 100% as expected.
Puratech's Sig:It's funny how life turns out,
The odds of faith in the face of doubt,
Camera One closes in,
The soundtrack starts,
The scene begins...


Quocunque Jeceris Stabit
Tools Puratech is online now
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 22-05-2009, 12:37   #7 (permalink)
Name, Title, Location meow
Kissed all the girls

The twighlight zone
Maldives
Avatarmeow's Avatar
Awards
Mood
Posts3,294
Karma meow is amazing.
meow is amazing.meow is amazing.meow is amazing.meow is amazing.meow is amazing.meow is amazing.meow is amazing.meow is amazing.meow is amazing.meow is amazing.meow is amazing.meow is amazing.meow is amazing.meow is amazing.meow is amazing.
Pu7,973.10
Cat 3 Gift Box Medal Single Red Rose Flowers Cake French Fries litebeer Apple Superman Heart Love Hearts Cash Love Hearts Tissues

Default

grep = get regular expression (unix)

although it does more than just "get" it lol

its sad i used to know the unix command line for grep like the back of my hand,,, but cant remember it now, Ive got to these window things.

the visual c# ide i use which is free is awesome , just highlight a word , hit ctrl-h and type in the replacement and it replaces the word in the whole project, or all open files etc.

however i have to fire up crimson sometimes as it doesn't have a macro recorder, at least I haven't noticed one yet.

also with the ide it makes renaming a name a piece of pie, just edit the name were its defined, then a little thing like the paper clip comes along says do you want to rename it everywhere its used? it also doesn't just do it blindly if it would cause compile errors, although it will still let you if you insist.
meow's Sig:"Some people see things as they are and ask `Why?'. I dream of things that never were and ask `Why not?'. "
"science without religion is lame, religion without science is blind"
Tools meow is online now
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote

Sponsored Links

Old 22-05-2009, 16:07   #8 (permalink)
Name, Title, Location Pirax
Full Member

Leeds :D
England
AvatarPirax's Avatar
Posts365
Karma Pirax is adept.Pirax is adept.Pirax is adept.Pirax is adept.Pirax is adept.Pirax is adept.Pirax is adept.Pirax is adept.Pirax is adept.Pirax is adept.Pirax is adept.
Pu4,808.41
Default

Thanks for your help all. Did it using crimson editor as it was the 1st one i tryed and it worked. To Pura, i didnt use google as i didnt think it was a common problem at all so didnt think there would be many results, as well as trying to put what i wanted into terms google wouldnt give random results to. Im suprised theres so many programs to do it actually.
Pirax's Sig:Marching On Togeather!.
ToolsPirax is offline
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 22-05-2009, 17:27   #9 (permalink)
Name, Title Puratech
The True Forsaken

United Kingdom
AvatarPuratech's Avatar
Awards
Mood
Posts6,036
Karma Puratech is a superior being.Puratech is a superior being.Puratech is a superior being.Puratech is a superior being.
Puratech is a superior being.Puratech is a superior being.Puratech is a superior being.Puratech is a superior being.Puratech is a superior being.Puratech is a superior being.Puratech is a superior being.Puratech is a superior being.Puratech is a superior being.Puratech is a superior being.Puratech is a superior being.Puratech is a superior being.Puratech is a superior being.Puratech is a superior being.
Pu2,413.93
Heart Love Hearts Banana Grapes Dummy Cookie TV Chocolate Nut Slush Cake Donut Burger in a bun Big Beer Beer Umbrella Pie

Default

Quote:
Originally Posted by Pirax View Post
Thanks for your help all. Did it using crimson editor as it was the 1st one i tryed and it worked. To Pura, i didnt use google as i didnt think it was a common problem at all so didnt think there would be many results, as well as trying to put what i wanted into terms google wouldnt give random results to. Im suprised theres so many programs to do it actually.
Aye, i hope i didnt come accross as patronising with that. Most problems you could encounter someone else somewhere has at least asked the same question on a forum somewhere, its just a matter of using the right search terms. Google always impresses me.
Puratech's Sig:It's funny how life turns out,
The odds of faith in the face of doubt,
Camera One closes in,
The soundtrack starts,
The scene begins...


Quocunque Jeceris Stabit
Tools Puratech is online now
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 28-05-2009, 10:31   #10 (permalink)
Name, Title, Location Tesl
頑張ってるんだ!

Tokyo, Japan
England
AvatarTesl's Avatar
Awards
Posts2,970
Karma Tesl is a proficient TFer.
Tesl is a proficient TFer.Tesl is a proficient TFer.Tesl is a proficient TFer.Tesl is a proficient TFer.Tesl is a proficient TFer.Tesl is a proficient TFer.Tesl is a proficient TFer.Tesl is a proficient TFer.Tesl is a proficient TFer.Tesl is a proficient TFer.Tesl is a proficient TFer.Tesl is a proficient TFer.Tesl is a proficient TFer.Tesl is a proficient TFer.Tesl is a proficient TFer.
Pu2,489.77
Default

:%s/StorageOnion/Clustor01/g
Tesl's Sig:If the Bible is wrong when it tells us it is infallible, then it contradicts itself. If it contradicts itself, then it is unreliable. If it is unreliable, then our faith is totally shattered and Christianity is a lie. You need to seriously reconsider your logic.
ToolsTesl is offline
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply

Tags
changing, files, info, lots, text

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
TV Free Delivery + Spring Deals from Currys! Detomah Shopping Offers 0 15-02-2008 13:25
Latest discount codes from Dixon's! Detomah Shopping Offers 0 14-02-2008 17:29
Some Great Deals and Offers on some 'Great Magazines' Detomah Shopping Offers 0 06-12-2007 21:02
Top Contract Phone Bundles With TheLink Detomah Shopping Offers 2 05-12-2007 20:27
Play.com – deals of the week + top 10 by category Detomah Shopping Offers 0 30-11-2007 20:01

 
 
Archive - RSS Feeds - About Us - Privacy - Terms of Use - Site Map - Advertising - Link To TF - Contact Us - Top
Content Relevant URLs by vBSEO 3.2.0 RC5 Copyright ©2003 - 2000, Total Format. Forums powered by vBulletin, Copyright ©2000 - 2009, Jelsoft Enterprises Limited.

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457