Assignment -4 Unix and Shell Programming (1)
Assignment -4 Unix and Shell Programming (1)
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.
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
(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
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.