The shell script of Qs

Source: Internet
Author: User

1 Invoke Mdoelsim

In order to open Modelsim automatically, it's better to use a shell script to invoke Modelsim.

1 #!/bin/bash 2 #----------------------------------------------------------------------------3 # Invoke Modelsim 4 #----------------------------------------------------------------------------5 6 if[$#-eq0]; Then7Cd' The working path of Modelsim'8vsim-gui&9 elif[ $1=="- H"]; ThenTen # Questasim Doc OneEvince/software/ams/current/questasim/v10.3b/docs/pdfdocs/_bk_questa_sim.pdf & A 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 was date3echo "Toaday is ' Date '"4 # today is ' Date'5  echo "today is ' Date '6 # Today is Fr 10. Jul 13:36:04 CEST

Qs's shell script

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.