0% found this document useful (0 votes)
21 views

Assignment -4 Unix and Shell Programming (1)

Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
21 views

Assignment -4 Unix and Shell Programming (1)

Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 2

Assignment-5 ( A.Y.

2024-25)

Course code: 24BTPCCX11 Subject: Unix and Shell Programming Semester: 1st Sem

Q.1 Explain various types of shell variables in detail with its syntax and Example.

1.system variables 2. Local variables 3. read-only variables.

https://www.geeksforgeeks.org/shell-scripting-different-types-of-variables/

https://www.geeksforgeeks.org/shell-scripting-shell-variables/

https://www.tutorialspoint.com/unix/unix-using-variables.htm

Q.2 What is Export Command? Explain Profile File in detail. Also Write awk script to count no of
characters, words, lines in a given file. (Practical No.9)

(Ref: 1 https://www.digitalocean.com/community/tutorials/export-command-linux

https://www.theunixschool.com/2011/07/what-is-profile-file.html

https://www.ibm.com/docs/en/aix/7.2?topic=files-profile-file

Q.3 Explain the read, read only command and positional parameters in detail. Also Write a shell

script to find factorial of a given number. (Practical No.7)

(Ref: 1 https://www.javatpoint.com/linux-read-command

2 https://www.geeksforgeeks.org/shell-scripting-readonly-command/

https://www.computerhope.com/jargon/p/positional-parameter.htm

https://www.javatpoint.com/shell-script-parameters

Q.4 What is $? Variable? Explain Difference between $* and $@ command.

https://shorturl.at/pAFG4 https://shorturl.at/kCGJ5

https://www.baeldung.com/linux/dollar-star-at

Q.5 Explain Branching control structures in detail with its syntax and example. Also Write a shell
script to list all of the directory files in a directory. (Practical No. 6)

(Ref: 1 https://www.geeksforgeeks.org/conditional-statements-shell-script/

https://pressbooks.library.torontomu.ca/opsyshiraki/chapter/controlstruct1/
Assignment-5 ( A.Y. 2024-25)

Course code: 24BTPCCX11 Subject: Unix and Shell Programming Semester: 1st Sem

Q.6 Explain Looping Control Structures in Unix/Linux in detail with its syntax and example.

(Ref: 1 https://www.codingninjas.com/studio/library/linux---shell-loop-control

https://www.tutorialspoint.com/unix/unix-shell-loops.htm

https://veewom.com/linux-programming/looping-statement.htm

Q.7 Explain The expr command in detail with its syntax and example.

https://www.geeksforgeeks.org/expr-command-in-linux-with-examples/

https://www.javatpoint.com/linux-expr-command

https://tecadmin.net/expr-command-examples/

Q.8 what is The here document (<<)? Explain The sleep command and The script command

https://www.geeksforgeeks.org/how-to-use-here-document-in-bash-programming/

https://www.tutorialspoint.com/here-document-and-here-string-in-bash-on-linux

https://www.baeldung.com/linux/heredoc-herestring

https://www.javatpoint.com/linux-sleep

https://www.geeksforgeeks.org/sleep-command-in-linux-with-examples/

https://www.geeksforgeeks.org/script-command-in-linux-with-examples/

Q.9 Explain the Eval command & Exec command in detail with its syntax and example.

https://www.tutorialspoint.com/unix_commands/eval.htm

https://www.scaler.com/topics/linux-eval/

https://www.geeksforgeeks.org/eval-command-in-linux-with-examples/

https://www.geeksforgeeks.org/exec-command-in-linux-with-examples/

https://www.tutorialspoint.com/uses-of-exec-command-in-linux

Q.10 Write a Shell Script that accepts a file name, starting and ending line numbers as arguments
and displays all lines between the given line numbers.

The due date for the assignment: 08/04/2024

You might also like

pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy