Quantcast
Channel: Cadence Custom IC Skill Forum
Viewing all articles
Browse latest Browse all 5066

Grep string pattern from file in skill

$
0
0

Hey,

Suppose i have a file.txt in pwd....

I would like to do that when i press Run button in my gui

it would suppose to grep pattern  "Tcl completed,Thanks" from file.txt and print the output i.e "Tcl completed,Thanks" in ciw virtuoso....if grep pattern not found print "error in run".

Any help would be highly appreciated!

Regards,

Srv

Meanwhile i have tried this thing but its not working:-

procedure(Runform(form)
let(( sumfile ftpr port pat)

sumfile = simplifyFilename("getWorkingDir/file.txt")
when(fptr = infile("sumfile")
pat = pcreCompile("Tcl completed,Thanks")
printf("Tcl completed,Thanks\n")
close( fptr )


Viewing all articles
Browse latest Browse all 5066

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>