<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: Fahad Vahora</title>
    <description>The latest articles on DEV Community by Fahad Vahora (@teamworkfahad).</description>
    <link>https://dev.to/teamworkfahad</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F1435502%2F4038e1b0-671a-4fca-86b4-4e3732bbf46b.png</url>
      <title>DEV Community: Fahad Vahora</title>
      <link>https://dev.to/teamworkfahad</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/teamworkfahad"/>
    <language>en</language>
    <item>
      <title>Linux Practical Set A Solution – Simple Interest &amp; Compound Interest</title>
      <dc:creator>Fahad Vahora</dc:creator>
      <pubDate>Sun, 09 Aug 2026 05:55:13 +0000</pubDate>
      <link>https://dev.to/teamworkfahad/linux-practical-set-a-solution-simple-interest-compound-interest-2pa6</link>
      <guid>https://dev.to/teamworkfahad/linux-practical-set-a-solution-simple-interest-compound-interest-2pa6</guid>
      <description>&lt;p&gt;In this article, we will solve &lt;strong&gt;VNSGU TYBCA Semester 5 Linux (UNIX) Practical – Set A&lt;/strong&gt; using shell scripting.&lt;/p&gt;

&lt;p&gt;We will calculate:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Simple Interest (SI)&lt;/li&gt;
&lt;li&gt;Compound Interest (CI)&lt;/li&gt;
&lt;li&gt;Total Amount&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;We will also see different approaches, including solutions &lt;strong&gt;with &lt;code&gt;bc&lt;/code&gt; and without &lt;code&gt;bc&lt;/code&gt;&lt;/strong&gt;.&lt;/p&gt;




&lt;h2&gt;
  
  
  📌 Practical Question
&lt;/h2&gt;

&lt;blockquote&gt;
&lt;p&gt;&lt;strong&gt;Write a shell script to calculate the Simple Interest and Compound Interest for given amount.&lt;/strong&gt;&lt;/p&gt;
&lt;/blockquote&gt;




&lt;h1&gt;
  
  
  📐 Formulas
&lt;/h1&gt;

&lt;h3&gt;
  
  
  Simple Interest
&lt;/h3&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;SI = (P × R × T) / 100
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Where:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;code&gt;P&lt;/code&gt; = Principal Amount&lt;/li&gt;
&lt;li&gt;
&lt;code&gt;R&lt;/code&gt; = Rate of Interest&lt;/li&gt;
&lt;li&gt;
&lt;code&gt;T&lt;/code&gt; = Time&lt;/li&gt;
&lt;/ul&gt;

&lt;h3&gt;
  
  
  Simple Interest Amount
&lt;/h3&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;Amount = P + SI
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h3&gt;
  
  
  Compound Interest
&lt;/h3&gt;

&lt;p&gt;For annual compounding:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;CI = P × (1 + R/100)^T - P
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h3&gt;
  
  
  Compound Amount
&lt;/h3&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;CA = P × (1 + R/100)^T
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;






&lt;h1&gt;
  
  
  ✅ Solution 1: Using &lt;code&gt;bc&lt;/code&gt;
&lt;/h1&gt;

&lt;p&gt;&lt;code&gt;bc&lt;/code&gt; is a command-line calculator available on Linux/UNIX systems.&lt;/p&gt;

&lt;p&gt;It is useful when we need &lt;strong&gt;decimal calculations&lt;/strong&gt; in shell scripts.&lt;/p&gt;

&lt;h3&gt;
  
  
  Shell Script
&lt;/h3&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;&lt;span class="c"&gt;#!/bin/bash&lt;/span&gt;

&lt;span class="nb"&gt;echo&lt;/span&gt; &lt;span class="s2"&gt;"Enter Principal Amount:"&lt;/span&gt;
&lt;span class="nb"&gt;read &lt;/span&gt;P

&lt;span class="nb"&gt;echo&lt;/span&gt; &lt;span class="s2"&gt;"Enter Rate of Interest (%):"&lt;/span&gt;
&lt;span class="nb"&gt;read &lt;/span&gt;R

&lt;span class="nb"&gt;echo&lt;/span&gt; &lt;span class="s2"&gt;"Enter Time (in years):"&lt;/span&gt;
&lt;span class="nb"&gt;read &lt;/span&gt;T

&lt;span class="nv"&gt;SI&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="si"&gt;$(&lt;/span&gt;&lt;span class="nb"&gt;echo&lt;/span&gt; &lt;span class="s2"&gt;"scale=2; (&lt;/span&gt;&lt;span class="nv"&gt;$P&lt;/span&gt;&lt;span class="s2"&gt; * &lt;/span&gt;&lt;span class="nv"&gt;$R&lt;/span&gt;&lt;span class="s2"&gt; * &lt;/span&gt;&lt;span class="nv"&gt;$T&lt;/span&gt;&lt;span class="s2"&gt;) / 100"&lt;/span&gt; | bc&lt;span class="si"&gt;)&lt;/span&gt;

&lt;span class="nv"&gt;CA&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="si"&gt;$(&lt;/span&gt;&lt;span class="nb"&gt;echo&lt;/span&gt; &lt;span class="s2"&gt;"scale=2; &lt;/span&gt;&lt;span class="nv"&gt;$P&lt;/span&gt;&lt;span class="s2"&gt; * (1 + &lt;/span&gt;&lt;span class="nv"&gt;$R&lt;/span&gt;&lt;span class="s2"&gt; / 100)^&lt;/span&gt;&lt;span class="nv"&gt;$T&lt;/span&gt;&lt;span class="s2"&gt;"&lt;/span&gt; | bc&lt;span class="si"&gt;)&lt;/span&gt;

&lt;span class="nv"&gt;CI&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="si"&gt;$(&lt;/span&gt;&lt;span class="nb"&gt;echo&lt;/span&gt; &lt;span class="s2"&gt;"scale=2; &lt;/span&gt;&lt;span class="nv"&gt;$CA&lt;/span&gt;&lt;span class="s2"&gt; - &lt;/span&gt;&lt;span class="nv"&gt;$P&lt;/span&gt;&lt;span class="s2"&gt;"&lt;/span&gt; | bc&lt;span class="si"&gt;)&lt;/span&gt;

&lt;span class="nb"&gt;echo&lt;/span&gt; &lt;span class="s2"&gt;"-----------------------------"&lt;/span&gt;
&lt;span class="nb"&gt;echo&lt;/span&gt; &lt;span class="s2"&gt;"Principal Amount : &lt;/span&gt;&lt;span class="nv"&gt;$P&lt;/span&gt;&lt;span class="s2"&gt;"&lt;/span&gt;
&lt;span class="nb"&gt;echo&lt;/span&gt; &lt;span class="s2"&gt;"Rate of Interest : &lt;/span&gt;&lt;span class="nv"&gt;$R&lt;/span&gt;&lt;span class="s2"&gt;%"&lt;/span&gt;
&lt;span class="nb"&gt;echo&lt;/span&gt; &lt;span class="s2"&gt;"Time             : &lt;/span&gt;&lt;span class="nv"&gt;$T&lt;/span&gt;&lt;span class="s2"&gt; years"&lt;/span&gt;
&lt;span class="nb"&gt;echo&lt;/span&gt; &lt;span class="s2"&gt;"Simple Interest  : &lt;/span&gt;&lt;span class="nv"&gt;$SI&lt;/span&gt;&lt;span class="s2"&gt;"&lt;/span&gt;
&lt;span class="nb"&gt;echo&lt;/span&gt; &lt;span class="s2"&gt;"Compound Interest: &lt;/span&gt;&lt;span class="nv"&gt;$CI&lt;/span&gt;&lt;span class="s2"&gt;"&lt;/span&gt;
&lt;span class="nb"&gt;echo&lt;/span&gt; &lt;span class="s2"&gt;"Compound Amount  : &lt;/span&gt;&lt;span class="nv"&gt;$CA&lt;/span&gt;&lt;span class="s2"&gt;"&lt;/span&gt;
&lt;span class="nb"&gt;echo&lt;/span&gt; &lt;span class="s2"&gt;"-----------------------------"&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h3&gt;
  
  
  Example Output
&lt;/h3&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;Enter Principal Amount:
10000

Enter Rate of Interest (%):
10

Enter Time (in years):
2

-----------------------------
Principal Amount : 10000
Rate of Interest : 10%
Time             : 2 years
Simple Interest  : 2000.00
Compound Interest: 2100.00
Compound Amount  : 12100.00
-----------------------------
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h3&gt;
  
  
  How it works
&lt;/h3&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;&lt;span class="nv"&gt;SI&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="si"&gt;$(&lt;/span&gt;&lt;span class="nb"&gt;echo&lt;/span&gt; &lt;span class="s2"&gt;"scale=2; (&lt;/span&gt;&lt;span class="nv"&gt;$P&lt;/span&gt;&lt;span class="s2"&gt; * &lt;/span&gt;&lt;span class="nv"&gt;$R&lt;/span&gt;&lt;span class="s2"&gt; * &lt;/span&gt;&lt;span class="nv"&gt;$T&lt;/span&gt;&lt;span class="s2"&gt;) / 100"&lt;/span&gt; | bc&lt;span class="si"&gt;)&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Here, &lt;code&gt;bc&lt;/code&gt; performs the decimal calculation.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;&lt;span class="nv"&gt;scale&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;2
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;means that the result can contain &lt;strong&gt;2 digits after the decimal point&lt;/strong&gt;.&lt;/p&gt;

