上善若水
In general the OO style is to use a lot of little objects with a lot of little methods that give us a lot of plug points for overriding and variation. To do is to be -Nietzsche, To bei is to do -Kant, Do be do be do -Sinatra
posts - 146,comments - 147,trackbacks - 0
1. 清空文件
cat /dev/null > file.name

2. 实现输入不提示代码

#! /bin/sh

printf “Enter your password:”

stty –echo

read password < /dev/tty

printf “\nEnter again:”

read password2 < /dev/tty

stty echo

printf “\n”

echo “password 1 is : $password”

echo “password 2 is : $password2”

posted on 2011-12-13 23:12 DLevin 阅读(363) 评论(0)  编辑  收藏 所属分类: Linux

只有注册用户登录后才能发表评论。


网站导航: