ex-11-06_for.sh
来自「Berkely的学生写的」· Shell 代码 · 共 16 行
SH
16 行
#!/bin/sh# Chapter 11 - Manipulating a set of files# This example demonstrates how to use the for loop to copy files## This example may fail on your system if you do not have some of# the files or directories that are referenced. This example has# been changed slightly from the version in the book for greater# compatibility.cd $HOME for FILE in .bash*do cp $FILE ${HOME}/public_html chmod a+r ${HOME}/public_html/${FILE}done
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?