public
Created

dep.awk and dep.sh

  • Download Gist
README.md
Markdown

dep.awk and dep.sh

Some code for a question on StackOverflow. see here.

Inputs taken from the list of Linux Kernel Contributors.

Output lines are numbered. Remove the i, from the print line to remove the numbers.

dep.awk
Awk
1 2 3 4 5 6 7 8 9
BEGIN { RS = "#matchee\n\n" }
 
$0 ~ /[a-zA-Z0-9]+/ {
split($0, current, "\n")
for (i = 1; i <= 45; i++) {
print i, current[i];
}
print "#matchee\n"
}
dep.sh
Shell
1 2 3 4 5 6 7 8 9 10 11 12 13
#!/bin/bash
# prints the first numlines lines within every block of text delimited by splitter
splitter=$1
numlines=$2
 
awk 'BEGIN { RS="'$1'\n\n" }
$0 ~ /[a-zA-Z0-9]+/ {
split($0, current, "\n")
for(i=1;i<='$numlines';i++) {
print i, current[i]
}
print "'$splitter'", "\n"
}' $3
input.txt
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255
DEPARTMENT-A
 
N: Matti Aarnio
E: mea@utu.fi
D: LILO for AHA1542, modularized several of drivers/net/,
D: dynamic SLIP devices, dynamic /proc/net/, true size /proc/ksyms,
D: and other hacks..
D: Documenting various parts of network subsystem (kernel side)
 
N: Werner Almesberger
E: werner.almesberger@lrc.di.epfl.ch
D: dosfs, LILO, some fd features, various other hacks here and there
S: Ecole Polytechnique Federale de Lausanne
S: DI-LRC
S: INR (Ecublens)
S: CH-1015 Lausanne
S: Switzerland
 
N: H. Peter Anvin
E: hpa@zytor.com
W: http://www.zytor.com/~hpa/
P: 2047/2A960705 BA 03 D3 2C 14 A8 A8 BD 1E DF FE 69 EE 35 BD 74
D: Author of the SYSLINUX boot loader, maintainer of the linux.* news
D: hierarchy and the Linux Device List; various kernel hacks
S: 4390 Albany Dr. #46
S: San Jose, California 95129
S: USA
 
N: Derek Atkins
E: warlord@MIT.EDU
D: Linux-AFS Port, random kernel hacker,
D: VFS fixes (new notify_change in particular)
D: Moving all VFS access checks into the file systems
S: MIT Room E15-341
S: 20 Ames Street
S: Cambridge, Massachusetts 02139
S: USA
 
N: John Aycock
E: aycock@cpsc.ucalgary.ca
D: Adaptec 274x driver
S: Department of Computer Science
S: University of Calgary
S: Calgary, Alberta, Canada
 
N: Ralf Baechle
E: ralf@gnu.ai.mit.edu
P: 1024/AF7B30C1 CF 97 C2 CC 6D AE A7 FE C8 BA 9C FC 88 DE 32 C3
D: Linux/MIPS port
D: Linux/68k hacker
S: Hauptstrasse 19
S: 79837 St. Blasien
S: Germany
 
N: Krishna Balasubramanian
E: balasub@cis.ohio-state.edu
D: Wrote SYS V IPC (part of standard kernel since 0.99.10)
 
N: Dario Ballabio
E: dario@milano.europe.dg.com
D: Author and maintainer of the Ultrastor 14F/34F SCSI driver
D: Author and maintainer of the EATA ISA/EISA SCSI driver
S: Data General Corporation
S: Milano
S: Italy
 
N: Arindam Banerji
E: axb@cse.nd.edu
D: Contributed ESDI driver routines needed to port LINUX to the PS/2 MCA.
S: Department of Computer Science & Eng.
S: University of Notre Dame
S: Notre Dame, Indiana
S: USA
 
N: Peter Bauer
E: 100136.3530@compuserve.com
D: Driver for depca-ethernet-board
S: 69259 Wilhemsfeld
S: Rainweg 15
S: Germany
 
#matchee
 
DEPARTMENT-B
 
N: Fred Baumgarten
E: dc6iq@insu1.etec.uni-karlsruhe.de
D: NET-2 & netstat(8)
S: Kandelstrasse 27
S: 76297 Stutensee
S: Germany
 
N: Donald Becker
E: becker@cesdis.gsfc.nasa.gov
D: General low-level networking hacker
D: Most of the ethercard drivers
D: Original author of the NFS server
S: USRA Center of Excellence in Space Data and Information Sciences
S: Code 930.5, Goddard Space Flight Center
S: Greenbelt, Maryland 20771
S: USA
 
N: Randolph Bentson
E: bentson@grieg.seaslug.org
D: author of driver for Cyclades Cyclom-Y async mux
S: 2500 Gilman Dr W, #404
S: Seattle, Washington 98119-2102
S: USA
 
