Вы находитесь на странице: 1из 3

Time: One hour 2nd Semester M. Tech. (Embedded-Sys) MTE-1, 2016-2017 Max.

Marks: 100
ECT 706 Advanced Embedded SW Design (Elective) 8th Feb. 2017

You are allowed to consult texts, notes etc.


Part-A carry total of 60 marks & require very brief answers, possibly one-liners.
Part-B each problem 1-4 carry 10 marks each.

Part-A- Write answers onthis sheet itself

1. Short answer type-


(a) Answer briefly in approximately one line.

Shell command and/or regular expression


difference between absolute and relative path name of a file

grep ^[^\.]*\.

grep ^[A-Z][^A-Z]*\.

$@ and $*

for i in *

for i in $*

ls lu

sort rf

rm r chap?.*

ls -l .*

$ cat x y >y

$ cat x x

1
(b) Develop a shell command and/or regular expression for for each of these.

Proposal
Integer

Real number

real number with optional fraction

search & report occurrence of a complete sentence in a line in all files in present directory having
extension .txt

ls l *.txt | grep for 2>&1

$ ls - l *.c | grep y while

$ var=hello
$ varx=bye
$ echo $var
$echo ${var}x

<below are contents of shell file findID>


grep $* End
Abhinav 2016UEC1001
Bhushan 2016UEC1002
Karim 2016UEC1003
End

2
Time: One hour 2nd Semester M. Tech. (Embedded-Sys) MTE-1, 2016-2017 Max. Marks: 100
ECT 706 Advanced Embedded SW Design (Elective) 8th Feb. 2017

You are allowed to consult texts, notes etc.


Part-A carry total of 60 marks & require very brief answers, possibly one-liners.
Part-B each problem 1-4 carry 10 marks each.

Part-B- Use the Answer-booklet provided for this Part.


1. Write bashrc file to reside in your home directory, to serve following- (i) prompt to be your name followed
by $ (ii) set additional path to present working directory where-ever we descend/ascend (iii) set additional
path to directory bin lying in your HOME directory (iv) ECHO following- The present directory is <path-to-
directory> (v) Display current date & time.
2. Modify cal to accept more than one month as $ cal jan feb.
3. Add the operator % (modulus or remainder) to hoc.y.
4. Modify hoc1.y so that a semicolon can be used as an expression terminator equivalent to a newline.

Time: One hour 2nd Semester M. Tech. (Embedded-Sys) MTE-1, 2016-2017 Max. Marks: 100
ECT 706 Advanced Embedded SW Design (Elective) 8th Feb. 2017

You are allowed to consult texts, notes etc.


Part-A carry total of 60 marks & require very brief answers, possibly one-liners.
Part-B each problem 1-4 carry 10 marks each.

Part-B- Use the Answer-booklet provided for this Part.


1. Write bashrc file to reside in your home directory, to serve following- (i) prompt to be your name followed
by $ (ii) set additional path to present working directory where-ever we descend/ascend (iii) set additional
path to directory bin lying in your HOME directory (iv) ECHO following- The present directory is <path-to-
directory> (v) Display current date & time.
2. Modify cal to accept more than one month as $ cal jan feb.
3. Add the operator % (modulus or remainder) to hoc.y.
4. Modify hoc1.y so that a semicolon can be used as an expression terminator equivalent to a newline.

Time: One hour 2nd Semester M. Tech. (Embedded-Sys) MTE-1, 2016-2017 Max. Marks: 100
ECT 706 Advanced Embedded SW Design (Elective) 8th Feb. 2017

You are allowed to consult texts, notes etc.


Part-A carry total of 60 marks & require very brief answers, possibly one-liners.
Part-B each problem 1-4 carry 10 marks each.

Part-B- Use the Answer-booklet provided for this Part.


1. Write bashrc file to reside in your home directory, to serve following- (i) prompt to be your name followed
by $ (ii) set additional path to present working directory where-ever we descend/ascend (iii) set additional
path to directory bin lying in your HOME directory (iv) ECHO following- The present directory is <path-to-
directory> (v) Display current date & time.
2. Modify cal to accept more than one month as $ cal jan feb.
3. Add the operator % (modulus or remainder) to hoc.y.
4. Modify hoc1.y so that a semicolon can be used as an expression terminator equivalent to a newline.