这是shell逐行执行文件:
#!/bin/sh
filepath="/home/test/test.txt"
while read LINE
do
user=`echo $LINE | awk ‘{print $1}‘`
pwd=`echo $LINE | awk ‘{print $2}‘`
done <$filepath
时间: 2024-12-12 11:15:47
这是shell逐行执行文件:
#!/bin/sh
filepath="/home/test/test.txt"
while read LINE
do
user=`echo $LINE | awk ‘{print $1}‘`
pwd=`echo $LINE | awk ‘{print $2}‘`
done <$filepath