Chinaunix首页 | 论坛 | 博客
  • 博客访问: 165597
  • 博文数量: 48
  • 博客积分: 2245
  • 博客等级: 大尉
  • 技术积分: 535
  • 用 户 组: 普通用户
  • 注册时间: 2010-02-05 16:03
文章分类

全部博文(48)

文章存档

2014年(5)

2013年(4)

2012年(7)

2011年(2)

2010年(30)

我的朋友

分类: LINUX

2010-02-25 13:35:04

#!/bin/bash

ver(){
cat /proc/version
}

mem(){
cat /proc/meminfo
}

part(){

cat /proc/partitions
}

   X=`dialog --title "pick a choice" --stdout --menu "Please Choice one:" 15 45 5 V "Display the version information" M "Display the memory information" P "Display the partition infomation" Q "Quit"`
   clear
   case $X in
   V) ver ;;
   M) mem ;;
   P) part ;;
   Q) exit 2
   esac

阅读(991) | 评论(0) | 转发(0) |
0

上一篇:setgrub.sh

下一篇:(转)VIM的使用方法

给主人留下些什么吧!~~