Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Grep function?
#2
findrx can find a line but will not tell line number. Need split into lines. Faster will be with foreach

Macro Macro1103
Code:
Copy      Help
str match Fichier.getfile(myfile.txt)
int i=0
foreach _s Fichier
,i+1
,if(findrx(_s "like" 0 1 match)<0) continue
,out "the line containing ''like'' is %s" _s
,out "the number of the line is %i" i-1


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)