karim0209

.bashrc

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