| Forum Home | ||||
| PC World Chat | ||||
| Thread ID: 118347 | 2011-05-31 16:04:00 | Search w/ Replace Options | SurferJoe46 (51) | PC World Chat |
| Post ID | Timestamp | Content | User | ||
| 1205951 | 2011-06-01 03:40:00 | sed 's/\" \"{ . *$//' original . txt > result . txt or if you want to keep the trailing " after . wma sed 's/ \"{ . *$//' original . txt > result . txt OK - I use the whole thing you sent? sed 's/ \"{ . *$//' original . txt > result . txt Does that mean that every line of garbage has to be entered? I don't understand this::: original . txt > result . txt Do I need to use the words 'original . text' & 'result . text' or do I have to plug in some of the actual text and what I want it to become? I'm dealing with 41,679 entries here and that would be worse than just going in a deleting each line of spurious text I want to remove individually . I tried manually deleting some of those garbage lines and after about 200 highlight-and-hit-DEL ------- it got pretty tiring real fast . Don't forget the full stop before the asterisk . Also you might want to remove cid= - it shows up in my WMP12 playlist but I noticed it didn't appear in your original post . Yeah - I'm using WMP10 . |
SurferJoe46 (51) | ||
| 1205952 | 2011-06-01 03:47:00 | Wait a minute ---- it worked - sort of, but I am making headway now. Gack! I hate code!!! Tell me this isn't some way of making me use a Linux somethingorother - Please? |
SurferJoe46 (51) | ||
| 1205953 | 2011-06-01 03:59:00 | Wait a minute ---- it worked - sort of, but I am making headway now . Gack! I hate code!!! Tell me this isn't some way of making me use a Linux somethingorother - Please?Sed is a unix / linux command line utility . While undeniably handy, you don't need it - notepad++ is fine for what you're doing, especially noting you've already installed it . As mentioned above, the reason your first attempt failed is because you omitted the ' . ' before the '*' (' . ' means 'any character', and '*' means 'repeated zero or more times') . |
Erayd (23) | ||
| 1205954 | 2011-06-01 04:44:00 | I only had a few small items to clean up - but it worked. Thanks youse guys. There'll be an extra penguin in your meat locker for youse. |
SurferJoe46 (51) | ||
| 1 2 | |||||