ENEE150 lecture - Scripts

ENEE150 lecture - Scripts - b.iii. This can allow you to...

Info iconThis preview shows page 1. Sign up to view the full content.

View Full Document Right Arrow Icon
I. Scripts a. A script is a full-fledged piece of code, but instead of C, it uses Shell. b. Scripts are not compiled. They are interpreted. b.i. First line is always comment and always has to say what shell you’re running. Ex. #!/bin/csh b.ii. Any unix script you can put on a command line, you can put in a script.
Background image of page 1
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: b.iii. This can allow you to automate the test vector process. b.iv. Echo will printf a line. b.v. Foreach i (1 2 3 4). This will iterate 4 times and i takes on the value 1, 2, 3 ,4. b.vi. $i prints numerical value for i....
View Full Document

Ask a homework question - tutors are online