This forum has been archived. All content is frozen. Please use KDE Discuss instead.

Search for square bracket in file name

Tags: None
(comma "," separated)
jfb3
Registered Member
Posts
4
Karma
0
With Konqueror, (currently at 3.5.10), how do I search for filenames with square brackets "["?
User avatar
msoeken
Mentor
Posts
300
Karma
4
OS
jfb3 wrote:With Konqueror, (currently at 3.5.10), how do I search for filenames with square brackets "["?


Perhaps you should search for [. When I am using find and grep, I write

find . | grep "["

Cheers, m.


Image
[size=x-small]code | [url=cia.vc/stats/author/msoeken]cia.vc[/url] | [url=kde.org/support]donating KDE[/url] | [url=tinyurl.com/cto4ns]wishlist[/url][/size]
jfb3
Registered Member
Posts
4
Karma
0
msoeken wrote:
Perhaps you should search for [. When I am using find and grep, I write

find . | grep "["


You didn't actually try it did you?
That was the first thing I tried. It doesn't work. You can't escape the bracket with a backslash.

Standard escaping for backslash works at the command line (of course) and in krename but so far not in konqueror/kfind with any method I can find.
User avatar
Alec
Registered Member
Posts
565
Karma
1
OS
Code: Select all
find . -iregex '.*[.*'


Get problems solved faster - get reply notifications through Jabber!
jfb3
Registered Member
Posts
4
Karma
0
Alec wrote:
Code: Select all
find . -iregex '.*[.*'



Per the OP, I need to perform the with kfind/konqueror not at the command line.
But thanks for playing.
User avatar
Alec
Registered Member
Posts
565
Karma
1
OS
jfb3 wrote:
Alec wrote:
Code: Select all
find . -iregex '.*[.*'



Per the OP, I need to perform the with kfind/konqueror not at the command line.
But thanks for playing.


So what was the prize?


Get problems solved faster - get reply notifications through Jabber!
User avatar
msoeken
Mentor
Posts
300
Karma
4
OS
jfb3 wrote:
msoeken wrote:
Perhaps you should search for [. When I am using find and grep, I write

find . | grep "["


You didn't actually try it did you?
That was the first thing I tried. It doesn't work. You can't escape the bracket with a backslash.

Standard escaping for backslash works at the command line (of course) and in krename but so far not in konqueror/kfind with any method I can find.


I do not have 3.5.10 installed. Now I tried it with KDE 4.1 and it does not work. Could be a bug.

Cheers, m.


Image
[size=x-small]code | [url=cia.vc/stats/author/msoeken]cia.vc[/url] | [url=kde.org/support]donating KDE[/url] | [url=tinyurl.com/cto4ns]wishlist[/url][/size]
User avatar
anda_skoa
KDE Developer
Posts
783
Karma
4
OS
msoeken wrote:I do not have 3.5.10 installed. Now I tried it with KDE 4.1 and it does not work. Could be a bug.


It doesn't work with 3.5.9 either so it is quite certainly a bug.

Cheers,
_


anda_skoa, proud to be a member of KDE forums since 2008-Oct.
jfb3
Registered Member
Posts
4
Karma
0
Okay I think I've solved my problem. What I needed was to get files loaded into krename (those that had a square bracket). I've discovered that I can do it at the command line with:
Code: Select all
krename *[*


Thanks!

/J


Bookmarks



Who is online

Registered users: bartoloni, Bing [Bot], Google [Bot], Sogou [Bot], Yahoo [Bot]