Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
U
unagi
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Vishal
unagi
Commits
ca2525fb
Commit
ca2525fb
authored
Aug 29, 2020
by
Keshav Agarwal
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
q5 updated
parent
afb041c6
Changes
4
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
6 additions
and
3 deletions
+6
-3
week2/OutLab/unagi/q5/.bashrc
week2/OutLab/unagi/q5/.bashrc
+1
-1
week2/OutLab/unagi/q5/output.png
week2/OutLab/unagi/q5/output.png
+0
-0
week2/OutLab/unagi/q5/q5.sh
week2/OutLab/unagi/q5/q5.sh
+1
-1
week2/OutLab/unagi/readme.txt
week2/OutLab/unagi/readme.txt
+4
-1
No files found.
week2/OutLab/unagi/q5/.bashrc
View file @
ca2525fb
...
...
@@ -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
View replaced file @
afb041c6
View file @
ca2525fb
14.3 KB
|
W:
|
H:
14.3 KB
|
W:
|
H:
2-up
Swipe
Onion skin
week2/OutLab/unagi/q5/q5.sh
View file @
ca2525fb
#!/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
week2/OutLab/unagi/readme.txt
View file @
ca2525fb
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
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment