• Skip to main content
  • Skip to search
  • Skip to footer
Cadence Home
  • This search text may be transcribed, used, stored, or accessed by our third-party service providers per our Cookie Policy and Privacy Policy.

  1. Community Forums
  2. Custom IC SKILL
  3. Need help on below case

Stats

  • Locked Locked
  • Replies 2
  • Subscribers 143
  • Views 1595
  • Members are here 0
This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

Need help on below case

aryansingh
aryansingh 6 months ago

Hi All,

I am new to skill & learning so i will be sharing a testcase that i came across....,

Initially, I am saving a path of text file in a variable in skill
Let's suppose
text="/home/dec/text.tx"

Now I want to search Master keyword in this text file & saving it in different variable by help of 

cid1 = ipcBeginProcess("grep 'Matser' text")
ipcWait(cid1)
layerMap1 = ipcReadProcess(cid1)

But i am getiing final result as layerMap1=\n

I am able to identify that it is not able to take the path of text file because of double quotation.

Now i am not able to come on a conclusion that how should i provide path as a variable for searching a pattern in that because when i am manually putting path able to get the result.

Thanks & Regards 
Aryan  

  • Cancel
  • Andrew Beckett
    Andrew Beckett 6 months ago

    cid1 = ipcBeginProcess(lsprintf("grep 'Master' %s" text))
    ipcWait(cid1)
    layerMap1 = ipcReadProcess(cid1)

    or

    cid1 = ipcBeginProcess(strcat("grep 'Master' " text))
    ipcWait(cid1)
    layerMap1 = ipcReadProcess(cid1)

    Of course, I fixed the "Matser" typo in your code too.

    Andrew

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
  • aryansingh
    aryansingh 6 months ago in reply to Andrew Beckett

    Thank you so much Andrew for your help !

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel

Community Guidelines

The Cadence Design Communities support Cadence users and technologists interacting to exchange ideas, news, technical information, and best practices to solve problems and get the most from Cadence technology. The community is open to everyone, and to provide the most value, we require participants to follow our Community Guidelines that facilitate a quality exchange of ideas and information. By accessing, contributing, using or downloading any materials from the site, you agree to be bound by the full Community Guidelines.

© 2025 Cadence Design Systems, Inc. All Rights Reserved.

  • Terms of Use
  • Privacy
  • Cookie Policy
  • US Trademarks
  • Do Not Sell or Share My Personal Information