Cont: Get yourself some more conkyrc files.
Last time we got ourselves some conkyrc files from the ubuntu forums. But that scripts gets the files only from the First page of the thread. Lets extend this further and get the script to get all the conkyrc files.
There are some 1048 pages in the thread, I am showing pages 1 to 3 but you can change 3 to whatever number you want ๐
count=0 for i in {1..3} do >.test >conkyrc echo "Getting page $i" curl http://ubuntuforums.org/showthread.php?t=281865\&page=$i |\\ ย sed -n '// d'|\ ย sed 's##\n-----------------------------------\n\n\n#' \ >conkyrc dos2unix conkyrc cp conkyrc .test while [ $(wc -l .test|sed 's/[^0-9]//g') != 0 ] do sed -n '1,/------------------------/ p' .test|sed '$d' >conkyrc.$count diff .test conkyrc.$count |sed 's/^<.//'|sed '1, /---------------------/ d;2d'>.test ((count++)) done echo "Files so far are : $count" done
Related articles
- Get yourself some conkyrc files. (amit-agarwal.co.in)
- HTC-Like Clock / Weather Conky Configuration (putokaz.wordpress.com)
- Split and join file on Mac OSX Terminal (lezeng.wordpress.com)
Related Articles:
- 2011/10/05 Get yourself some conkyrc files.
- 2011/10/08 Script to get yourself some conkyrc files
- 2011/09/27 some interesting alias
- 2010/11/25 Make any command read line enabled (on *nix)
- 2010/05/16 Downloading all related videos from youtube with youtube-dl
Authored By Amit Agarwal
Amit Agarwal, Linux and Photography are my hobbies.Creative Commons Attribution 4.0 International License.