Shell Script Solution for VNSGU TYBCA Sem 5 Linux Practical Set D
A shell scripting solution for VNSGU TYBCA Semester 5 Linux Practical Set D has been published, targeting students preparing for the October/November 2025 examination. The practical requires writing a Bash script that creates a file called marks.txt, accepts five lines of user input, and stores them using the append operator. The script then uses head and tail commands to display the first three and last two lines of the file respectively. Word, line, and character counts are retrieved using the wc command, while grep is used to search for specific text within the file. The guide also highlights common mistakes, such as using the overwrite operator instead of append and confusing byte count with character count when using wc.
This is an AI-generated summary. ShortSingh links to the original source for the complete article.
Discussion (0)
Log in to join the discussion and vote.
Log in