03 2014 档案
摘要:什么是shell? 什么是脚本? 就是一些文件,我们能将一系列需要执行的命令写入其中,然后通过shell来执行这些脚本。通常使用某种基于解释其的编程语言。一般shell脚本是以一个#!为开头的文本文件,如#!/bin/bash,/bin/bash是bash的路径。运行脚本文件方式如下: $ sh script.sh 或者 # sh script.sh #该命令行默认该脚本在该目录下,也可以使用以“./” 或“/”开头的相对路径和绝对路径表示方式区别在于,前者$代表普通权限用户,#代表root权限用户。后半部分以#开始,代表注释。对shell脚本有了初步认识后,开始正式进入shell脚本...
阅读全文
摘要:DescriptionGeorge took sticks of the same length and cut them randomly until all parts became at most 50 units long. Now he wants to return sticks to the original state, but he forgot how many sticks he had originally and how long they were originally. Please help him and design a program which comp
阅读全文
浙公网安备 33010602011771号