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 vi editor October 6, 2023 Prove that L = {w | w = w^R,w ∈ {0, 1}*} is not regular (This is the language of binary palindromes) October 16, 2023 Shell script that takes a command –line argument and reports on whether it is directory, a file, or something else October 6, 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.
Prove that L = {w | w = w^R,w ∈ {0, 1}*} is not regular (This is the language of binary palindromes) October 16, 2023
Shell script that takes a command –line argument and reports on whether it is directory, a file, or something else October 6, 2023