N: Stephen R. van den Berg (AKA BuGless)
E: berg@pool.informatik.rwth-aachen.de
D: General kernel, gcc, and libc hacker
D: Specialisation: tweaking, ensuring portability, tweaking, cleaning,
D: tweaking and occasionally debugging :-)
S: Bouwensstraat 22
S: 6369 BG Simpelveld
S: The Netherlands
 
N: Hennus Bergman
E: hennus@sky.ow.nl [My uucp-fed Linux box at home]
D: Author and maintainer of the QIC-02 tape driver
S: The Netherlands
 
N: Ross Biro
E: bir7@leland.Stanford.Edu
D: Original author of the Linux networking code
 
N: Philip Blundell
E: pjb27@cam.ac.uk
E: pb@nexus.co.uk
E: phil@tazenda.demon.co.uk
D: Device driver hacking (especially EtherExpress16/3C505 net cards)
D: Some Linux/ARM stuff
S: Trinity College
S: Cambridge, UK. CB2 1TQ
 
#matchee
 
DEPARTMENT-C
N: Thomas Bogendoerfer
E: tsbogend@bigbug.franken.de
D: Lance32 driver
D: strace for Linux/Alpha
S: Baumgartenweg 5
S: 91452 Wilhermsdorf
S: Germany
 
N: Bill Bogstad
E: bogstad@cs.jhu.edu
D: Wrote /proc/self patch
S: Johns Hopkins University
S: Computer Science Department
S: Baltimore, Maryland 21218
S: USA
 
N: Axel Boldt
E: boldt@math.ucsb.edu
W: http://math-www.uni-paderborn.de/~axel/
D: Configuration help text support
D: Linux CD and Support Giveaway List
 
N: John Boyd
E: boyd@cis.ohio-state.edu
D: Co-author of wd7000 SCSI driver
S: 101 Curl Drive #591
S: Columbus, Ohio 43210
S: USA
 
N: Andries Brouwer
E: aeb@cwi.nl
D: random Linux hacker
S: Bessemerstraat 21
S: Amsterdam
S: The Netherlands
 
N: Ray Burr
E: ryb@nightmare.com
D: Original author of Amiga FFS filesystem
S: Orlando, Florida
S: USA
 
N: Michael Callahan
E: callahan@maths.ox.ac.uk
D: PPP for Linux
S: The Mathematical Institute
S: 25-29 St Giles
S: Oxford
S: United Kingdom
 
N: Remy Card
E: Remy.Card@masi.ibp.fr
E: Remy.Card@linux.org
D: Extended file system designer and developer
D: Second extended file system designer and developer
S: Institut Blaise Pascal
S: 4 Place Jussieu
S: 75252 Paris Cedex 05
S: France
 
N: Ed Carp
E: ecarp@netcom.com
D: uucp, elm, pine, pico port
D: cron, at(1) developer
S: 48287 Sawleaf
S: Fremont, California 94539
S: USA
 
N: Gordon Chaffee
E: chaffee@plateau.cs.berkeley.edu
D: vfat filesystem
S: 3674 Oakwood Terrace #201
S: Fremont, California 94536
S: USA
 
N: Chih-Jen Chang
E: chihjenc@scf.usc.edu
E: chihjen@iis.sinica.edu.tw
D: IGMP(Internet Group Management Protocol) version 2
S: 3F, 65 Tajen street
S: Tamsui town, Taipei county,
S: Taiwan 251, Republic of China
 
N: Raymond Chen
E: raymondc@microsoft.com
D: Author of Configure script
S: 14509 NE 39th Street #1096
S: Bellevue, Washington 98007
S: USA
 
N: Stuart Cheshire
E: cheshire@cs.stanford.edu
D: Author of Starmode Radio IP (STRIP) driver
D: Originator of design for new combined interrupt handlers
S: William Gates Department
S: Stanford University
S: Stanford, California 94305
S: USA
 
N: Juan Jose Ciarlante
E: jjciarla@raiz.uncu.edu.ar
E: juanjo@irriga.uncu.edu.ar
D: Network driver alias support
D: IP masq hashing and app modules
S: Las Cuevas 2385 - Bo Guemes
S: Las Heras, Mendoza CP 5539
S: Argentina
 
N: Hamish Coleman
E: hamish@zot.apana.org.au
D: SEEQ8005 network driver
S: 98 Paxton Street
S: East Malvern, Victoria, 3145
S: Australia
 
