shell脚本之建立10个文件夹和删除10个文件夹

  1#!/bin/bash                                                                 
  2 ls 
  3 echo "touch 10 documents"
  4 
  5 for i in `seq 10`
  6 do
  7     touch student.$i
  8 done
  9 
 10 echo "touch success!"
 11 ls
 12 ls student.*
 13 sleep 5
 14 
 15 
 16 echo "rm 10 documents"
 17 for i in `seq 10`
 18 do
 19     rm student.$i
 20 done
 21 
 22 echo "rm success!"
 23 ls
 24                                                                             
 

你可能感兴趣的:(shell,脚本)