Shell script to list all of the directory files in a directory Post author:Educate Post published:October 12, 2023 Post category:Shell Script Post comments:0 Comments # !/bin/bash echo "enter directory name" read dir if[ -d $dir] then echo "list of files in the directory" ls –l $dir|egrep '^d' else echo "enter proper directory name" fi You Might Also Like C Program that makes a copy of a file using standard I/O and system calls October 16, 2023 Shell script that accepts a filename, starting and ending line numbers as arguments and displays all the lines between the given line numbers September 15, 2023 A shell program to display the length of the name July 29, 2023 Leave a Reply Cancel replyCommentEnter your name or username to comment Enter your email address to comment Enter your website URL (optional) Save my name, email, and website in this browser for the next time I comment.
Shell script that accepts a filename, starting and ending line numbers as arguments and displays all the lines between the given line numbers September 15, 2023