Search text...(AND tabs AND line breaks)

English support forum

Moderators: Hacker, petermad, Stefan2, white

Post Reply
HAL 9000
Senior Member
Senior Member
Posts: 384
Joined: 2007-09-10, 13:05 UTC

Search text...(AND tabs AND line breaks)

Post by *HAL 9000 »

I have a few temp folders under my C:\ drive like Test, Tem and such for unpacking, testing and temporary backup -Note the capital T. I recently placed a portable Opera version in C:\Tem, and to test portability I did a text search for "c:\tem -Underscore- to see which ini's contained absolute path references. To my surprise I got a blank result while viewing the files showed many wrong lines that also Lister couldn't find.

Found this tread http://www.ghisler.ch/board/viewtopic.php?t=26419

[ghisler(Author)]...this is just a big misunderstanding. When you use Load\n as search string, TC will search for the word "Load" followed by a line break. Also \t will find a tab character. So just look for
Load\\n instead.
[unquote]

So instead of looking for "c:\tem" I should have been looking for c:\\tem or "c:\Tem", both work. I already renamed my temp dirs to underscore, but where does it stop? Should I also rename windows Temp? C:\tem is already a trade-off, under win7 I had to ditch the p to avoid junk. Anyway to avoid trouble any future folders would better not begin with capital T or N.

About freedom:

[quote M Lowry - Under the Volcano]
‘Isn’t your desire to fight for Spain, for fiddlededee , for Timbuktu, for China, for hypocrisy, for bugger all, for any hokery pokery that a few moose-headed idiot sons choose to call freedom -of course there is nothing of the sort, really - ’
‘If-’
‘If you’ve really read War and Peace, as you claim you have,
why haven’t you the sense to profit by it, I repeat?’
‘At any rate,’ said Hugh, ‘I profited by it to the extent of being able to distinguish it from Anna Karenina.’
‘Well, Anna Karenina then....’ the Consul paused.
[unquote]
User avatar
karlchen
Power Member
Power Member
Posts: 4605
Joined: 2003-02-06, 22:23 UTC
Location: Germany

Post by *karlchen »

Hello, Hal_9000.

There is no need to rename any folders at all.
Just be aware that inside the Total Commander lister the strings "\t" and "\n" have got a special meaning.
In order to get around the special meaning you have to double the backslash when entering the search string.
It quite seems as if always doubling any backslash inside the search string will not do any harm even in cases where doubling is not required.

Kind regards,
Karl
HAL 9000
Senior Member
Senior Member
Posts: 384
Joined: 2007-09-10, 13:05 UTC

Post by *HAL 9000 »

Hello Karl,

Thanks for your answer, your solution works, I already tried that out, but what has shocked me most is that I have routinely used the search for quiet a few years and got away with it.
But there are worse things in life, last year I bought my 78 years old dad a philips DVD-player, believe it or not but the menu symbol to move one folder up is a yellow square with two small dots...-so that was the end of the sub-folder concept.
Post Reply