Bluek404
2016-01-01 09:34 deepin
让我来一条常暴力的命令
Copy the Code
- curl -s https://www.kernel.org | grep -o '[0-9]\.[0-9]\.[0-9]' | head -1
Reply Like 0 View the author
https://bbs.deepin.org/post/35059
让我来一条常暴力的命令
https://bbs.deepin.org/post/35059
你wget的就是网页,没文件啊!
wget http://kernel.org/
你这条命令意思就是下载http://kernel.org/,你应 ...
https://bbs.deepin.org/post/35059
#! bin/bash
wget http://kernel.org/
这个是下载网页.
https://bbs.deepin.org/post/35059
wget https://kernel.org/ -O - | sed -n -r 'N;N;N;N;/stable:/p;' | grep -o 'https.*xz"' | grep -o 'h ...
Popular Events
More
#! bin/bash
wget http://kernel.org/
n_line=0;
grep -A 1 stable index.html | while read LINE
do
n_line=$ ((n_line+1))
if [ $n_line = "2" ]
then
LINE=${LINE#<*>}
LINE=${LINE#<*>}
LINE=${LINE%<*>}
LINE=${LINE%<*>}
echo "linuxzuixingneihe"
echo $LINE
fi
done
exit 0
,可是运行后只是下载了网页,why?