&lt;p&gt;For compound interest:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;&lt;span class="nv"&gt;CA&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="si"&gt;$(&lt;/span&gt;&lt;span class="nb"&gt;echo&lt;/span&gt; &lt;span class="s2"&gt;"scale=2; &lt;/span&gt;&lt;span class="nv"&gt;$P&lt;/span&gt;&lt;span class="s2"&gt; * (1 + &lt;/span&gt;&lt;span class="nv"&gt;$R&lt;/span&gt;&lt;span class="s2"&gt; / 100)^&lt;/span&gt;&lt;span class="nv"&gt;$T&lt;/span&gt;&lt;span class="s2"&gt;"&lt;/span&gt; | bc&lt;span class="si"&gt;)&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;The &lt;code&gt;^&lt;/code&gt; operator is used for exponentiation.&lt;/p&gt;




&lt;h1&gt;
  
  
  ✅ Solution 2: Without &lt;code&gt;bc&lt;/code&gt;
&lt;/h1&gt;

&lt;p&gt;Bash's normal arithmetic expansion:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;&lt;span class="k"&gt;$((&lt;/span&gt; ... &lt;span class="k"&gt;))&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;works with &lt;strong&gt;integers&lt;/strong&gt;, not floating-point numbers.&lt;/p&gt;

&lt;p&gt;Therefore, if the practical only requires integer input and integer output, we can calculate SI and CI using Bash arithmetic.&lt;/p&gt;

&lt;h3&gt;
  
  
  Shell Script
&lt;/h3&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;&lt;span class="c"&gt;#!/bin/bash&lt;/span&gt;

&lt;span class="nb"&gt;echo&lt;/span&gt; &lt;span class="s2"&gt;"Enter Principal Amount:"&lt;/span&gt;
&lt;span class="nb"&gt;read &lt;/span&gt;P

&lt;span class="nb"&gt;echo&lt;/span&gt; &lt;span class="s2"&gt;"Enter Rate of Interest (%):"&lt;/span&gt;
&lt;span class="nb"&gt;read &lt;/span&gt;R

&lt;span class="nb"&gt;echo&lt;/span&gt; &lt;span class="s2"&gt;"Enter Time (in years):"&lt;/span&gt;
&lt;span class="nb"&gt;read &lt;/span&gt;T

&lt;span class="nv"&gt;SI&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="k"&gt;$((&lt;/span&gt;P &lt;span class="o"&gt;*&lt;/span&gt; R &lt;span class="o"&gt;*&lt;/span&gt; T &lt;span class="o"&gt;/&lt;/span&gt; &lt;span class="m"&gt;100&lt;/span&gt;&lt;span class="k"&gt;))&lt;/span&gt;

&lt;span class="nv"&gt;AMOUNT&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="nv"&gt;$P&lt;/span&gt;
&lt;span class="k"&gt;for&lt;/span&gt; &lt;span class="o"&gt;((&lt;/span&gt;&lt;span class="nv"&gt;i&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;1&lt;span class="p"&gt;;&lt;/span&gt; i&amp;lt;&lt;span class="o"&gt;=&lt;/span&gt;T&lt;span class="p"&gt;;&lt;/span&gt; i++&lt;span class="o"&gt;))&lt;/span&gt;
&lt;span class="k"&gt;do
    &lt;/span&gt;&lt;span class="nv"&gt;AMOUNT&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="k"&gt;$((&lt;/span&gt;AMOUNT &lt;span class="o"&gt;*&lt;/span&gt; &lt;span class="o"&gt;(&lt;/span&gt;&lt;span class="m"&gt;100&lt;/span&gt; &lt;span class="o"&gt;+&lt;/span&gt; R&lt;span class="o"&gt;)&lt;/span&gt; &lt;span class="o"&gt;/&lt;/span&gt; &lt;span class="m"&gt;100&lt;/span&gt;&lt;span class="k"&gt;))&lt;/span&gt;
&lt;span class="k"&gt;done

&lt;/span&gt;&lt;span class="nv"&gt;CI&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="k"&gt;$((&lt;/span&gt;AMOUNT &lt;span class="o"&gt;-&lt;/span&gt; P&lt;span class="k"&gt;))&lt;/span&gt;

&lt;span class="nb"&gt;echo&lt;/span&gt; &lt;span class="s2"&gt;"-----------------------------"&lt;/span&gt;
&lt;span class="nb"&gt;echo&lt;/span&gt; &lt;span class="s2"&gt;"Principal Amount : &lt;/span&gt;&lt;span class="nv"&gt;$P&lt;/span&gt;&lt;span class="s2"&gt;"&lt;/span&gt;
&lt;span class="nb"&gt;echo&lt;/span&gt; &lt;span class="s2"&gt;"Rate of Interest : &lt;/span&gt;&lt;span class="nv"&gt;$R&lt;/span&gt;&lt;span class="s2"&gt;%"&lt;/span&gt;
&lt;span class="nb"&gt;echo&lt;/span&gt; &lt;span class="s2"&gt;"Time             : &lt;/span&gt;&lt;span class="nv"&gt;$T&lt;/span&gt;&lt;span class="s2"&gt; years"&lt;/span&gt;
&lt;span class="nb"&gt;echo&lt;/span&gt; &lt;span class="s2"&gt;"Simple Interest  : &lt;/span&gt;&lt;span class="nv"&gt;$SI&lt;/span&gt;&lt;span class="s2"&gt;"&lt;/span&gt;
&lt;span class="nb"&gt;echo&lt;/span&gt; &lt;span class="s2"&gt;"Compound Interest: &lt;/span&gt;&lt;span class="nv"&gt;$CI&lt;/span&gt;&lt;span class="s2"&gt;"&lt;/span&gt;
&lt;span class="nb"&gt;echo&lt;/span&gt; &lt;span class="s2"&gt;"Compound Amount  : &lt;/span&gt;&lt;span class="nv"&gt;$AMOUNT&lt;/span&gt;&lt;span class="s2"&gt;"&lt;/span&gt;
&lt;span class="nb"&gt;echo&lt;/span&gt; &lt;span class="s2"&gt;"-----------------------------"&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h3&gt;
  
  
  Example
