repo.or.cz
/
geda-gaf
/
peter-b.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
Updated the shipped documentation from the online wiki
[geda-gaf/peter-b.git]
/
gnetlist
/
scripts
/
bom_xref.sh
blob
75de459aeec7e77bae6c6860da858881307e85c2
1
#!/bin/sh
2
# ha ha
3
4
if
[
-z
$1
] ;
then
5
echo
"usage
$0
geda-bom # output on stdout"
6
exit -1
7
fi
8
cat
$1
|
sort
-k1
,
1
|\
9
awk
'!/device/{printf("%-5s %-20s %-20s %-20s
\n
", toupper(
$1
), toupper(
$2
), toupper(
$3
), toupper(
$4
));} /device/{}'
10