好有成就感哦......

好有成就感哦......

刚学习awk,自己写了一个脚本,好有成就感。
[code:1]#!/bin/bash
# ls_.sh: something used for substituting the shell buildin command "ls" when
# +something wrong with you shell.

DIRECTORY=${1-`pwd`}

echo $DIRECTORY/* | awk '{
  for (i = 1; i <= NF; i++) {
    sub(/[\/""].*\//, "", $i)
    print $i
  }
}' | more

exit 0
    [/code:1]
强!
学习ing
看不懂啊
两个月前买了 gnu emacs和sed & awk 两本书
花了几天时间学emacs,现在能简单地用了
sed, awk还没看
需要努力学