&lt;/h3&gt;

&lt;p&gt;For:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;P = 10000
R = 10
T = 2
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Output:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;Simple Interest  : 2000
Compound Interest: 2100
Compound Amount  : 12100
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h3&gt;
  
  
  Important Note
&lt;/h3&gt;

&lt;p&gt;This method uses Bash integer arithmetic.&lt;/p&gt;

&lt;p&gt;For example:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;&lt;span class="k"&gt;$((&lt;/span&gt;&lt;span class="m"&gt;10&lt;/span&gt; &lt;span class="o"&gt;/&lt;/span&gt; &lt;span class="m"&gt;3&lt;/span&gt;&lt;span class="k"&gt;))&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;produces:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;3
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;not:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;3.3333
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;So this method is suitable when &lt;strong&gt;decimal precision is not required&lt;/strong&gt;.&lt;/p&gt;




&lt;h1&gt;
  
  
  ✅ Solution 3: Using &lt;code&gt;awk&lt;/code&gt;
&lt;/h1&gt;

&lt;p&gt;If you don't want to use &lt;code&gt;bc&lt;/code&gt; but still want &lt;strong&gt;decimal calculations&lt;/strong&gt;, &lt;code&gt;awk&lt;/code&gt; is a very good alternative.&lt;/p&gt;

&lt;h3&gt;
  
  
  Shell Script
&lt;/h3&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;&lt;span class="c"&gt;#!/bin/bash&lt;/span&gt;

&lt;span class="nb"&gt;echo&lt;/span&gt; &lt;span class="s2"&gt;"Enter Principal Amount:"&lt;/span&gt;
&lt;span class="nb"&gt;read &lt;/span&gt;P

&lt;span class="nb"&gt;echo&lt;/span&gt; &lt;span class="s2"&gt;"Enter Rate of Interest (%):"&lt;/span&gt;
&lt;span class="nb"&gt;read &lt;/span&gt;R

&lt;span class="nb"&gt;echo&lt;/span&gt; &lt;span class="s2"&gt;"Enter Time (in years):"&lt;/span&gt;
&lt;span class="nb"&gt;read &lt;/span&gt;T

&lt;span class="nb"&gt;awk&lt;/span&gt; &lt;span class="nt"&gt;-v&lt;/span&gt; &lt;span class="nv"&gt;P&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s2"&gt;"&lt;/span&gt;&lt;span class="nv"&gt;$P&lt;/span&gt;&lt;span class="s2"&gt;"&lt;/span&gt; &lt;span class="nt"&gt;-v&lt;/span&gt; &lt;span class="nv"&gt;R&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s2"&gt;"&lt;/span&gt;&lt;span class="nv"&gt;$R&lt;/span&gt;&lt;span class="s2"&gt;"&lt;/span&gt; &lt;span class="nt"&gt;-v&lt;/span&gt; &lt;span class="nv"&gt;T&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s2"&gt;"&lt;/span&gt;&lt;span class="nv"&gt;$T&lt;/span&gt;&lt;span class="s2"&gt;"&lt;/span&gt; &lt;span class="s1"&gt;'
BEGIN {
    SI = (P * R * T) / 100
    CA = P * (1 + R / 100)^T
    CI = CA - P

    printf "-----------------------------\n"
    printf "Principal Amount : %.2f\n", P
    printf "Rate of Interest : %.2f%%\n", R
    printf "Time             : %d years\n", T
    printf "Simple Interest  : %.2f\n", SI
    printf "Compound Interest: %.2f\n", CI
    printf "Compound Amount  : %.2f\n", CA
    printf "-----------------------------\n"
}'&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h3&gt;
  
  
  Example Output
&lt;/h3&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;Enter Principal Amount:
10000

Enter Rate of Interest (%):
10

Enter Time (in years):
2

-----------------------------
Principal Amount : 10000.00
Rate of Interest : 10.00%
Time             : 2 years
Simple Interest  : 2000.00
Compound Interest: 2100.00
Compound Amount  : 12100.00
-----------------------------
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;






