sed not working on /proc files

Stefan Monnier (monnier.lists.linux.kernel@tequila.cs.yale.edu)
Mon, 26 Apr 1999 16:59:30 -0400


How do you explain the following problem (with 2.2.6):

# (sed 's/a/a/') </proc/modules
# (cat | sed 's/a/a/') </proc/modules
nfsd 147288 1 (autoclean)
nfs 27856 2 (autoclean)
lockd 29000 1 (autoclean) [nfsd nfs]
sunrpc 48492 1 (autoclean) [nfsd nfs lockd]
autofs 8872 1 (autoclean)
3c59x 17456 1 (autoclean)
opl3 10264 0
cs4232 2264 0
ad1848 15152 0 [cs4232]
uart401 5628 0 [cs4232]
sound 55080 0 [opl3 cs4232 ad1848 uart401]
soundcore 2208 6 [sound]
binfmt_misc 3108 0
st 23352 0
softdog 948 1
unix 10056 72 (autoclean)
#

It also happens on other /proc files (meminfo, tcp_syncookies, ...).

Stefan

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.tux.org/lkml/