Commit c418cd86 authored by Samarth Joshi's avatar Samarth Joshi
parents fd9bac9b 5768960f
......@@ -6,5 +6,5 @@ sed -n '/http[s]\:\/\/www\.cse\.iitb\.ac\.in[/][~][a-z]\{5,15\}/p' temp >url
rm temp
#trimming $1
sed -i -e 's/'
sed -i -e 's/[\t ]\+/ /g' -e 's/[)]\{1\}/ )/g' -e 's/http[s]\?\:\/\/[^ ]\+/ /g' -e 's/[ ][^ ^@]\+[.]\{1\}\(com\|in\|org\|net\|co\|us\|edu\|gov\)\{1\}[/]\{0,1\}[^ ^@]\+[ ]\+/ /g' -e 's/[ ]\{1\}[)]\{1\}/)/g' $1
sed -i -e 's/[\t ]\+/ /g' -e 's/[)]\{1\}/ )/g' -e 's/http[s]\?\:\/\/[^ ]\+/ /g' -e 's/[ ][^ ^@]\+[.]\{1\}\(com\|in\|org\|net\|co\|us\|edu\|gov\|au\)\{1\}[/]\{0,1\}[^ ^@]\+[ ]\+/ /g' -e 's/[ ]\{1\}[)]\{1\}/)/g' $1
sed -i -e 's/[\t ]\+/ /g' $1
\ No newline at end of file
This diff is collapsed.
......@@ -4,3 +4,8 @@
203050048 Roshan Sahu sroshan@cse.iitb.ac.in Solved: Q2, Q5
Gitlab Link: https://git.cse.iitb.ac.in/sroshan/SpartanBotsAssignment3
References
[1]https://vds-admin.ru/sed-and-awk-101-hacks/chapter-3-regular-expressions
[2]https://stackoverflow.com/
[3]https://www.gnu.org/software/gawk/manual/gawk.html
[4]https://www.math.utah.edu/docs/info/gawk_5.html
[5]https://www.grymoire.com/Unix/Sed.html
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