&lt;h1&gt;
  
  
  🔍 Difference Between the Solutions
&lt;/h1&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Method&lt;/th&gt;
&lt;th&gt;Decimal Support&lt;/th&gt;
&lt;th&gt;Easy to Understand&lt;/th&gt;
&lt;th&gt;External Command&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code&gt;bc&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;✅ Yes&lt;/td&gt;
&lt;td&gt;⭐⭐⭐&lt;/td&gt;
&lt;td&gt;&lt;code&gt;bc&lt;/code&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Bash arithmetic&lt;/td&gt;
&lt;td&gt;❌ Integer only&lt;/td&gt;
&lt;td&gt;⭐⭐⭐⭐&lt;/td&gt;
&lt;td&gt;No&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code&gt;awk&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;✅ Yes&lt;/td&gt;
&lt;td&gt;⭐⭐&lt;/td&gt;
&lt;td&gt;&lt;code&gt;awk&lt;/code&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;h3&gt;
  
  
  Which one should you use?
&lt;/h3&gt;

&lt;p&gt;For a Linux practical examination:&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;If &lt;code&gt;bc&lt;/code&gt; is allowed:&lt;/strong&gt; use the &lt;code&gt;bc&lt;/code&gt; solution.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;If &lt;code&gt;bc&lt;/code&gt; is not allowed:&lt;/strong&gt; use the Bash arithmetic solution when integer output is acceptable.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;If decimal output is required but &lt;code&gt;bc&lt;/code&gt; is not allowed:&lt;/strong&gt; use &lt;code&gt;awk&lt;/code&gt;.&lt;/p&gt;




&lt;h1&gt;
  
  
  🧠 Important Shell Concepts Used
&lt;/h1&gt;

&lt;p&gt;This practical helps you practice several important shell scripting concepts:&lt;/p&gt;

&lt;h3&gt;
  
  
  1. Taking Input
&lt;/h3&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;&lt;span class="nb"&gt;read &lt;/span&gt;P
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h3&gt;
  
  
  2. Arithmetic Expansion
&lt;/h3&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;&lt;span class="k"&gt;$((&lt;/span&gt; ... &lt;span class="k"&gt;))&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h3&gt;
  
  
  3. Command Substitution
&lt;/h3&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;&lt;span class="nv"&gt;SI&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="si"&gt;$(&lt;/span&gt;...&lt;span class="si"&gt;)&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h3&gt;
  
  
  4. &lt;code&gt;bc&lt;/code&gt;
&lt;/h3&gt;

&lt;p&gt;Used for floating-point calculations.&lt;/p&gt;

&lt;h3&gt;
  
  
  5. &lt;code&gt;awk&lt;/code&gt;
&lt;/h3&gt;

&lt;p&gt;Can perform floating-point calculations and formatted output.&lt;/p&gt;

&lt;h3&gt;
  
  
  6. &lt;code&gt;for&lt;/code&gt; Loop
&lt;/h3&gt;

&lt;p&gt;Used in the pure Bash compound-interest solution.&lt;/p&gt;




&lt;h1&gt;
  
  
  🎯 Practical Exam Tip
&lt;/h1&gt;

&lt;blockquote&gt;
&lt;p&gt;Don't just memorize the script.&lt;br&gt;
Understand these three things:&lt;br&gt;
&lt;/p&gt;
&lt;/blockquote&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;1. How to take input
2. How to apply the SI and CI formulas
3. How to display the result
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Once you understand these, you can easily modify the program if the examiner changes the question slightly.&lt;/p&gt;




&lt;h1&gt;
  
  
  📚 Related Article
&lt;/h1&gt;

&lt;p&gt;This solution is part of the &lt;strong&gt;VNSGU TYBCA Sem 5 Linux (UNIX) Practical – OCT/Nov 2025&lt;/strong&gt; series.&lt;/p&gt;

&lt;p&gt;You can also practice the other practical sets:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Set A – Simple Interest &amp;amp; Compound Interest&lt;/li&gt;
&lt;li&gt;Set B – Vowels &amp;amp; Case Conversion&lt;/li&gt;
&lt;li&gt;Set C – Palindrome&lt;/li&gt;
&lt;li&gt;Set D – File Operations&lt;/li&gt;
&lt;li&gt;Set E – Display Lines with Validation&lt;/li&gt;
&lt;li&gt;Set F – Files &amp;amp; Directories&lt;/li&gt;
&lt;li&gt;Set G – Recently Modified Files&lt;/li&gt;
&lt;li&gt;Set H – Employee Gross Salary&lt;/li&gt;
&lt;/ul&gt;




&lt;h2&gt;
  
  
  ⚠️ Note
&lt;/h2&gt;

&lt;p&gt;The Compound Interest calculation in this article assumes &lt;strong&gt;annual compounding&lt;/strong&gt;.&lt;/p&gt;

