Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
S
SpartanBotsAssignment3
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
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Roshan Rabinarayan
SpartanBotsAssignment3
Commits
8fa5cde1
Commit
8fa5cde1
authored
Sep 04, 2020
by
Roshan Rabinarayan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
added working version of q2
parent
5b251593
Changes
4
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
7 additions
and
7 deletions
+7
-7
q2/q2.sh
q2/q2.sh
+5
-5
q2/test.sh
q2/test.sh
+0
-0
q2/testcase/input/input1
q2/testcase/input/input1
+1
-1
q2/testcase/input/input1_cleaned
q2/testcase/input/input1_cleaned
+1
-1
No files found.
q2/q2.sh
View file @
8fa5cde1
...
...
@@ -2,9 +2,9 @@
#converting whitespaces to new line in temp file
sed
-e
's/[\t ]\+/\n/g'
-e
's/https/\nhttps/g'
$1
>
temp
#saving all urls
sed
-n
'/https\:\/\/www\.cse\.iitb\.ac\.in[/][~][^ ]\+/p'
temp
>
url
#removing all urls from inputfile
sed
-i
-e
's/http[s]\?\:\/\/[^ ]\+/ /g'
-e
's/[^ ]\+[.]\(com\|in\|org\|net\|co\|us\|edu\|gov\)[^ ]\?/ /g'
$1
sed
-i
-e
's/[\t ]\+/ /g'
$1
sed
-n
'/http[s]\:\/\/www\.cse\.iitb\.ac\.in[/][~][a-z]\{5,15\}/p'
temp
>
url
rm
temp
\ No newline at end of file
#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'
$1
\ No newline at end of file
q2/test
case/test
.sh
→
q2/test.sh
View file @
8fa5cde1
File moved
q2/testcase/input/input1
100755 → 100644
View file @
8fa5cde1
q2/testcase/input/input1_cleaned
100755 → 100644
View file @
8fa5cde1
This diff is collapsed.
Click to expand it.
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