diff options
author | dteske <dteske@FreeBSD.org> | 2015-02-09 19:16:19 +0000 |
---|---|---|
committer | dteske <dteske@FreeBSD.org> | 2015-02-09 19:16:19 +0000 |
commit | c89e68677f75dc9f615fc5cff9a258cfd6b6fc58 (patch) | |
tree | 04517aca88cb5a7971df3d55fe93792c51a1b1a9 /usr.sbin/bsdconfig | |
parent | 607f7dc27ab1a5df91ac7ab64fdecec75cf3356d (diff) | |
download | FreeBSD-src-c89e68677f75dc9f615fc5cff9a258cfd6b6fc58.zip FreeBSD-src-c89e68677f75dc9f615fc5cff9a258cfd6b6fc58.tar.gz |
Replace the only instance of sed(1) in bsdconfig(8) with awk(1).
MFC after: 3 days
Diffstat (limited to 'usr.sbin/bsdconfig')
-rw-r--r-- | usr.sbin/bsdconfig/share/keymap.subr | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/usr.sbin/bsdconfig/share/keymap.subr b/usr.sbin/bsdconfig/share/keymap.subr index d4f391c..41f59cf 100644 --- a/usr.sbin/bsdconfig/share/keymap.subr +++ b/usr.sbin/bsdconfig/share/keymap.subr @@ -219,7 +219,7 @@ f_keymap_get_all() echo -n "$k " # NOTE: Translate '8x8' to '8x08' before sending to # sort(1) so that things work out as we might expect. - debug= keymap_$k get desc | sed -e 's/8x8/8x08/g' + debug= keymap_$k get desc | awk 'gsub(/8x8/,"8x08")||1' done | sort -k2 | awk '{ printf "%s%s", (started ? " " : ""), $1; started = 1 }' |