&lt;p&gt;The Bash-only solution uses integer arithmetic, so decimal precision may differ from the &lt;code&gt;bc&lt;/code&gt; or &lt;code&gt;awk&lt;/code&gt; versions.&lt;/p&gt;




&lt;h2&gt;
  
  
  🐧 Conclusion
&lt;/h2&gt;

&lt;p&gt;The &lt;strong&gt;Simple Interest and Compound Interest&lt;/strong&gt; problem is a good beginner-level shell scripting practical because it combines user input, arithmetic operations, variables, loops, and command-line utilities.&lt;/p&gt;

&lt;p&gt;Practice all three approaches so that you are comfortable solving the question even when the examination environment has different restrictions.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Happy Learning &amp;amp; Best of Luck for your Linux Practical! 🐧💻&lt;/strong&gt;&lt;/p&gt;

</description>
      <category>vnsgu</category>
      <category>bca</category>
      <category>linux</category>
      <category>shellscript</category>
    </item>
    <item>
      <title>VNSGU TYBCA Linux(Unix) Semester 5 OCT/Nov 2025 Practical Question Papers Sets</title>
      <dc:creator>Fahad Vahora</dc:creator>
      <pubDate>Sun, 09 Aug 2026 05:46:56 +0000</pubDate>
      <link>https://dev.to/teamworkfahad/vnsgu-tybca-linuxunix-semester-5-octnov-2025-practical-question-papers-sets-2k4j</link>
      <guid>https://dev.to/teamworkfahad/vnsgu-tybca-linuxunix-semester-5-octnov-2025-practical-question-papers-sets-2k4j</guid>
      <description>&lt;h1&gt;
  
  
  VNSGU TYBCA Sem 5 Linux (UNIX) Practical Question Paper – OCT/Nov 2025
&lt;/h1&gt;

&lt;p&gt;Are you preparing for the &lt;strong&gt;VNSGU TYBCA Semester 5 Linux (UNIX) Practical Examination&lt;/strong&gt;?&lt;/p&gt;

&lt;p&gt;This article contains the &lt;strong&gt;Linux (UNIX) Shell Scripting Practical Question Paper Sets A to H&lt;/strong&gt; for the &lt;strong&gt;OCT/Nov 2025 examination&lt;/strong&gt;.&lt;/p&gt;

&lt;p&gt;These practical sets cover important topics such as shell scripting, string handling, file handling, command-line arguments, file searching, validation, and arithmetic operations.&lt;/p&gt;




&lt;h2&gt;
  
  
  📚 VNSGU TYBCA Sem 5 – Linux (UNIX)
&lt;/h2&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Details&lt;/th&gt;
&lt;th&gt;Information&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;&lt;strong&gt;University&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;Veer Narmad South Gujarat University (VNSGU)&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;strong&gt;Course&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;TYBCA&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;strong&gt;Semester&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;Semester 5&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;strong&gt;Subject&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;Linux (UNIX)&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;strong&gt;Exam&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;OCT/Nov 2025&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;strong&gt;Type&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;Practical Examination&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;strong&gt;Sets&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;A to H&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;




&lt;h1&gt;
  
  
  🐧 Linux (UNIX) Practical Question Sets
&lt;/h1&gt;

&lt;h2&gt;
  
  
  📌 Set A – &lt;a href="https://dev.to/teamworkfahad/linux-practical-set-a-solution-simple-interest-compound-interest-2pa6"&gt;Simple Interest &amp;amp; Compound Interest&lt;/a&gt;
&lt;/h2&gt;

&lt;p&gt;&lt;strong&gt;Write a shell script to calculate the Simple Interest and Compound Interest for given amount.&lt;/strong&gt;&lt;/p&gt;




&lt;h2&gt;
  
  
  📌 Set B – Vowels Count &amp;amp; Case Conversion
&lt;/h2&gt;

&lt;p&gt;&lt;strong&gt;Write a script to count the number of vowels in the entered string and convert the string into upper case or lower case.&lt;/strong&gt;&lt;/p&gt;




&lt;h2&gt;
  
  
  📌 Set C – Palindrome String
&lt;/h2&gt;

&lt;p&gt;&lt;strong&gt;Write a script to check whether a given string is palindrome or not.&lt;/strong&gt;&lt;/p&gt;




&lt;h2&gt;
  
  
  📌 Set D – File Operations &amp;amp; Text Processing
&lt;/h2&gt;

&lt;p&gt;&lt;strong&gt;Write a shell script to perform following:&lt;/strong&gt;&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Create a file named &lt;code&gt;marks.txt&lt;/code&gt; and insert 5 lines of text.&lt;/li&gt;
&lt;li&gt;Display the first 3 lines of &lt;code&gt;marks.txt&lt;/code&gt;.&lt;/li&gt;
&lt;li&gt;Display the last 2 lines of &lt;code&gt;marks.txt&lt;/code&gt;.&lt;/li&gt;
&lt;li&gt;Count the number of words, lines, and characters in &lt;code&gt;marks.txt&lt;/code&gt;.&lt;/li&gt;
&lt;li&gt;Search for the word &lt;strong&gt;Linux&lt;/strong&gt; in &lt;code&gt;marks.txt&lt;/code&gt;.&lt;/li&gt;
&lt;/ol&gt;

