Tapatalk

Find in files to edit window without the file names

Find in files to edit window without the file names

10
Basic UserBasic User
10

PostJul 28, 2005#1

I have a small problem that I cant figure out how to solve, hope somone can help me :?
I want to search in files and get the result to "edit window", so far so good. A new file opens and the result is listed perfectly. But, I don't want the file name to show in the start of every line!
Is there an option that I can choose so I only get listed what I actually searched for,and nothing else :?:

6,824625
Grand MasterGrand Master
6,824625

PostJul 28, 2005#2

No option! Here is my macro, which deletes everything except the lines where the text was found.

InsertMode
ColumnModeOff
HexOff
UnixReOff
Top
Find RegExp "%----------------------------------------^p"
Replace All ""
Find RegExp "%Find * :^p"
Replace All ""
Find RegExp "%Found * time(s).^p"
Replace All ""

Find RegExp "%*/[0-9]+: "
Replace All ""
Find RegExp "%Search complete, found*^p"
Replace All ""

UnixReOn

Remove the last red command, if you use regular expression in UltraEdit style by default instead of Unix style.

Remove the green lines, if you only want to remove the filename with the line number at start of each line.

206
MasterMaster
206

PostJul 28, 2005#3

Try this macro on your search results. It leaves the line number. If not exactly as you want, at least it should give you some ideas.

InsertMode
ColumnModeOff
HexOff
UnixReOn
Top
Find RegExp "^[A-Z][:].*[/](.*)$"
Replace All "\1"

10
Basic UserBasic User
10

PostJul 28, 2005#4

Thank you :D This is what I needed