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
d2f40f50
Commit
d2f40f50
authored
Sep 05, 2020
by
Roshan Rabinarayan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
modified q3 for mawk
parent
5768960f
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
1 deletion
+3
-1
q3/q3.sh
q3/q3.sh
+3
-1
No files found.
q3/q3.sh
100644 → 100755
View file @
d2f40f50
sed
's/\([^ ]\) /\1 \n /g'
$1
|
awk
'/\s*[A-Za-z]+-[0-9]{3}-[0-9]{8}\s*$/'
|
awk
'NR==FNR{a[$1]=$2", "$3} NR!=FNR{print $1" "$2"-"$3" "a[$2]}'
FS
=
" ?
\t
+"
STD_Codes_list
FS
=
"-"
- |
awk
'!/00000000/'
-
\ No newline at end of file
sed
's/\([^ ]\) /\1 \n /g'
$1
|
awk
'/ *[a-zA-Z]+-[0-9][0-9][0-9]-[0-9][0-9][0-9][0-9][0-9][0-9][0-9][0-9] *$/'
|
awk
'NR==FNR{a[$1]=$2", "$3} NR!=FNR{print $1" "$2"-"$3" "a[$2]}'
FS
=
" ?
\t
+"
STD_Codes_list
FS
=
"-"
- |
awk
'!/00000000/'
-
# sed 's/\([^ ]\) /\1 \n /g' testcase/input3 | awk '/ *[a-zA-Z]+-[0-9][0-9][0-9]-[0-9][0-9][0-9][0-9][0-9][0-9][0-9][0-9] *$/'
\ 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