&lt;h3&gt;
  
  
  Commands Covered
&lt;/h3&gt;

&lt;ul&gt;
&lt;li&gt;&lt;code&gt;cat&lt;/code&gt;&lt;/li&gt;
&lt;li&gt;&lt;code&gt;head&lt;/code&gt;&lt;/li&gt;
&lt;li&gt;&lt;code&gt;tail&lt;/code&gt;&lt;/li&gt;
&lt;li&gt;&lt;code&gt;wc&lt;/code&gt;&lt;/li&gt;
&lt;li&gt;&lt;code&gt;grep&lt;/code&gt;&lt;/li&gt;
&lt;/ul&gt;




&lt;h2&gt;
  
  
  📌 Set E – Display Specific Lines from File
&lt;/h2&gt;

&lt;p&gt;&lt;strong&gt;Write a shell script that will pass file name and two numbers a1 and a2. Display line a1 to a2 from that file.&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Proper validation required.&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;The script should properly validate the input and handle invalid arguments or file names.&lt;/p&gt;

&lt;h3&gt;
  
  
  Concepts Covered
&lt;/h3&gt;

&lt;ul&gt;
&lt;li&gt;Command-line arguments&lt;/li&gt;
&lt;li&gt;File validation&lt;/li&gt;
&lt;li&gt;Line numbers&lt;/li&gt;
&lt;li&gt;&lt;code&gt;sed&lt;/code&gt;&lt;/li&gt;
&lt;li&gt;Input validation&lt;/li&gt;
&lt;/ul&gt;




&lt;h2&gt;
  
  
  📌 Set F – Count Files and Directories
&lt;/h2&gt;

&lt;p&gt;&lt;strong&gt;Write a shell script to find total number of files and total number of directories in current working directory.&lt;/strong&gt;&lt;/p&gt;

&lt;h3&gt;
  
  
  Concepts Covered
&lt;/h3&gt;

&lt;ul&gt;
&lt;li&gt;Directory handling&lt;/li&gt;
&lt;li&gt;File testing&lt;/li&gt;
&lt;li&gt;Loops&lt;/li&gt;
&lt;li&gt;&lt;code&gt;find&lt;/code&gt;&lt;/li&gt;
&lt;li&gt;Current working directory&lt;/li&gt;
&lt;/ul&gt;




&lt;h2&gt;
  
  
  📌 Set G – Recently Modified Files
&lt;/h2&gt;

&lt;p&gt;&lt;strong&gt;Write a shell script to find all files in the current directory that were modified in the last 7 days and display their names and sizes.&lt;/strong&gt;&lt;/p&gt;

&lt;h3&gt;
  
  
  Concepts Covered
&lt;/h3&gt;

&lt;ul&gt;
&lt;li&gt;File searching&lt;/li&gt;
&lt;li&gt;Modification time&lt;/li&gt;
&lt;li&gt;&lt;code&gt;find&lt;/code&gt;&lt;/li&gt;
&lt;li&gt;File size&lt;/li&gt;
&lt;li&gt;Shell scripting&lt;/li&gt;
&lt;/ul&gt;




&lt;h2&gt;
  
  
  📌 Set H – Employee Gross Salary
&lt;/h2&gt;

&lt;p&gt;&lt;strong&gt;Write a shell script that computes the gross salary of an employee according to the following:&lt;/strong&gt;&lt;/p&gt;

&lt;h3&gt;
  
  
  If Basic Salary is &amp;lt; 50000
&lt;/h3&gt;

&lt;ul&gt;
&lt;li&gt;HRA = 20% of Basic Salary&lt;/li&gt;
&lt;li&gt;DA = 164% of Basic Salary&lt;/li&gt;
&lt;/ul&gt;

&lt;h3&gt;
  
  
  If Basic Salary is &amp;gt; 50000
&lt;/h3&gt;

&lt;ul&gt;
&lt;li&gt;HRA = 15% of Basic Salary&lt;/li&gt;
&lt;li&gt;DA = 136% of Basic Salary&lt;/li&gt;
&lt;/ul&gt;

&lt;h3&gt;
  
  
  Input
&lt;/h3&gt;

&lt;p&gt;The basic salary should be entered interactively through the keyboard.&lt;/p&gt;

&lt;h3&gt;
  
  
  Formula
&lt;/h3&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;Gross Salary = Basic Salary + DA + HRA
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;






&lt;h1&gt;
  
  
  📖 Topics Covered in These Practical Sets
&lt;/h1&gt;

&lt;p&gt;These eight practical sets cover several important Linux and UNIX shell scripting concepts:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Shell Scripting&lt;/li&gt;
&lt;li&gt;Variables&lt;/li&gt;
&lt;li&gt;User Input&lt;/li&gt;
&lt;li&gt;Arithmetic Operations&lt;/li&gt;
&lt;li&gt;&lt;code&gt;if-else&lt;/code&gt;&lt;/li&gt;
&lt;li&gt;Loops&lt;/li&gt;
&lt;li&gt;String Handling&lt;/li&gt;
&lt;li&gt;String Case Conversion&lt;/li&gt;
&lt;li&gt;Palindrome Checking&lt;/li&gt;
&lt;li&gt;File Handling&lt;/li&gt;
&lt;li&gt;Command-Line Arguments&lt;/li&gt;
&lt;li&gt;File Validation&lt;/li&gt;
&lt;li&gt;Text Processing&lt;/li&gt;
&lt;li&gt;&lt;code&gt;head&lt;/code&gt;&lt;/li&gt;
&lt;li&gt;&lt;code&gt;tail&lt;/code&gt;&lt;/li&gt;
&lt;li&gt;&lt;code&gt;wc&lt;/code&gt;&lt;/li&gt;
&lt;li&gt;&lt;code&gt;grep&lt;/code&gt;&lt;/li&gt;
&lt;li&gt;&lt;code&gt;find&lt;/code&gt;&lt;/li&gt;
&lt;li&gt;File Size&lt;/li&gt;
&lt;li&gt;File Modification Time&lt;/li&gt;
&lt;li&gt;Input Validation&lt;/li&gt;
&lt;/ul&gt;




&lt;h1&gt;
  
  
  🎯 Linux Practical Exam Preparation Tips
&lt;/h1&gt;

&lt;p&gt;If you are preparing for the VNSGU TYBCA Linux practical examination, practice each set yourself instead of only memorizing the script.&lt;/p&gt;

&lt;h3&gt;
  
  
  1. Understand Shell Syntax
&lt;/h3&gt;

&lt;p&gt;Practice basic shell scripting syntax such as:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;&lt;span class="c"&gt;#!/bin/bash&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;variables, &lt;code&gt;read&lt;/code&gt;, conditions, loops, and command substitution.&lt;/p&gt;

&lt;h3&gt;
  
  
  2. Practice Linux Commands
&lt;/h3&gt;

&lt;p&gt;Make sure you are comfortable with commands such as:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;&lt;span class="nb"&gt;cat
head
tail
wc
grep
&lt;/span&gt;find
&lt;span class="nb"&gt;cut
tr
sed&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h3&gt;
  
  
  3. Practice Validation
&lt;/h3&gt;

&lt;p&gt;For programs involving files or command-line arguments, always check:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Whether the required arguments are provided&lt;/li&gt;
&lt;li&gt;Whether the file exists&lt;/li&gt;
&lt;li&gt;Whether the file is readable&lt;/li&gt;
&lt;li&gt;Whether the entered values are valid&lt;/li&gt;
&lt;/ul&gt;

&lt;h3&gt;
  
  
  4. Practice Without Copy-Paste
&lt;/h3&gt;

&lt;p&gt;Try writing every program from scratch. This will help you understand the logic and make it easier to solve variations of the same question during the practical exam.&lt;/p&gt;




&lt;h1&gt;
  
  
  📝 Quick Revision
&lt;/h1&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Set&lt;/th&gt;
&lt;th&gt;Practical Topic&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;&lt;strong&gt;A&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;Simple Interest &amp;amp; Compound Interest&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;strong&gt;B&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;Vowels Count &amp;amp; Case Conversion&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;strong&gt;C&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;Palindrome String&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;strong&gt;D&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;File Operations &amp;amp; Text Processing&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;strong&gt;E&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;Display Lines with Validation&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;strong&gt;F&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;Count Files &amp;amp; Directories&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;strong&gt;G&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;Recently Modified Files&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;strong&gt;H&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;Employee Gross Salary&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;




&lt;h2&gt;
  
  
  📌 Conclusion
&lt;/h2&gt;

&lt;p&gt;These &lt;strong&gt;VNSGU TYBCA Semester 5 Linux (UNIX) Practical Sets A–H&lt;/strong&gt; cover a useful range of shell scripting problems for practical examination preparation.&lt;/p&gt;

&lt;p&gt;Students should practice each program on a Linux/UNIX environment and understand the logic behind every command and statement.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;All the best for your Linux (UNIX) Practical Examination! 🐧💻&lt;/strong&gt;&lt;/p&gt;




&lt;h3&gt;
  
  
  ⚠️ Disclaimer
&lt;/h3&gt;

&lt;p&gt;This article is intended for &lt;strong&gt;educational and examination preparation purposes&lt;/strong&gt;. Students should verify official examination details and question papers with the relevant VNSGU sources.&lt;/p&gt;

</description>
      <category>vnsgu</category>
      <category>linux</category>
      <category>tybca</category>
    </item>
  </channel>
</rss>
