Linux Shell 逐行读取文件 ( txt , sh , csv等)
今天写了一个简单的 Linux Shell 逐行读取文件(txt,sh,csv....)的程序,记录一下,有需要的朋友可以参考。
#!/bin/bash
# Only 1 parameter !
if [ $# != 1 ];then
echo " Usage: .\read.sh filename!";
exit
fi
# check the file !
if ! [ -f $
原创
2015-12-27 16:30:09 ·
22358 阅读 ·
8 评论