学习资料:bash中文手册+举例

sh/bash/dash/ksh/zsh等Shell脚本
回复
singleaaa
帖子: 11
注册时间: 2007-04-29 1:51

#46

帖子 singleaaa » 2007-06-25 15:30

好书啊 ,楼主太强了~~
头像
fanhe
帖子: 2357
注册时间: 2007-03-24 23:45

#47

帖子 fanhe » 2007-07-04 2:08

楼主你告诉我用什么软件看最好吧,用gedit看没有书签,不爽啊!
头像
happy115
帖子: 12
注册时间: 2007-07-12 11:49

#48

帖子 happy115 » 2007-07-12 12:23

:o
good
头像
wanglei8312
帖子: 45
注册时间: 2007-07-06 15:40

#49

帖子 wanglei8312 » 2007-07-27 13:06

不错,学习了.

#!/bin/bash
# ex40.sh (burn-cd.sh)
# Script to automate burning a CDR.
SPEED=2 # May use higher speed if your hardware supports it.
IMAGEFILE=cdimage.iso
CONTENTSFILE=contents
DEVICE=cdrom
# DEVICE="0,0" For older versions of cdrecord
DEFAULTDIR=/opt # This is the directory containing the data to be burned.
# Make sure it exists.
# Exercise: Add a test for this.
# Uses Joerg Schilling's "cdrecord" package:
# http://www.fokus.fhg.de/usr/schilling/cdrecord.html
# If this script invoked as an ordinary user, may need to suid cdrecord
#+ chmod u+s /usr/bin/cdrecord, as root.
# Of course, this creates a security hole, though a relatively minor one.
if [ -z "$1" ]
then
IMAGE_DIRECTORY=$DEFAULTDIR
# Default directory, if not specified on command line.

Advanced Bash-Scripting Guide
else
IMAGE_DIRECTORY=$1
fi
# Create a "table of contents" file.
ls -lRF $IMAGE_DIRECTORY > $IMAGE_DIRECTORY/$CONTENTSFILE
# The "l" option gives a "long" file listing.
# The "R" option makes the listing recursive.
# The "F" option marks the file types (directories get a trailing /).
echo "Creating table of contents."
# Create an image file preparatory to burning it onto the CDR.
mkisofs -r -o $IMAGEFILE $IMAGE_DIRECTORY
echo "Creating ISO9660 file system image ($IMAGEFILE)."
# Burn the CDR.
echo "Burning the disk."
echo "Please be patient, this will take a while."
cdrecord -v -isosize speed=$SPEED dev=$DEVICE $IMAGEFILE
exit $?
zhangsan5421
帖子: 80
注册时间: 2007-04-22 16:04

#50

帖子 zhangsan5421 » 2007-08-15 12:29

今天才注意到ee原来是长沙人,我也是长沙的。不过学习linux刚刚起步,和你相差甚远呀。有很多不明白的地方还需要大家指点。
头像
purpleice
帖子: 182
注册时间: 2006-06-01 11:01

#51

帖子 purpleice » 2007-10-11 14:14

下了!谢谢LZ
头像
blackiron
帖子: 887
注册时间: 2007-05-25 16:47
来自: 上海

Re: bash中文手册+举例

#52

帖子 blackiron » 2007-10-12 17:40

roylez 写了:
可惜这个中文版不是pdf的,英文原版我找到了
http://www.mandrivaclub.nl/sources/docu ... -guide.pdf

把这些文本考到OpenOffice 里,然后另存PDF多简单点事啊
peter800
帖子: 31
注册时间: 2007-01-05 14:18

#53

帖子 peter800 » 2007-10-18 22:49

好书,谢谢
jmu
帖子: 21
注册时间: 2007-05-12 9:23

#54

帖子 jmu » 2007-10-31 10:02

hehe 支持 +学习!
chliang315
帖子: 66
注册时间: 2007-11-20 10:51

#55

帖子 chliang315 » 2007-11-20 19:19

好东西,正需要,谢谢lz
头像
big_apple
帖子: 47
注册时间: 2007-09-26 18:44
来自: 四川.绵阳

#56

帖子 big_apple » 2007-11-22 14:41

我顶顶顶顶……
好久没有杀人,好久没有吃人肉了……
Bob chan
帖子: 30
注册时间: 2007-12-06 17:46

#57

帖子 Bob chan » 2007-12-07 8:24

恩 不错 正在学习中 希望学好呀 :lol:
todaypuzzleme
帖子: 79
注册时间: 2007-06-08 22:43

#58

帖子 todaypuzzleme » 2007-12-12 9:12

txt的我喜欢,谢谢版主分享
zxczhangyu123
帖子: 9
注册时间: 2007-11-06 17:27

#59

帖子 zxczhangyu123 » 2007-12-14 19:32

我爱
我喜欢
遇见我,你是第二幸福的人;
遇见你,我是第一幸福的人。
头像
percy
帖子: 508
注册时间: 2006-09-10 8:19
系统: Gentoo/Mac OS X
来自: Shanghai,China
联系:

#60

帖子 percy » 2007-12-15 22:21

有时间好好看看
回复