Create a Shell Scripts in Commands





echo "1: Display Specific Column Of File";
echo "2: Give Facility To Set Deliminiter";
echo "3: Search Specific Word In File Using Grep Command";
echo "4: Convert File To Upper Case To Lower Case";

while ((1))
do
    echo "Enter The Choice:->";
    read c

    case $c in
        1)
            echo "Enter The File Name:->";
            read fname
            echo "Enter Starting Position:->";
            read start
            echo "Enter Ending Position:->";
            read end

            cut -f $start,$end $fname;
            ;;
        3)
            echo "Enter The File Name:->";
            read fname
            echo "Enter Word For Search:->";
            read ser
           
            grep $ser $fname;
            ;;

        *) echo "Please Enter Valid Choice:->";
            ;;
    esac
done
Create a Shell Scripts in Commands Create a Shell Scripts in Commands Reviewed by Unknown on 23:13 Rating: 5

No comments:

Powered by Blogger.