您好,欢迎访问三七文档
Genesis学习1.get_message_bar得到信息栏的信息($READANS)COMget_message_barPAUSE$READANS2.get_select_count得到所选物体的个数($COMANS)COMget_select_countif($COMANS!=0)then3.get_units得到当前的单位($COMANS)COMget_unitsPAUSE$COMANS4.get_user_name得到当前用户名($COMANS)COMget_user_namePAUSE$COMANS5.get_version得到当前genesis系统的版本号($COMANS)COMget_versionPAUSE$COMANS6.get_work_layer得到当前工作层($COMANS)COMget_work_layerPAUSE$COMANS7.graphic_cursor设置鼠标的样式COMgraphic_cursor,mode=regular(full_screen)8.get_affect_layer得到影响层($COMANS)COMget_affect_layerPAUSE$COMANS9.get_disp_layers得到显示层($COMANS)COMget_disp_layersPAUSE$COMANS10.get_origin得到圆点的坐标($COMANS)COMget_originPAUSE$COMANS11.PAUSE$pwd输出当前路径12.$gSTEPS_LIST得到板上存在的step(DO_INFO-tJOB-e$JOB)13.$gSRnx$gSRny得到拼板数14.$gNUM_SR得到set中的拼板数DO_INFO-tstep-e$JOB/set15.$gSRstep得到拼板中的板是从那一个step中虚拼过来的16.gTOOLbit得到钻孔的刀径大小17.gTOOLdrill_size得到钻孔的完成孔径的大小.18.gTOOLcount得到相对应的那一把刀的孔数19.gTOOLtype得到相对应的那一把刀的属性.20.gTOOLfinish_size得到相应钻孔的完成孔径。21.gNUM_TOOL得到钻孔层钻刀的个数22.gTOOLNUM得到钻孔层刀具表的刀号23.gFEAT_HISTtotal得到某层物体的总个数24.gFEAT_HISTpad得到某层盘的总个数25.gFEAT_HISTline得到某层线的总个数26.gFEAT_HISTsurf得到某层面的总个数27.gFEAT_HISTarc得到某层弧的总个数28.gFEAT_HISTtext得到某层文本的总个数.29.gCONTEXT查看是否为板上属性30.gTYPE查看某层是什么类型(signalpower_ground,silk_screen,solder_mask)31.gPORLARITY查看是正片层还是负片层(positivenegative)32.gROW得到文件的总行数33.gNUM_ROWS得到matrix的总行数34.gNUM_COLS得到matrix的总列数35.gNUM_LAYERS得到matrix的总层数36.gNUM_STEPS得到matrix的step总数37.gROWrow得到matrix的行序号38.gROWtype得到matrix的行类型(看是否为空)39.gROWname得到matrix的行名40.gROWcontext得到matrix某一行是否为板上属性41.gROWlayer_type得到matrix的层类型42.gROWpolarity得到matrix的极性43.is_job_open判断某一个job是否打开(COMis_job_openjob=pcb)44.SU_ON获得超级用户权限45.SU_OFF失去超级用户权限46.MOUSEr|pmessage47.setTST=`echo$LAYER|grep-c+++`删除与“+++”批配的层48.uname显示当前系统的信息(WINDOWS_NT)49.cut取字符串的一部分50.wc计算字符串的字符总数51.sleepx等待x秒钟52.rm删除文件和目录53.rmdir删除空的目录54.bc将小数精确到小数点后几位55.editor_page_close关闭某个step56.matrix_page_cloase关闭matrix57.tr‘[A-Z]’‘[a-z]将大写字母转换为小写字母setx=`echo“WHAT”|tr‘[A-Z]’‘[a-z]’58.setdate=`date+%m/%d/%y`将自定义的日期赋值给一个变量58.赋值语句:1.@x++2.setx=`expr$x+1`3.@x=y+159.bc精确小数点的位数%echo10/3|bc3%echo10/3|bc–l3.33333333333333333333%echoscale=4;10/3|bc–l3.333360.ps报告进程的状态%ps-ef|grepgnd153gnd.exe61.pwd当前路径%pwdC:/tmp61.uname获取操作系统平台%unameWINDOWS_NT62.whoami获取当前用户名%whoamigenesis63.basename获取基本文件名%basename/tmp/list.txtlist.txt64.cat连接文件catd:/1.txtd:/2.txtd:/3.txtd:/4.txt%catgui_inWIN100100LABELTESTGUI%cat–vgui_inWIN100100^MLABELTESTGUI^M65.chmod改变文件的访问权限%ls-ltotal2-r--r--r--100208Dec1116:45limits-rw-rw-rw-100207Dec1316:21limits.txt%chmod+wlimits%ls-ltotal2-rw-rw-rw-100208Dec1116:45limits-rw-rw-rw-100207Dec1316:21limits.txt66.cmp比较两个文件%cmplimitslimits2limitslimits2differ:char131,line567.compress压缩文件compressfiles%compresslimits%ls-ltotal33-rw-rw-rw-1000Dec1317:16limits.Z68.cp复制文件和目录copyfilesanddirectoriescp–rp/jobs/my_job$GENESIS_DIR/fw/jobs/$JOB/input/.cp$GENESIS_DIR/fw/jobs/$JOB/output/outfile/output/outfile69.cut截取字符串removesectionsfromeachlineoffilesecho$layer|cut–c3returnthe3rdcharacterfrom$layerecho$layer|cut–c3-returnallcharactersfromthe3rdonfrom$layercat/jobs/myjob/file1.grb|grepG54|cut–d”D”–f2returnthestringpresentafterthefirstcoourenceofthedelimitator“D”70.date系统日期时间%dateThuDec1416:03:36200071.du磁盘的使用情况%du-s/jobs68251/jobs72.find%find/-namelimits–print/tmp/limits73mv移动文件%mvolddirnewdir74.mkdir创建目录%mkdirnewdir75.Printenv回显所有的环境变量%printenvCOMPUTERNAME=CLAUDIOComSpec=C:\WINNT\system32\cmd.exeDISPLAY=:0.0GENESIS_DIR=c:\genesisGENESIS_EDIR=c:\genesis\e72GENESIS_EXPOSE_MODE=1GENESIS_FONTSIZE=1GENESIS_HELP_DIRS=C:/genesis.doc/pdfGENESIS_MIX_KEEP_SPARE=32GENESIS_TMP=C:/tmpGENESIS_VER=72HOME=C://users/default76.env显示所有的环境变量77.printf格式化输出78.rm删除文件%rm-rnewdir%rmoldfile79.rmdir删除目录%rmdirpippoC:\usr\local\bin\rmdir:pippo:Directorynotempty79.sed文本流编辑器streamtexteditor%sed2dlimits(removesthesecondlineoffilelimits)%sed/ymax/dlimits(removesalllinescontainingstring“ymax”)%sed3,5dlimits(removesalllinesfromthe3rdtothe5thline)%sed3,5glimits(substitutetoblanklinesalllinesfromthe3rdtothe5th)%sed3Glimits(insertablanklineafterthe3rdline)%sed3=limits(insertalinebeforethe3rdline,thatcontainstheline#)%sed-n2plimits(returnsthesecondlineoffilelimits)%sed-n3,5plimits(returnsalllinesfromthe3rdtothe5thline)%sed-n3,\$plimits(returnsalllinesfromthe3rdlinetilltheendofthefile)%seds/xmin/XMIN/glimits(substitutesalloccurrenceofstring“xmin”into“XMIN”)%sed1s/xmin/XMIN/glimits(substitutesthestringonline1only)%seds/xmin/XMIN/1limits(substitutesthefirstoccurrenceofstringoneachlines)80.sleepn挂起的秒数81.Sort文本文件排序%catlimits|cut-d=-f2|sort(sortinalphanumericorder1,10,2,3,…)%catlimits|cut-d=-f2|sort–n(sortinnumericorder1,2,3...9,10)%catlimits|cut-d=-f2|sort–u(sortandremoveduplicated)'-61.27''0''61.27'82.tail输出文件的最后部分%tail-5limits(printsthelast5lines)setgLIMITSymax='61.27'setgSR_LIMITSxmin='0'setgSR_LIMITSymin='0'setgSR_LIMITSxmax='0'setgSR_LIMITSymax='0'%tail+5limits(skipsthefirst5lines)setgSR_LIMITSxmin='0'setgSR_LIMITSymin='0'setgSR_LIMITSxmax='0'setgSR_LIMITSymax='0'83.tr转换字符translateordeletecharacters%tr[a-z][A-Z]limitsSETGLIMITSXMIN='-61.27'SETGLIMITSYMIN=
本文标题:genesis学习
链接地址:https://www.777doc.com/doc-5649677 .html