karim0209

07122022 Bashrc

Dec 6th, 2022
142
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 19.34 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.  
  4. ####for i in {30..02};do for j in {01..03};do wget $(lkl https://ntfs.avahan.net/NT/2022/11/$i/NID/5_$j/ | grep \.pdf);done && $(qm $(echo $(ls -Ltr | head -3)) -- $i-11-2022.pdf);done
  5.  
  6. function dunews { ( while read i;do echo -e "<p><a href=\"$i/print\" target=\"_blank\"> $(echo $i | sed s,https://www.drishtiias.com/daily-updates/daily-news-editorials/,,g) </a></p>\n";done ) }
  7.  
  8. function imc2p { ( echo -e 'Enter image file name to Convert image to pdf and Compressed pdf\n';read fname;convert $fname ${fname%.jpg}.pdf ; convert -density 50x50 -quality 40 -compress jpeg ${fname%.jpg}.pdf Compressed${fname%.jpg}.pdf ;ls ) }
  9.  
  10. function llp { ( wkhtmltopdf $1 $(echo $1 | sed 's,https://www.drishtiias.com/daily-updates/daily-news-analysis/,,g' | sed 's,https://www.drishtiias.com/current-affairs-news-analysis-editorials/news-analysis/,,g' | sed 's,/print,,g').pdf ) }
  11. function sftm { ( find . -mindepth 2 -type f -exec mv {} . \;) }
  12. export XDG_RUNTIME_DIR='/data/data/com.termux/files/usr/tmp/runtime-u0_a547'
  13. export RUNLEVEL=3
  14. alias imc="convert -density 50x50 -quality 40 -compress jpeg $1 $2"
  15. alias imc1="convert -density 50x50 -quality 40 -compress jpeg $1 $2"
  16. alias ff="cd ~/storage/shared/;ls"
  17. alias mk="cd ~/storage/shared/Music/SpotiFlyer/Playlists/Karim_Liked_Songs;ls"
  18. alias gd="gallery-dl -u [email protected] -p Allah@786"
  19. alias qpr='qpdf --decrypt --password='
  20. alias tzg='tar -cvzf /sdcard/IAS/amit.tgz --owner=0 --group=0'
  21. alias gg='cd ~/storage/shared/Gallery;ls'
  22. function iastt { ( sed -i '/^Share Article$/d;/^PRINT$/d;/^A$/d' $1* ) }
  23. alias iast='cd ~/storage/shared/IAS/TheHindu/editorial;ls'
  24. alias iasd='cd ~/storage/shared/IAS/TheHindu/DristiIAS-Articles;ls'
  25. 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 ) }
  26. alias vttallc='find . -type f -name "*.vtt" -exec python ~/vtt2text.py {} \;'
  27. alias rvtt='find . -type f -name "*.vtt" -exec rm {} \;'
  28. alias v2t='find . -name "*.vtt" -exec python ~/vtt2text.py {} \;&&rm *.vtt'
  29. 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)}
  30. function ydlconv {(echo "-f 18/best --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)}
  31. function ydlpconv {(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)}
  32. 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)}
  33. 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)}
  34. alias ias='cd ~/storage/shared/IAS;ls'
  35. alias iast='cd ~/storage/shared/IAS/hinduarticles;ls'
  36. alias rin='cd ~/storage/shared/Ringtones;ls'
  37. alias repo='termux-change-repo'
  38. alias lkl='lynx -listonly -nonumbers -dump'
  39. alias nb='nano .bashrc'
  40. alias nbs='source .bashrc'
  41. alias n='nano'
  42. alias lsd="ls --color=auto --sort=time"
  43. alias unb="cd /data/data/com.termux/files/usr/bin;ls"
  44. alias ysd='cd ~/storage/shared; ls; echo "Enter u want to Go Folder name"; read fol; cd $(pwd)/$fol;ls'
  45. alias yys='cd ~/storage/shared/spotify-music; ls'
  46. alias yss='cd ~/storage/shared/Study-Materials; ls'
  47. alias yyj='cd ~/storage/shared/Youtube-jukebox; ls'
  48. alias yd='youtube-dl'
  49. alias sx='sox *.mp3 output.mp3 trim'
  50. alias wt='wget -r -c'
  51. alias ww='wget -c -P ~/storage/shared/youtube -O'
  52. alias p1='pkg search'
  53. alias p2='pkg install'
  54. alias p3='pkg uninstall'
  55. alias yy='cd storage/shared/youtube; ls'
  56. alias dd='cd storage/shared/Download; ls'
  57. alias uu='apt update && apt upgrade -y'
  58. alias ydlu='pip install --upgrade youtube-dl'
  59. alias gdlu='pip install --upgrade gallery-dl'
  60. alias pipu='pip install --upgrade pip'
  61. alias pkk='ydlu && sdlu && gdlu && pipu'
  62. alias acp='apt-cache policy'
  63. alias backuptermux='tar -cvzf /sdcard/termux.tgz --owner=0 --group=0 home usr'
  64. alias restoretermux='tar -xvzf /sdcard/termux.tgz'
  65. alias ypid='youtube-dl -j --flat-playlist'
  66. alias fnf="cd ~/storage/shared/Study-Materials/Finalogy;ls"
  67. alias tn='cd bin;nano termux-url-opener'
  68. alias tnf='cd bin;nano termux-file-editor'
  69. alias bb='termux-brightness'
  70. alias wifi='termux-wifi-connectioninfo'
  71. alias wifis='termux-wifi-scaninfo'
  72. alias adm='cd ~/storage/shared/adm; ls'
  73. function wgtt { ( wget -c -P ~/storage/shared/youtube/$1 -i $2 ) }
  74. alias qm='qpdf --empty --pages'
  75. alias sw='cd ~/storage/shared/swenworld; ls'
  76. alias wdk="wget [email protected] --http-password=7396601970"
  77. alias wladda="wget --save-cookies cookies.txt --keep-session-cookies --post-data '[email protected]&password=7396601970' --delete-after https://www.adda247.com/"
  78. function addawdkl { ( for ((i=$1; i<=$2; i++));do wget --load-cookies cookies.txt https://www.adda247.com/4657_$i.doc ;done ) }
  79. alias aria='aria2c -c -x 16 -s 16 -k 1M --file-allocation=none'
  80. 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' ) }
  81. alias ariaa='aria2c -c -x 16 -s 16 -k 1M --file-allocation=none -d ~/storage/shared/youtube --http-user=munna209 --http-passwd=Munna@209'
  82. alias ariak='aria2c -c -x 16 -s 16 -k 1M --file-allocation=none -d ~/storage/shared/SamFirmZip --http-user=Karim4364 --http-passwd=Allah@786'
  83. alias tp='termux-open'
  84. alias tps='termux-open --send'
  85. function uzip { ( for i in *.zip ;do unzip -x "$i" ;done ) }
  86. alias ariag='aria2c -c -x 16 -s 16 -k 1M --file-allocation=none -d ~/storage/shared/youtube [email protected] --http-passwd=7396601970'
  87. alias tcc='termux-telephony-call'
  88. alias spp='spotdl -p'
  89. function ppp { ( spotdl --overwrite skip -f $1 -l $2 ) }
  90. alias spl='cd ~/storage/shared/Spotify;ls'
  91. function pm4a { ( spotdl --overwrite skip -o .m4a -f $1 -l $2 ) }
  92. alias ccc='ls |wc -l'
  93. alias lk='spotdl -f ~/storage/shared/Spotify -s'
  94. alias spc='nano ~/.config/spotdl/config.yml'
  95. alias p9='pip uninstall -y'
  96. alias p0='pip list all'
  97. alias p8='pip install'
  98. function amp3 { ( for i in *.amr; do ffmpeg -i $i $i.mp3;sox $i.mp3 N$i.mp3 noisered noise.prof 0.21;done ) }
  99. alias nsx='sox *.mp3 -n noiseprof noise.prof'
  100. alias p='python'
  101. alias linksall='lynx -listonly -nonumbers -dump'
  102. 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'
  103. function addal { ( for ((i=$1; i>=$2; i--));do termux-open https://store.adda247.com/1624_$i.doc;done ) }
  104. alias rr='rename doc pdf *.doc'
  105. alias wwo='termux-wifi-enable true'
  106. alias wwf='termux-wifi-enable false'
  107. alias qs='qpdf --split-pages'
  108. function qmm { ( qpdf --empty --pages $(for i in $1*.pdf; do echo $i ; done) -- $2.pdf ) }
  109. alias noi='gs -o noimages.pdf -sDEVICE=pdfwrite -dFILTERIMAGE'
  110. function aaa { ( for ((i=$1; i<=$2; i++));do termux-open https://store.adda247.com/889_$i.doc;done ) }
  111. alias concattt='ffmpeg -f concat -safe 0 -i <(for f in ./*.mp3; do echo "file '$PWD/$f'"; done) -c copy output.mp3'
  112. function mmm { (for i in *.pdf;do gs -o $1_$i -sDEVICE=pdfwrite -dFILTERIMAGE $i;done) }
  113. 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 ) }
  114. function fnn { ( find . -type f | while read i;do mv "$i" "$(echo $i | sed 's,\ ,_,g')";done ) }
  115. function rfnn { ( find . -type f | while read i;do mv "$i" "$(echo $i | sed 's,\_,\ ,g')";done ) }
  116. function dfnn { ( find . -type d | while read i;do mv "$i" "$(echo $i | sed 's,\ ,_,g')";done ) }
  117. function rdfnn { ( find . -type d | while read i;do mv "$i" "$(echo $i | sed 's,\_,\ ,g')";done ) }
  118. function nnn { (ls *.*|while read file; do mv "$file" "$(echo $file | sed s/\ /_/g)"; done ) }
  119. function nnnf { (ls|while read file; do mv "$file" "$(echo $file | sed s/\ /_/g)"; done ) }
  120. function rnnn { (ls *.*|while read file; do mv "$file" "$(echo $file | sed s/_/\ /g)"; done ) }
  121. function rnnnf { (ls|while read file; do mv "$file" "$(echo $file | sed s/_/\ /g)"; done ) }
  122. function nnb { ( for i in *.txt;do cat "$i" && sed "/^[[:space:]]*$/d" "$i" >& 0 > updatedfile && cat updatedfile > "$i" && cat "$i";done ) }
  123. function nsf { ( cat "$1" && sed "/^[[:space:]]*$/d" "$1" >& 0 > updatedfile && cat updatedfile > "$1" && cat "$1" ) }
  124. function nnn786 { (ls|while read file; do mv "$file" "$(echo $file | sed s/.pdf.txt/.txt/g)"; done ) }
  125. function nnc { (ls|while read file; do mv "$file" "$(echo $file | sed -e 's/&/-/g' | sed -e 's/?/-/g' | sed -e 's/:/-/g')"; done ) }
  126. function m4a2mp3 { ( for f in *.m4a; do ffmpeg -i "$f" -codec:v copy -codec:a libmp3lame -q:a 2 newfiles/"${f%.m4a}.mp3"; done ) }
  127. function fm4a2mp3 { ( find . *.m4a -exec ffmpeg -i {} -codec:v copy -codec:a libmp3lame -q:a 2 {}.mp3 \;) }
  128. alias m2m31="mkdir -p newfiles && nnn && m4a2mp3 && rnnn && ls"
  129. alias m2m32="cd newfiles && rnnn && ls"
  130. alias m2m3="m2m31 && m2m32"
  131. function v2t { (cp ~/vtt2text.py $(pwd)/ && find . -name "*.vtt" -exec python vtt2text.py {} \; && rm vtt2text.py *.vtt) }
  132. function v2tsf { (cp ~/vtt2text.py $(pwd)/ && find */*.vtt -exec python vtt2text.py {} \; && find */*.vtt -exec {} \; ) }
  133. function mmn { (gs -o $1_$2 -sDEVICE=pdfwrite -dFILTERIMAGE $2 ) }
  134. 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" ) }
  135. 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" ) }
  136. 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 ) }
  137. alias kk='uu && ydlu && gdlu && pipu && apt autoremove -y && exit'
  138. 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/" ) }
  139. alias pp='exit'
  140. function hhh { ( while read file; do aria2c -c -x 16 -s 16 -k 1M --file-allocation=none -d ~/storage/shared/youtube "$file"; done ) }
  141. function hhj { ( while read file; do wget "$file"; done ) }
  142. alias filer='rename doc pdf *.doc'
  143. function mnb { (qpdf --empty --pages $1 $2 -- Margered_$1 ) }
  144. 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'"""
  145. function smsf { (curl -X "POST" "http://$1/v1/sms" -d "phone=$2" -d "message=$3" )}
  146. 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'"""
  147. function adda1 { ( for ((i=$1; i<=$2; i++));do termux-open https://store.adda247.com/1624_$i.doc;done ) }
  148. function cutt {(ffmpeg $(ydc -g -f 140 $1| sed "s/.*/-ss 00:$2 -i &/") -t 00:00:$3 -c copy $4 )}
  149. function cump4 {(ffmpeg $(ydc -g -f 18 $1| sed "s/.*/-ss 00:$2 -i &/") -t 00:00:$3 -c copy $4 )}
  150. function qmall { ( qpdf --empty --pages $(for i in *.pdf; do echo $i ; done) -- $1.pdf ) }
  151. function epaperall { ( echo -e "Enter epapername space epaperday code" && read epapername epaperdaycode && termux-open "http://epaper.$epapername.com/download/newspaper/$epaperdaycode" ) }
  152. 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)'"
  153. 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" ) }
  154. function jldl { ( while read file; do echo "$file jukebox"; done ) }
  155. 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) }
  156. function ydlj { ( while read file; do youtube-dl ytsearch:"$file Telugu jukebox"; done ) }
  157. function ydlv { ( while read file; do youtube-dl ytsearch:"$file Video Song"; done ) }
  158. function ydlj1 { ( youtube-dl ytsearch:"$1 jukebox" ) }
  159. 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 ) }
  160. function addaeb { ( for ((i=$1; i<=$2; i++));do termux-open https://store.adda247.com/4381_$i.doc;done ) }
  161. function rname { ( while read i; do echo '''<outline type="rss" title="$i" xmlUrl="$j" retrieveFullText="true" />''';done ) }
  162. function mont { ( for i in {1..12};do date +%B -d "$i/01/1980" | tr [A-Z] [a-z];done ) }
  163. function wfmon { ( while read i; do echo "https://currentaffairs.studyiq.com/monthly/$i-2020" ; done ) }
  164. 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 ) }
  165. function addassceb { ( for ((i=$1; i<=$2; i++));do termux-open https://www.adda247.com/2954_$i.doc;done ) }
  166. 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'"""
  167. function ydjl { ( while read f;do youtube-dl --default-search "ytsearch" -e -g ytsearch:"$f Jukebox";done ) }
  168. alias tbs="termux-open 'https://www.prepmate.in/monthly-magazine/' && termux-open 'https://www.iasparliament.com/downloads/current-affairs-magazine'"
  169. alias stv="termux-open https://youtu.be/8McTsOqeueE"
  170. function mp42m4a { ( while read f;do ffmpeg -i $f -map 0:a -c copy $f.m4a; done ) }
  171. 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 ) }
  172. function sscje { ( for ((i=$3; i<=$2; i++));do termux-open https://www.adda247.com/$1_$i.doc;done ) }
  173. function sscje { ( for ((i=$3; i<=$2; i++));do termux-open https://www.adda247.com/$1_$i.doc;done ) }
  174. function tplinks { ( while read f ;do termux-open $f;done ) }
  175. alias sdh="cd ~/storage/shared/Study-Materials/TheHinduAstxtfiles;lsd;pwd"
  176. alias sds="cd ~/storage/shared/StudyMaterials;lsd;pwd"
  177. alias sdso="cd ~//storage/shared/Study-Materials/Opinion-Articles-TH;lsd"
  178. 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') }
  179. alias athao="lynx -listonly -nonumbers -dump https://www.thehindu.com/opinion/feeder/default.rss | grep https://www.thehindu.com/opinion"
  180. #### | sed 's,<link>,,g' | sed 's,</link>,,g' | sed 's,            ,,g' | head -n $1 | sed '/opinion\/letters\|columns\|cartoon\|Readers-Editor/d'"
  181. 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') }
  182. function thaoe { ( sed -i '/cartoon\|cartoonscape/d' $1 ) }
  183. 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 ) }
  184. 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 ) }
  185. 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 ) }
  186. 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 ) }
  187. function aeio { (for i in *.txt ;do cat $i && echo -e "\n\n\n" ; done) }
  188. 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 ) }
  189. alias ndfs="tree -a -L 1 && tree -a"
  190. function thaoo { (echo -e Enter file name to compare previous one;read num;comm -3 <(sort $num.txt) <(sort $(($num-100)).txt) ) }
  191. 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 ) }
  192. function opn { ( sdso && tthao $1 ) }
  193. ###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'"""
  194.  
  195.  
Add Comment
Please, Sign In to add comment