Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
G
gitlab-inlab
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
threeidiots
gitlab-inlab
Commits
71303707
Commit
71303707
authored
Aug 10, 2017
by
KANCHARLA RAMA MAHIDHAR REDDY
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
lab3
parent
b14f4bb2
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
18 additions
and
0 deletions
+18
-0
lab2/.gitkeep
lab2/.gitkeep
+0
-0
lab3/script2.sh
lab3/script2.sh
+18
-0
No files found.
lab2/.gitkeep
deleted
100644 → 0
View file @
b14f4bb2
lab3/script2.sh
0 → 100755
View file @
71303707
#!/bin/bash
grep
-roE
' [0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3} '
$1
>
temp
awk
-F
"."
'{num= $1;
if ($2 <= 255 && $3 <= 255 && $4 <= 255)
{
if (num < 128)
print $0 " A";
else if (num < 192)
print $0 " B";
else if (num < 224)
print $0 " C";
else if (num < 240)
print $0 " D";
else if(num < 248 )
print $0 " E";
else if(num <= 255)
print $0 " Not Defined" ;}}'
temp
rm
temp
\ 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