karim0209

19062023_bashrc

Jun 19th, 2023
140
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 19.91 KB | None | 0 0
  1. ###while read i;do echo "<p><a href=\"$i\" target="_blank"> $(echo $i | sed s,https://samajho.com/upsc/,,g | sed s,/,,g) </a></p>";done < samajho2021page1-12.txt >> samajhohtmllinks.txt
  2. ####for i in {01..12};do for j in {01..31};do echo -e "<p><a href=\"https://www.drishtiias.com/current-affairs-news-analysis-editorials/news-analysis/$j-$i-2021/print\" target=\"_blank\"> News-Analysis-of-$j-$i-2022 </a></p>\n";done;done >> DristiIAS-News-Analysis-year-2022.html
  3. #XDG_RUNTIME_DIR='/data/data/com.termux/files/usr/tmp/runtime-u0_a547'
  4. export XDG_RUNTIME_DIR='/data/data/com.termux/files/usr/tmp/runtime-u0_a547'
  5. export RUNLEVEL=3
  6. function subffs {( find . -mindepth 2 -name "*.$1" -print -exec mv {} . \;)}
  7. function m4a2mp3f {(mkdir -p m4a2mp3files;find . -name '*.m4a' -print0 | while read -d '' -r file; do ffmpeg -i "$file" -codec:v copy -codec:a libmp3lame -q:a 2 "${file%.m4a}.mp3" < /dev/null;done)}
  8. function m4a2mp3 {(mkdir -p m4a2mp3files;for f in *.m4a; do ffmpeg -i "$f" -codec:v copy -codec:a libmp3lame -q:a 2 m4a2mp3files/"${f%.m4a}.mp3"; done)}
  9. alias nip='cd ~/storage/shared/IAS/NipunaCADaily/Date/;ls'
  10. function nipun {(cd ~/storage/shared/IAS/NipunaCADaily/Date/;wget $(lkl https://ntfs.avahan.net/NT/2023/$1/$2/NID/5_{01..03}/ | grep pdf$);qpdf --empty --pages $(echo $(ls -Lrt)) -- $2-$12023.pdf;mv $2-$12023.pdf ~/storage/shared/IAS/NipunaCADaily/;rm *;cd ~/storage/shared/IAS/NipunaCADaily/;ls;termux-open $2-$12023.pdf)}
  11. #function nipun {(cd ~/storage/shared/IAS/NipunaCADaily/Date/;wget $(lkl https://ntfs.avahan.net/NT/2023/06/$1/NID/5_{01..03}/ | grep pdf$);qpdf --empty --pages $(echo $(ls -Lrt)) -- $12023.pdf;mv $12023.pdf ~/storage/shared/IAS/NipunaCADaily/;rm *;cd ~/storage/shared/IAS/NipunaCADaily/;ls)}
  12. function nipunm {(cd ~/storage/shared/IAS/NipunaCADaily/Date/;wget $(lkl https://ntfs.avahan.net/NT/2023/$1/$2/NIP/5_{01..08}/ | grep pdf$);qpdf --empty --pages $(echo $(ls -Lrt)) -- $2-$1-2023.pdf;mv $2-$1-2023.pdf ~/storage/shared/IAS/NipunaCADaily/Weekly/;rm *;cd ~/storage/shared/IAS/NipunaCADaily/Weekly/;ls)}
  13. alias juk='cd ~/storage/shared/JukeBox;ls'
  14. alias oo='qm $(echo $(ls)) -- $(basename $PWD.pdf);ls'
  15. alias tlm='cd ~/storage/shared/Download/Telegram;ls'
  16. function iopp {( wkhtmltopdf $1 $(curl -s $1 | grep -o "<title>[^<]*" | tail -c+8).pdf )}
  17. function iop {( while read i;do wkhtmltopdf $i $(echo $i | sed 's,https://pratibha.eenadu.net/tspsc/lesson/group-ii/,,g' | sed 's,/,_,g').pdf;done )}
  18. alias des='cd ~/storage/shared/JukeBox/description/;ls'
  19. function j2pc {( for (( i=1; i<=$1; i++));do convert -density 30x30 -quality 30 -compress jpeg $i.jpg $i.pdf;done)}
  20. function pragm {(qpdf --empty --pages $(echo $(ls -Lrt *.pdf)) -- $1.pdf)}
  21. alias gd="gallery-dl -u [email protected] -p Allah@786"
  22. alias qpr='qpdf --decrypt --password='
  23. alias tzg='tar -cvzf /sdcard/IAS/amit.tgz --owner=0 --group=0'
  24. alias gg='cd ~/storage/shared/Gallery;ls'
  25. function iastt { ( sed -i '/^Share Article$/d;/^PRINT$/d;/^A$/d' $1* ) }
  26. alias iast='cd ~/storage/shared/IAS/TheHindu/editorial;ls'
  27. alias iasd='cd ~/storage/shared/IAS/TheHindu/DristiIAS-Articles;ls'
  28. function ttyy { ( for i in *.txt;do echo -e "\n";echo -e "$i\n" | sed 's,\_,\ ,g';cat $i | tr -s '\n' ;done > $(pwd | sed 's,/data/data/com.termux/files/home/storage/shared/IAS/,,g' | sed 's,\/,,g').txt ) }
  29. alias vttallc='find . -type f -name "*.vtt" -exec python ~/vtt2text.py {} \;'
  30. alias rvtt='find . -type f -name "*.vtt" -exec rm {} \;'
  31. alias v2t='find . -name "*.vtt" -exec python ~/vtt2text.py {} \;&&rm *.vtt'
  32. function ydlcon {(echo "--embed-thumbnail --no-part --no-warnings --no-mtime -o '$(pwd)/%(playlist)s/%(title)s -- %(uploader)s.%(ext)s' -i --external-downloader aria2c --external-downloader-args '-c -x 16 -s 16 -k 1M --file-allocation=none'" > ~/.config/youtube-dl/config)}
  33. function ydlconv {(echo "-f 18/best --embed-thumbnail --no-part --no-warnings --no-mtime -o '$(pwd)/%(playlist)s/%(title)s -- %(uploader)s.%(ext)s' -i --external-downloader aria2c --external-downloader-args '-c -x 16 -s 16 -k 1M --file-allocation=none'" > ~/.config/youtube-dl/config)}
  34. function ydlconj {(echo "-f 140 --embed-thumbnail --no-part --no-warnings --no-mtime -o '$(pwd)/%(title)s -- %(uploader)s.%(ext)s' -i --external-downloader aria2c --external-downloader-args '-c -x 16 -s 16 -k 1M --file-allocation=none'" > ~/.config/youtube-dl/config)}
  35. function ydlcons {(echo "--write-auto-sub --skip-download --no-part --no-warnings --no-mtime -o '$(pwd)/%(playlist)s/%(title)s -- %(uploader)s.%(ext)s' -i --external-downloader aria2c --external-downloader-args '-c -x 16 -s 16 -k 1M --file-allocation=none'" > ~/.config/youtube-dl/config)}
  36. alias ias='cd ~/storage/shared/IAS;ls'
  37. alias rin='cd ~/storage/shared/Ringtones;ls'
  38. alias repo='termux-change-repo'
  39. alias lkl='lynx -listonly -nonumbers -dump'
  40. alias nb='nano .bashrc'
  41. alias nbs='source .bashrc'
  42. alias n='nano'
  43. alias lsd="ls --color=auto --sort=time"
  44. alias unb="cd /data/data/com.termux/files/usr/bin;ls"
  45. alias ysd='cd ~/storage/shared; ls; echo "Enter u want to Go Folder name"; read fol; cd $(pwd)/$fol;ls'
  46. alias yys='cd ~/storage/shared/spotify-music; ls'
  47. alias yss='cd ~/storage/shared/Study-Materials; ls'
  48. alias yyj='cd ~/storage/shared/Youtube-jukebox; ls'
  49. alias yd='youtube-dl'
  50. alias sx='sox *.mp3 output.mp3 trim'
  51. alias wt='wget -r -c'
  52. alias ww='wget -c -P ~/storage/shared/youtube -O'
  53. alias p1='pkg search'
  54. alias p2='pkg install'
  55. alias p3='pkg uninstall'
  56. alias yy='cd storage/shared/youtube; ls'
  57. alias dd='cd storage/shared/Download; ls'
  58. alias ytu='yt-dlp -U'
  59. alias uu='apt update && apt upgrade -y'
  60. alias ydlu='pip install --upgrade youtube-dl'
  61. alias gdlu='pip install --upgrade gallery-dl'
  62. alias pipu='pip install --upgrade pip'
  63. alias pkk='ytu && ydlu && sdlu && gdlu && pipu'
  64. alias acp='apt-cache policy'
  65. alias backuptermux='tar -cvzf /sdcard/termux.tgz --owner=0 --group=0 home usr'
  66. alias restoretermux='tar -xvzf /sdcard/termux.tgz'
  67. alias ypid='youtube-dl -j --flat-playlist'
  68. alias fnf="cd ~/storage/shared/Study-Materials/Finalogy;ls"
  69. alias tn='cd bin;nano termux-url-opener'
  70. alias tnf='cd bin;nano termux-file-editor'
  71. alias bb='termux-brightness'
  72. alias wifi='termux-wifi-connectioninfo'
  73. alias wifis='termux-wifi-scaninfo'
  74. alias adm='cd ~/storage/shared/adm; ls'
  75. function wgtt { ( wget -c -P ~/storage/shared/youtube/$1 -i $2 ) }
  76. alias qm='qpdf --empty --pages'
  77. alias sw='cd ~/storage/shared/swenworld; ls'
  78. alias wdk="wget [email protected] --http-password=7396601970"
  79. alias wladda="wget --save-cookies cookies.txt --keep-session-cookies --post-data '[email protected]&password=7396601970' --delete-after https://www.adda247.com/"
  80. function addawdkl { ( for ((i=$1; i<=$2; i++));do wget --load-cookies cookies.txt https://www.adda247.com/4657_$i.doc ;done ) }
  81. alias aria='aria2c -c -x 16 -s 16 -k 1M --file-allocation=none'
  82. function ydd { ( youtube-dl -i --embed-thumbnail -o '~/storage/shared/youtube/%(title)s.%(ext)s' -f $1 $2 --external-downloader aria2c --external-downloader-args '-x 16 -s 16 -k 1M --file-allocation=none' ) }
  83. alias ariaa='aria2c -c -x 16 -s 16 -k 1M --file-allocation=none -d ~/storage/shared/youtube --http-user=munna209 --http-passwd=Munna@209'
  84. alias ariak='aria2c -c -x 16 -s 16 -k 1M --file-allocation=none -d ~/storage/shared/SamFirmZip --http-user=Karim4364 --http-passwd=Allah@786'
  85. alias tp='termux-open'
  86. alias tps='termux-open --send'
  87. function uzip { ( for i in *.zip ;do unzip -x "$i" ;done ) }
  88. alias ariag='aria2c -c -x 16 -s 16 -k 1M --file-allocation=none -d ~/storage/shared/youtube [email protected] --http-passwd=7396601970'
  89. alias tcc='termux-telephony-call'
  90. alias spp='spotdl -p'
  91. function ppp { ( spotdl --overwrite skip -f $1 -l $2 ) }
  92. alias spl='cd ~/storage/shared/Spotify;ls'
  93. function pm4a { ( spotdl --overwrite skip -o .m4a -f $1 -l $2 ) }
  94. alias ccc='ls |wc -l'
  95. alias lk='spotdl -f ~/storage/shared/Spotify -s'
  96. alias spc='nano ~/.config/spotdl/config.yml'
  97. alias p9='pip uninstall -y'
  98. alias p0='pip list all'
  99. alias p8='pip install'
  100. function amp3 { ( for i in *.amr; do ffmpeg -i $i $i.mp3;sox $i.mp3 N$i.mp3 noisered noise.prof 0.21;done ) }
  101. alias nsx='sox *.mp3 -n noiseprof noise.prof'
  102. alias p='python'
  103. alias linksall='lynx -listonly -nonumbers -dump'
  104. alias ffh='ffmpeg -i input.mp4 -filter:v "colormatrix=bt601:bt709, scale=1440:1080:flags=lanczos, pad=1920:1080:240:0" -c:a copy  out.mp4'
  105. function addal { ( for ((i=$1; i>=$2; i--));do termux-open https://store.adda247.com/1624_$i.doc;done ) }
  106. alias rr='rename doc pdf *.doc'
  107. alias wwo='termux-wifi-enable true'
  108. alias wwf='termux-wifi-enable false'
  109. alias qs='qpdf --split-pages'
  110. function qmm { ( qpdf --empty --pages $(for i in $1*.pdf; do echo $i ; done) -- $2.pdf ) }
  111. alias noi='gs -o noimages.pdf -sDEVICE=pdfwrite -dFILTERIMAGE'
  112. function aaa { ( for ((i=$1; i<=$2; i++));do termux-open https://store.adda247.com/889_$i.doc;done ) }
  113. alias concattt='ffmpeg -f concat -safe 0 -i <(for f in ./*.mp3; do echo "file '$PWD/$f'"; done) -c copy output.mp3'
  114. function mmm { (for i in *.pdf;do gs -o $1_$i -sDEVICE=pdfwrite -dFILTERIMAGE $i;done) }
  115. function t2at { (echo "Enter file name all txt 2 single txt" && read fn && ls|grep .txt$|while read i ;do cat $i && echo -e "\n\n\n";done >> a$fn ) }
  116. function fnn { ( find . -type f | while read i;do mv "$i" "$(echo $i | sed 's,\ ,_,g')";done ) }
  117. function rfnn { ( find . -type f | while read i;do mv "$i" "$(echo $i | sed 's,\_,\ ,g')";done ) }
  118. function dfnn { ( find . -type d | while read i;do mv "$i" "$(echo $i | sed 's,\ ,_,g')";done ) }
  119. function rdfnn { ( find . -type d | while read i;do mv "$i" "$(echo $i | sed 's,\_,\ ,g')";done ) }
  120. function nnn { (ls *.*|while read file; do mv "$file" "$(echo $file | sed s/\ /_/g)"; done ) }
  121. function nnnf { (ls|while read file; do mv "$file" "$(echo $file | sed s/\ /_/g)"; done ) }
  122. function rnnn { (ls *.*|while read file; do mv "$file" "$(echo $file | sed s/_/\ /g)"; done ) }
  123. function rnnnf { (ls|while read file; do mv "$file" "$(echo $file | sed s/_/\ /g)"; done ) }
  124. function nnb { ( for i in *.txt;do cat "$i" && sed "/^[[:space:]]*$/d" "$i" >& 0 > updatedfile && cat updatedfile > "$i" && cat "$i";done ) }
  125. function nsf { ( cat "$1" && sed "/^[[:space:]]*$/d" "$1" >& 0 > updatedfile && cat updatedfile > "$1" && cat "$1" ) }
  126. function nnn786 { (ls|while read file; do mv "$file" "$(echo $file | sed s/.pdf.txt/.txt/g)"; done ) }
  127. function nnc { (ls|while read file; do mv "$file" "$(echo $file | sed -e 's/&/-/g' | sed -e 's/?/-/g' | sed -e 's/:/-/g')"; done ) }
  128. #function m4a2mp3 { ( for f in *.m4a; do ffmpeg -i "$f" -codec:v copy -codec:a libmp3lame -q:a 2 newfiles/"${f%.m4a}.mp3"; done ) }
  129. #function fm4a2mp3 { (mkdir -p m4a2mp3files;find . *.m4a -exec ffmpeg -i {} -codec:v copy -codec:a libmp3lame -q:a 2 m4a2mp3files/{}.mp3 \;) }
  130. alias m2m31="mkdir -p newfiles && nnn && m4a2mp3 && rnnn && ls"
  131. alias m2m32="cd newfiles && rnnn && ls"
  132. alias m2m3="m2m31 && m2m32"
  133. function v2t { (cp ~/vtt2text.py $(pwd)/ && find . -name "*.vtt" -exec python vtt2text.py {} \; && rm vtt2text.py *.vtt) }
  134. function v2tsf { (cp ~/vtt2text.py $(pwd)/ && find */*.vtt -exec python vtt2text.py {} \; && find */*.vtt -exec {} \; ) }
  135. function mmn { (gs -o $1_$2 -sDEVICE=pdfwrite -dFILTERIMAGE $2 ) }
  136. function ytt { ( youtube-dl -no-warnings -no-mtime -o '/data/data/com.termux/files/home/storage/shared/Youtube/%(title)s.%(ext)s' -i --external-downloader aria2c --external-downloader-args '-c -x 16 -s 16 -k 1M --file-allocation=none' --embed-thumbnail -f 140 "ytsearch1:$1 jukebox" ) }
  137. function yth { ( youtube-dl -no-warnings -no-mtime -o '/data/data/com.termux/files/home/storage/shared/Youtube/%(title)s.%(ext)s' -i --external-downloader aria2c --external-downloader-args '-c -x 16 -s 16 -k 1M --file-allocation=none' --embed-thumbnail -f 140 "ytsearch1:$1 jukebox Hindi" ) }
  138. function yyd { ( while read file; do youtube-dl -no-warnings -no-mtime -o '/data/data/com.termux/files/home/storage/shared/Youtube/%(title)s.%(ext)s' -i --external-downloader aria2c --external-downloader-args '-c -x 16 -s 16 -k 1M --file-allocation=none' --embed-thumbnail -f 140 "ytsearch1:"$file" jukebox"; done ) }
  139. alias kk='uu && ytu && gdlu && pipu && apt autoremove -y'
  140. function ll { (echo -e "Enter url here \n" && read url && echo -e "Enter keyword here \n" && read keyword && lynx -listonly -nonumbers -dump $url | sort -u| grep "$keyword" | sed -e "s/^.*http/http/" ) }
  141. alias pp='exit 0'
  142. function hhh { ( while read file; do aria2c -c -x 16 -s 16 -k 1M --file-allocation=none -d ~/storage/shared/youtube "$file"; done ) }
  143. function hhj { ( while read file; do wget "$file"; done ) }
  144. alias filer='rename doc pdf *.doc'
  145. function mnb { (qpdf --empty --pages $1 $2 -- Margered_$1 ) }
  146. alias ydc="""youtube-dl --ignore-config --no-warnings -no-mtime -o '/data/data/com.termux/files/home/storage/shared/Youtube/%(title)s.%(ext)s' -i --external-downloader aria2c --external-downloader-args '-c -x 16 -s 16 -k 1M --file-allocation=none'"""
  147. function smsf { (curl -X "POST" "http://$1/v1/sms" -d "phone=$2" -d "message=$3" )}
  148. alias ydcf="""youtube-dl --ignore-config --no-warnings -no-mtime -o '/data/data/com.termux/files/home/storage/shared/Youtube/%(playlist)s/%(playlist_index)s- %(title)s.%(ext)s' -i --external-downloader aria2c --external-downloader-args '-c -x 16 -s 16 -k 1M --file-allocation=none'"""
  149. function adda1 { ( for ((i=$1; i<=$2; i++));do termux-open https://store.adda247.com/1624_$i.doc;done ) }
  150. function cutt {(ffmpeg $(ydc -g -f 140 $1| sed "s/.*/-ss 00:$2 -i &/") -t 00:00:$3 -c copy $4 )}
  151. function cump4 {(ffmpeg $(ydc -g -f 18 $1| sed "s/.*/-ss 00:$2 -i &/") -t 00:00:$3 -c copy $4 )}
  152. function qmall { ( qpdf --empty --pages $(for i in *.pdf; do echo $i ; done) -- $1.pdf ) }
  153. function epaperall { ( echo -e "Enter epapername space epaperday code" && read epapername epaperdaycode && termux-open "http://epaper.$epapername.com/download/newspaper/$epaperdaycode" ) }
  154. alias epmag="termux-open 'http://epaper.suryaa.com/t/10695/?s=Sunday' && termux-open 'https://epaper.andhrajyothy.com/t/12126/Sunday Magazine' && termux-open 'http://epaper.suryaa.com/t/10695/?s=Sunday' && termux-open 'http://epaper.prajasakti.com/t/5928/?s=Sneha (Sunday book)'"
  155. function depmag { ( echo -e "Enter epaperday code separate by space" && read dmag1 dmag2 dmag3 && termux-open "http://epaper.suryaa.com/download/issue/magazine/$dmag1" && termux-open "https://epaper.andhrajyothy.com/download/issue/magazine/$dmag2" && termux-open "http://epaper.prajasakti.com/download/issue/magazine/$dmag3" ) }
  156. function jldl { ( while read file; do echo "$file jukebox"; done ) }
  157. function ydlsd { ( while read file; do youtube-dl --no-part --no-warnings --no-mtime -o '/data/data/com.termux/files/home/storage/shared/Youtube/%(title)s -- %(uploader)s.%(ext)s' -f 140 -i --external-downloader aria2c --external-downloader-args '-c -x 16 -s 16 -k 1M --file-allocation=none' ytsearch:"$file Telugu jukebox"; done) }
  158. function ydlj { ( while read file; do youtube-dl ytsearch:"$file Telugu jukebox"; done ) }
  159. function ydlj1 { ( youtube-dl ytsearch:"$1 jukebox" ) }
  160. function rauca { (while read file; do ls echo -e "please wait .pdf file downloading.... \n" aria2c -c -x 16 -s 16 -k 1M --file-allocation=none --http-user=dkarimulla2011@gmail.com --http-passwd=Allah@786 $(lynx -listonly -nonumbers -dump $file | grep .pdf$ ) ls; done ) }
  161. function addaeb { ( for ((i=$1; i<=$2; i++));do termux-open https://store.adda247.com/4381_$i.doc;done ) }
  162. function rname { ( while read i; do echo '''<outline type="rss" title="$i" xmlUrl="$j" retrieveFullText="true" />''';done ) }
  163. function mont { ( for i in {1..12};do date +%B -d "$i/01/1980" | tr [A-Z] [a-z];done ) }
  164. function wfmon { ( while read i; do echo "https://currentaffairs.studyiq.com/monthly/$i-2020" ; done ) }
  165. function studyiQ { ( while read file;do aria2c -c -x 16 -s 16 -k 1M $(lynx -listonly -nonumbers -dump $file | grep 'http://www.mediafire.com/file' ); done ) }
  166. function addassceb { ( for ((i=$1; i<=$2; i++));do termux-open https://www.adda247.com/2954_$i.doc;done ) }
  167. alias ydownl="""--no-part --no-warnings --no-mtime -o '/data/data/com.termux/files/home/storage/shared/Youtube/%(title)s -- %(uploader)s.%(ext)s' -f 140 -i --external-downloader aria2c --external-downloader-args '-c -x 16 -s 16 -k 1M --file-allocation=none'"""
  168. function ydjl { ( while read f;do youtube-dl --default-search "ytsearch" -e -g ytsearch:"$f Jukebox";done ) }
  169. alias tbs="termux-open 'https://www.prepmate.in/monthly-magazine/' && termux-open 'https://www.iasparliament.com/downloads/current-affairs-magazine'"
  170. alias stv="termux-open https://youtu.be/8McTsOqeueE"
  171. function mp42m4a { ( while read f;do ffmpeg -i $f -map 0:a -c copy $f.m4a; done ) }
  172. function gspdf { ( while read file;do aria2c -c -x 16 -s 16 -k 1M --http-user=dkarimulla2011@gmail.com --http-passwd=Allah@786 $(lynx -listonly -nonumbers -dump $file | grep .pdf$ ); done ) }
  173. function sscje { ( for ((i=$3; i<=$2; i++));do termux-open https://www.adda247.com/$1_$i.doc;done ) }
  174. function sscje { ( for ((i=$3; i<=$2; i++));do termux-open https://www.adda247.com/$1_$i.doc;done ) }
  175. function tplinks { ( while read f ;do termux-open $f;done ) }
  176. alias sdh="cd ~/storage/shared/Study-Materials/TheHinduAstxtfiles;lsd;pwd"
  177. alias sds="cd ~/storage/shared/StudyMaterials;lsd;pwd"
  178. alias sdso="cd ~//storage/shared/Study-Materials/Opinion-Articles-TH;lsd"
  179. function thao { ( lynx -listonly -nonumbers -dump https://www.thehindu.com/opinion/feeder/default.rss | grep https://www.thehindu.com/opinion | sed 's,<link>,,g' | sed 's,</link>,,g' | sed 's,            ,,g' | head -n $1 | sed '/opinion\/letters\|columns\|cartoon\|Readers-Editor/d') }
  180. alias athao="lynx -listonly -nonumbers -dump https://www.thehindu.com/opinion/feeder/default.rss | grep https://www.thehindu.com/opinion"
  181. #### | sed 's,<link>,,g' | sed 's,</link>,,g' | sed 's,            ,,g' | head -n $1 | sed '/opinion\/letters\|columns\|cartoon\|Readers-Editor/d'"
  182. function thaol { (lynx -listonly -nonumbers -dump https://www.thehindu.com/opinion/feeder/default.rss | grep https://www.thehindu.com/opinion | sed 's,<link>,,g' | sed 's,</link>,,g' | sed 's,            ,,g' | head -n $1 | sed '/opinion\/letters\|cartoon/d') }
  183. function thaoe { ( sed -i '/cartoon\|cartoonscape/d' $1 ) }
  184. function thap { (lynx -listonly -nonumbers -dump https://www.thehindu.com/news/national/andhra-pradesh/feeder/default.rss | grep https://www.thehindu.com/news/national/andhra-pradesh | sed 's,<link>,,g' | sed 's,</link>,,g' | sed 's,            ,,g' | head -n $1 ) }
  185. function thae { (lynx -listonly -nonumbers -dump https://www.thehindu.com/business/Economy/feeder/default.rss | grep https://www.thehindu.com/business/Economy | sed 's,<link>,,g' | sed 's,</link>,,g' | sed 's,            ,,g' | head -n $1 ) }
  186. function thaa { (lynx -listonly -nonumbers -dump https://www.thehindu.com/business/agri-business/feeder/default.rss | grep https://www.thehindu.com/business/agri-business | sed 's,<link>,,g' | sed 's,</link>,,g' | sed 's,            ,,g' | head -n $1 ) }
  187. function thai { (lynx -listonly -nonumbers -dump https://www.thehindu.com/news/international/feeder/default.rss | grep https://www.thehindu.com/news/international | sed 's,<link>,,g' | sed 's,</link>,,g' | sed 's,            ,,g' | head -n $1 ) }
  188. function aeio { (for i in *.txt ;do cat $i && echo -e "\n\n\n" ; done) }
  189. function p2tt { (for i in *.pdf ;do echo converting...$i | sed s,.pdf,.txt,g && pdftotext $i $(echo $i | sed s,.pdf,.txt,g) ; done ) }
  190. alias ndfs="tree -a -L 1 && tree -a"
  191. function thaoo { (echo -e Enter file name to compare previous one;read num;comm -3 <(sort $num.txt) <(sort $(($num-100)).txt) ) }
  192. function tthao { (lynx -listonly -nonumbers -dump https://www.thehindu.com/opinion/feeder/default.rss | grep https://www.thehindu.com/opinion | sed 's,<link>,,g' | sed 's,</link>,,g' | sed 's,            ,,g' | head -n $1 > 1.txt && sed -i '/cartoon\|cartoonscape/d' 1.txt && tp 1.txt ) }
  193. function opn { ( sdso && tthao $1 ) }
  194. ###alias ydlsub """youtube-dl --write-auto-sub --skip-download --no-part --no-warnings --no-mtime -o '~/storage/shared/IAS/%(playlist)s/%(title)s -- %(uploader)s.%(ext)s' -i --external-downloader aria2c --external-downloader-args '-c -x 16 -s 16 -k 1M --file-allocation=none'"""
  195.  
Add Comment
Please, Sign In to add comment