guoyang0601 于 2010-12-28 21:47:32发表:
自己弄明白了。哈哈
guoyang0601 于 2010-12-28 21:46:54发表:
#!/bin/bash clear read name grep $name/tcp /etc/services | head -n 1 | awk 'BEGIN { FS="\t" }{ print $1 }'
guoyang0601 于 2010-12-28 21:47:32发表:
自己弄明白了。哈哈
guoyang0601 于 2010-12-28 21:46:54发表:
#!/bin/bash
clear
read name
grep $name/tcp /etc/services | head -n 1 | awk 'BEGIN { FS="\t" }{ print $1 }'