Skip to content

Gautham/ShellScripts

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

  1. Compare two numbers and print the largest.

  2. Check whether the given number is Even or Odd.

  3. Take 2 file names as arguments & check whether the two files contents are same.

  4. To print the contents of a file from the given line number to another given line number. Get arguments (file name , first line number, second line number) from command line.

  5. To generate all permutations of 1,2 and 3 using for loops (repetitions allowed).

  6. To read a directory as a command line argument and delete all files in that directory whose size is 0 bytes.

  7. To print numbers 1 to 10 using until construct.

  8. Move all hidden files from the given directory to a newly created subdirectory.

  9. Program which accepts a name as argument and then checks whether it exists as a directory. If it doesn’t exist, create the directory or if it exists as an ordinary file, then remove the file and create the directory.

  10. Find the factorial of a number using recursive function call

  11. Create your own customized shell.

  12. Depth First Traversal of a directory tree

  13. Read 10 strings to an array; sort it (alphabetic sorting) and print them

  14. Using select construct, Write a menu driven program to implement following

  15. create a file (using touch)

  16. rename a file

  17. delete a file

  18. copy file

  19. Write a script to check whether given number is prime or not using Functions.

  20. Check whether a given number is Armstrong number or not ?

  21. Compare two given files and display common words.

About

A few Shell Scripts I made..

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages