正在加载图片...
DAWNING 乡曙光 科技计算素米 The second bash program We write a program that copies all files into a directory,and then deletes the directory along with its contents.This can be done with the following commands: -s mkdir trash cp trash rm -rf trash s mkdir trash Instead of having to type all that interactively on the shell,write a shell program instead: -cat trash #!/bin/bash this script deletes some files cp trash rm -rf trash mkdir trash echo "Deleted al1 filsell编程 7 The second bash program • We write a program that copies all files into a directory, and then deletes the directory along with its contents. This can be done with the following commands: – $ mkdir trash $ cp * trash $ rm -rf trash $ mkdir trash • Instead of having to type all that interactively on the shell, write a shell program instead: – $ cat trash #!/bin/bash # this script deletes some files cp * trash rm -rf trash mkdir trash echo “Deleted all files!” Shell 编程 7
<<向上翻页向下翻页>>
©2008-现在 cucdc.com 高等教育资讯网 版权所有