Home » » Shell Scripting Tutorial For Beginners Xx - For Loop To Execute Commands

Shell Scripting Tutorial For Beginners Xx - For Loop To Execute Commands



#!/bin/bash # for loops  echo "all the files inwards directory--------" for detail inwards * do      if [ -f $item ]    too then       echo $item    fi done  echo echo "all the directory inwards directory--------" for detail inwards * do      if [ -d $item ]    too then       echo $item    fi done echo echo "execute listing of commands--------" for dominance inwards ls pwd date do        echo "command elevate -> $command"      $command done 

0 comments:

Post a Comment

Search

Blog Archive