#matchee
output.txt
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140
1 DEPARTMENT-A
2
3 N: Matti Aarnio
4 E: mea@utu.fi
5 D: LILO for AHA1542, modularized several of drivers/net/,
6 D: dynamic SLIP devices, dynamic /proc/net/, true size /proc/ksyms,
7 D: and other hacks..
8 D: Documenting various parts of network subsystem (kernel side)
9
10 N: Werner Almesberger
11 E: werner.almesberger@lrc.di.epfl.ch
12 D: dosfs, LILO, some fd features, various other hacks here and there
13 S: Ecole Polytechnique Federale de Lausanne
14 S: DI-LRC
15 S: INR (Ecublens)
16 S: CH-1015 Lausanne
17 S: Switzerland
18
19 N: H. Peter Anvin
20 E: hpa@zytor.com
21 W: http://www.zytor.com/~hpa/
22 P: 2047/2A960705 BA 03 D3 2C 14 A8 A8 BD 1E DF FE 69 EE 35 BD 74
23 D: Author of the SYSLINUX boot loader, maintainer of the linux.* news
24 D: hierarchy and the Linux Device List; various kernel hacks
25 S: 4390 Albany Dr. #46
26 S: San Jose, California 95129
27 S: USA
28
29 N: Derek Atkins
30 E: warlord@MIT.EDU
31 D: Linux-AFS Port, random kernel hacker,
32 D: VFS fixes (new notify_change in particular)
33 D: Moving all VFS access checks into the file systems
34 S: MIT Room E15-341
35 S: 20 Ames Street
36 S: Cambridge, Massachusetts 02139
37 S: USA
38
39 N: John Aycock
40 E: aycock@cpsc.ucalgary.ca
41 D: Adaptec 274x driver
42 S: Department of Computer Science
43 S: University of Calgary
44 S: Calgary, Alberta, Canada
45
#matchee
 
1 DEPARTMENT-B
2
3 N: Fred Baumgarten
4 E: dc6iq@insu1.etec.uni-karlsruhe.de
5 D: NET-2 & netstat(8)
6 S: Kandelstrasse 27
7 S: 76297 Stutensee
8 S: Germany
9
10 N: Donald Becker
11 E: becker@cesdis.gsfc.nasa.gov
12 D: General low-level networking hacker
13 D: Most of the ethercard drivers
14 D: Original author of the NFS server
15 S: USRA Center of Excellence in Space Data and Information Sciences
16 S: Code 930.5, Goddard Space Flight Center
17 S: Greenbelt, Maryland 20771
18 S: USA
19
20 N: Randolph Bentson
21 E: bentson@grieg.seaslug.org
22 D: author of driver for Cyclades Cyclom-Y async mux
23 S: 2500 Gilman Dr W, #404
24 S: Seattle, Washington 98119-2102
25 S: USA
26
27 N: Stephen R. van den Berg (AKA BuGless)
28 E: berg@pool.informatik.rwth-aachen.de
29 D: General kernel, gcc, and libc hacker
30 D: Specialisation: tweaking, ensuring portability, tweaking, cleaning,
31 D: tweaking and occasionally debugging :-)
32 S: Bouwensstraat 22
33 S: 6369 BG Simpelveld
34 S: The Netherlands
35
36 N: Hennus Bergman
37 E: hennus@sky.ow.nl [My uucp-fed Linux box at home]
38 D: Author and maintainer of the QIC-02 tape driver
39 S: The Netherlands
40
41 N: Ross Biro
42 E: bir7@leland.Stanford.Edu
43 D: Original author of the Linux networking code
44
45 N: Philip Blundell
#matchee
 
1 DEPARTMENT-C
2 N: Thomas Bogendoerfer
3 E: tsbogend@bigbug.franken.de
4 D: Lance32 driver
5 D: strace for Linux/Alpha
6 S: Baumgartenweg 5
7 S: 91452 Wilhermsdorf
8 S: Germany
9
10 N: Bill Bogstad
11 E: bogstad@cs.jhu.edu
12 D: Wrote /proc/self patch
13 S: Johns Hopkins University
14 S: Computer Science Department
15 S: Baltimore, Maryland 21218
16 S: USA
17
18 N: Axel Boldt
19 E: boldt@math.ucsb.edu
20 W: http://math-www.uni-paderborn.de/~axel/
21 D: Configuration help text support
22 D: Linux CD and Support Giveaway List
23
24 N: John Boyd
25 E: boyd@cis.ohio-state.edu
26 D: Co-author of wd7000 SCSI driver
27 S: 101 Curl Drive #591
28 S: Columbus, Ohio 43210
29 S: USA
30
31 N: Andries Brouwer
32 E: aeb@cwi.nl
33 D: random Linux hacker
34 S: Bessemerstraat 21
35 S: Amsterdam
36 S: The Netherlands
37
38 N: Ray Burr
39 E: ryb@nightmare.com
40 D: Original author of Amiga FFS filesystem
41 S: Orlando, Florida
42 S: USA
43
44 N: Michael Callahan
45 E: callahan@maths.ox.ac.uk
#matchee

Please sign in to comment on this gist.

Something went wrong with that request. Please try again.