Scan to open on your phone
Point a camera at the QR code - it opens this exact paste, no app needed.
https://codepastes.com/oslab04task03untitledBash / Shell
#!/usr/bin/bash
# =========================================================
# Script: abc.sh
# Purpose: Student Information System
# =========================================================
echo "=========================================="
echo " STUDENT INFORMATION SYSTEM "
echo "=========================================="
# Prompting student for inputs using read -p
read -p "Enter Nutech ID: " nutech_id
read -p "Enter Full Name: " student_name
read -p "Enter Degree Name: " degree_name
read -p "Enter Department Name: " dept_name
read -p "Enter Currently Enrolled Semester: " semester
read -p "Enter Semester Subjects: " subjects
# Output file to save the student details
output_file="student_details.txt"
# Saving collected information into the output file
{
echo "=========================================="
echo " STUDENT PROFILE RECORD "
echo "=========================================="
echo "Nutech ID: $nutech_id"
echo "Student Name: $student_name"
echo "Degree Name: $degree_name"
echo "Department Name: $dept_name"
echo "Current Semester: $semester"
echo "Semester Subjects: $subjects"
echo "=========================================="
} > "$output_file"
echo ""
echo "Student record has been successfully saved to '$output_file'."1,365 chars · codepastes.com