码迷,mamicode.com
首页 > 系统相关 > 详细

QS之shell script

时间:2015-07-10 20:48:05      阅读:134      评论:0      收藏:0      [点我收藏+]

标签:

1  Invoke Mdoelsim  

  In order to open Modelsim automatically, it is better to use a shell script to invoke modelsim.

 1 #!/bin/bash
 2 # ----------------------------------------------------------------------------
 3 # invoke ModelSim
 4 # ----------------------------------------------------------------------------
 5 
 6 if [ $# -eq 0 ]; then
 7     cd ‘the working path of Modelsim
 8     vsim -gui&
 9 elif [ $1 == "-h" ]; then
10     # questasim doc
11     evince /Software/AMS/current/questasim/v10.3b/docs/pdfdocs/_bk_questa_sim.pdf &
12 fi

 

2  Three types of quotes

  1) doubel quotes (")

    Anything enclose in doubel quote removed meaning of that chatracter(except \ and $)

  2) single quotes (‘)

    Enclosed in single quotes remains unchanged.

  3) back quote (`)

    To execute command.

1 $ echo "Today is date"  
2 # Today is date
3 $ echo "Toaday is ‘date‘"
4 # Today is ‘date‘
5 $ echo "Today is `date`
6 # Today is Fr 10. Jul 13:36:04 CEST 2015

QS之shell script

标签:

原文地址:http://www.cnblogs.com/mengdie/p/4637054.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!