Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Thomas Blanc
scripts
Commits
55ea4b34
Commit
55ea4b34
authored
Apr 15, 2013
by
Pierre-Elliott Bécue
Browse files
[ethercode.sh] Bugfix + retrait des parenthèses useless
parent
7affa998
Changes
1
Hide whitespace changes
Inline
Side-by-side
utils/ethercodes.sh
View file @
55ea4b34
...
...
@@ -8,7 +8,7 @@ TEMPFILE=`tempfile`
# on évite de casser le dépôt darcs
umask
002
wget
-o
/dev/null
-O
$TEMPFILE
http://standards.ieee.org/regauth/oui/oui.txt
\
&&
awk
-F
'[\t ]*(hex)[ \t]*'
'(/(hex)/) {gsub("-",":",$1) ; print $1" "$2}'
<
$TEMPFILE
>
/usr/scripts/gestion/ethercodes.dat
\
&&
awk
-F
'[\t ]*(hex)[ \t]*'
'(/(hex)/) {gsub("-",":",$1) ;
{gsub("^ *", "", $1)}; {gsub("\\(", "", $1)}; {gsub("\\)", "", $2)};
print $1" "$2}'
<
$TEMPFILE
>
/usr/scripts/gestion/ethercodes.dat
\
&&
cd
/usr/scripts/gestion
\
&&
git commit
--author
=
"Cron Daemon <root@crans.org>"
-m
"[ethercodes.dat] Mise à jour du fichier vendeur"
ethercodes.dat
>
/dev/null
\
&&
git push
>
/dev/null
...
...
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