一个awk的用法,留个记录
#!/bin/sh
for URL in `cat browse.log`
do
if echo $URL |awk -F"&" '{print "\""$1"\",\""$2"\""}' |awk '!/site/ || !/sid/{print}' >/dev/null 2>&1
then
echo $URL
else
continue
fi
done
#!/bin/sh
for URL in `cat browse.log`
do
if echo $URL |awk -F"&" '{print "\""$1"\",\""$2"\""}' |awk '!/site/ || !/sid/{print}' >/dev/null 2>&1
then
echo $URL
else
continue
fi
done