2012年8月17日

java中实现HashMap中的按照key的字典顺序排序输出

摘要: 关键代码 HashMap<String, String> maptest =new HashMap<String, String>(); maptest.put("1天","day1"); maptest.put("5天","day5"); maptest.put("4天","day4"); maptest.put("2天","day2"); maptest.put("3天","da 阅读全文

posted @ 2012-08-17 23:43 bwgang 阅读(1419) 评论(0) 推荐(1) 编辑

在linux下批量更改目录下的所有文件名

摘要: cd /home/bwgang/temp; for file in *.*; do newname=$file".bak"; mv -f $file $newname 2>/dev/null; done在指定目录下的所有文件名后添加.bak的后缀 阅读全文

posted @ 2012-08-17 22:44 bwgang 阅读(582) 评论(0) 推荐(0) 编辑

导航