0% found this document useful (0 votes)
28 views7 pages

CSE2005 LAB: Submitted By: Abhishek Kandel (19BCE2629)

This document contains a lab submission for a CSE2005 course. It includes 5 tasks for shell scripts: 1) Find the sum of the first N Fibonacci numbers using a for loop, 2) Print a given number in reverse order and sum the digits, 3) Print the multiplication table of an integer argument, 4) Use grep to find the line containing login details in /etc/passwd, 5) Display files in the present working directory, change permissions to r--r--r-- for ordinary files. The document was submitted by Abhishek Kandel for the lab.

Uploaded by

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

CSE2005 LAB: Submitted By: Abhishek Kandel (19BCE2629)

This document contains a lab submission for a CSE2005 course. It includes 5 tasks for shell scripts: 1) Find the sum of the first N Fibonacci numbers using a for loop, 2) Print a given number in reverse order and sum the digits, 3) Print the multiplication table of an integer argument, 4) Use grep to find the line containing login details in /etc/passwd, 5) Display files in the present working directory, change permissions to r--r--r-- for ordinary files. The document was submitted by Abhishek Kandel for the lab.

Uploaded by

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

CSE2005 LAB

Submitted by: Abhishek Kandel (19BCE2629)

1. Write a shell script to find the sum of first ‘N’ numbers in Fibonacci series (use for loop)

Output:
2. Write a shell script to print a given number in reverse order and sum of the individual digits.

Output:

3. Write a shell script to accept one integer argument and print its multiplication table.
4. Write a Shell Script that makes use of grep to isolate the line in /etc/passwd that contains your
login details.

Output:
5. Using shell script, display the contents of the present working directory. If it is an ordinary file
print its permission and change the permissions to r--r--r—
Output:
THANK YOU!!!

You might also like