Commit ca2525fb authored by Keshav Agarwal's avatar Keshav Agarwal

q5 updated

parent afb041c6
......@@ -92,7 +92,7 @@ alias ll='ls -alF'
alias la='ls -A'
alias l='ls -CF'
alias lsz='ls -lh | awk '\''NR>1 {print $9 "," $5}'\'' | column -s '\'','\'' -t'
alias getcourses='wget https://www.cse.iitb.ac.in/archive/page135 -qO- | grep -o "> CS [^<]* <" | grep -o "[^<+^>]*" | sort | uniq'
alias getcourses='wget https://www.cse.iitb.ac.in/archive/page135 -qO- | grep -o "> CS [^<]* <" | sort | uniq | awk '\''{print substr($0,3,length($0)-4)}'\'
# Add an "alert" alias for long running commands. Use like so:
# sleep 10; alert
......
week2/OutLab/unagi/q5/output.png

14.3 KB | W: | H:

week2/OutLab/unagi/q5/output.png

14.3 KB | W: | H:

week2/OutLab/unagi/q5/output.png
week2/OutLab/unagi/q5/output.png
week2/OutLab/unagi/q5/output.png
week2/OutLab/unagi/q5/output.png
  • 2-up
  • Swipe
  • Onion skin
#!/bin/bash
wget https://www.cse.iitb.ac.in/archive/page135 -qO- | grep -o "> CS [^<]* <" | grep -o "[^<+^>]*" | sort | uniq
\ No newline at end of file
wget https://www.cse.iitb.ac.in/archive/page135 -qO- | grep -o "> CS [^<]* <" | sort | uniq | awk '{print substr($0,3,length($0)-4)}'
\ No newline at end of file
Refernces:
https://makandracards.com/makandra/38045-bash-print-columns-a-table
https://man7.org/linux/man-pages/man1/ls.1.html
https://stackoverflow.com/questions/30123463/hide-wget-output-in-linux
https://www.cyberciti.biz/faq/grep-regular-expressions/
https://man7.org/linux/man-pages/man1/grep.1.html
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment