freebsd-skq/usr.bin
jmallett d3d2092758 Add a -i option to sed(1) to do inplace editing, to give us an alternative to
Perl for such things.  The key difference to Perl is that a backup extension
*MUST* be specified, because on one hand it isn't recommended to have options
which optionally take a parameter, and on the other hand, it'd be slightly
unpleasent to implement proper handling for that.

The difference between this and the version posted to developers@ is that it
does handle multiple files in argv after the getopt(3) handling "correctly",
in that the inplace editing-specific code has been moved out to a function,
and that function is used beyond the first file in our linked list.

This option has been documented as FreeBSD-specific in the manpage.

Reviewed by:	developers@ (got feedback from: des, fanf, sobomax, roberto,
		obrien)
MFC after:	1 week
2002-05-07 18:32:18 +00:00
..
apply Use `The .Nm utility' 2002-04-19 23:44:58 +00:00
ar Add .Pp before enumerating options 2002-04-19 23:18:18 +00:00
at Document the fact that at(1) is run through cron(8) and that this affects 2002-05-04 15:33:12 +00:00
awk Style. 2002-04-10 03:10:03 +00:00
banner remove __P 2002-03-22 01:22:50 +00:00
basename Use `The .Nm utility' 2002-04-19 23:44:58 +00:00
biff Use `The .Nm utility' 2002-04-19 23:44:58 +00:00
brandelf
bzip2
c89
calendar Add myself. 2002-05-07 11:09:40 +00:00
cap_mkdb Use `The .Nm utility' 2002-04-19 23:44:58 +00:00
chat Remove GCC-specific flags. 2002-04-28 13:53:38 +00:00
checknr Use `The .Nm utility'. Introduce options with well known sentence. 2002-04-19 23:23:28 +00:00
chflags Reorder for style. 2002-04-28 13:54:45 +00:00
chkey Use `The .Nm utility' 2002-04-19 23:44:58 +00:00
chpass Use `The .Nm utility' 2002-04-19 23:44:58 +00:00
cksum remove __P 2002-03-22 01:22:50 +00:00
cmp remove __P 2002-03-22 01:22:50 +00:00
col Use `The .Nm utility' 2002-04-19 23:44:58 +00:00
colcrt Use `The .Nm utility' 2002-04-19 23:44:58 +00:00
colldef Use `The .Nm utility' 2002-04-20 12:18:28 +00:00
colrm Use `The .Nm utility' 2002-04-19 23:44:58 +00:00
column remove __P 2002-03-22 01:22:50 +00:00
comm Use `The .Nm utility' 2002-04-19 23:44:58 +00:00
compile_et
compress Use `The .Nm utility' 2002-04-19 23:44:58 +00:00
csplit Add the csplit(1) utility, which splits files based on context, as specified 2002-05-02 07:54:04 +00:00
ctags Use `The .Nm utility' 2002-04-19 23:44:58 +00:00
cut
dig
dirname remove __P 2002-03-22 01:22:50 +00:00
dnskeygen
dnsquery
doscmd Usage style sweep: spell "usage" with a small 'u'. 2002-04-22 13:44:47 +00:00
du Use `The .Nm utility' 2002-04-19 23:44:58 +00:00
ee - Properly initialize the count_win when the user turns the info window 2002-05-06 00:25:36 +00:00
elf2aout Add a Makefile for this. 2002-04-22 04:08:01 +00:00
enigma Use `The .Nm utility' 2002-04-19 23:44:58 +00:00
env remove __P 2002-03-22 01:22:50 +00:00
expand Add the -t option, which allows tab stop positions to be specified similarly 2002-04-23 07:15:09 +00:00
false
fetch Usage style sweep: spell "usage" with a small 'u'. 2002-04-22 13:44:47 +00:00
file Use `The .Nm utility' 2002-04-19 23:44:58 +00:00
file2c Modernize my email address 2002-03-25 13:53:46 +00:00
find Use `The .Nm utility' 2002-04-20 12:18:28 +00:00
finger Use `The .Nm utility' 2002-04-19 23:44:58 +00:00
fmt Very minor whitespace nit. 2002-04-28 13:59:42 +00:00
fold Use `The .Nm utility' 2002-04-19 23:44:58 +00:00
from Introduce flags enumeration with standard 2002-03-26 12:15:31 +00:00
fstat Use `The .Nm utility' 2002-04-20 12:18:28 +00:00
fsync
ftp
gcore Use `The .Nm utility' 2002-04-19 23:44:58 +00:00
gencat Add FBSDID. Spelling. Remove unused includes. Check more malloc failures. 2002-03-26 12:39:08 +00:00
getconf
getopt Minor nit; return(foo) from main rather than exit(foo). 2002-04-28 14:04:24 +00:00
gprof Use `The .Nm utility' 2002-04-20 12:18:28 +00:00
head Fix VCS tags; ANSIfy functions 2002-04-28 13:50:54 +00:00
hesinfo Usage style sweep: spell "usage" with a small 'u'. 2002-04-22 13:44:47 +00:00
hexdump Use `The .Nm utility' 2002-04-19 23:44:58 +00:00
host
id remove __P 2002-03-22 01:22:50 +00:00
indent Use `The .Nm utility' 2002-04-20 12:18:28 +00:00
ipcrm Add some function prototypes to squash warnings. 2002-04-28 13:49:15 +00:00
ipcs Use `The .Nm utility' 2002-04-20 12:18:28 +00:00
join Easy warns fixes; sort out some types and me them a bit more consistent; 2002-04-28 13:46:40 +00:00
jot Use `The .Nm utility' 2002-04-20 12:18:28 +00:00
kdump I now don't seem to be able to reproduce the -DNOCLEAN buildworld 2002-04-11 14:49:32 +00:00
kenv Add a reference to the kenv(2) manpage. 2002-04-18 18:49:41 +00:00
keylogin Use `The .Nm utility' 2002-04-20 12:18:28 +00:00
keylogout Use `The .Nm utility' 2002-04-20 12:18:28 +00:00
killall Use `The .Nm utility' 2002-04-20 12:18:28 +00:00
ktrace Warnings fix; ANSIfy, constify, mark unused function parameter(s). 2002-04-28 13:00:16 +00:00
ktrdump Add a man page. 2002-04-02 04:26:37 +00:00
lam Use `The .Nm utility' 2002-04-20 12:18:28 +00:00
last Use `The .Nm utility' 2002-04-20 12:18:28 +00:00
lastcomm Use `The .Nm utility'. Add section number to .Xr. 2002-04-20 21:28:47 +00:00
ldd Warns; ANSIfy, constify and move declarations into a common header. 2002-04-28 12:55:35 +00:00
leave Use `The .Nm utility' 2002-04-20 12:18:28 +00:00
less
lessecho
lesskey
lex Back out rev. 1.6 (NOLIB bootstrap helper) OBE'd by Makefile.inc1,v 1.96. 2002-03-28 10:53:49 +00:00
limits Use `The .Nm utility' 2002-04-20 12:18:28 +00:00
locate remove __P 2002-03-22 01:22:50 +00:00
lock Use `The .Nm utility' 2002-04-20 12:18:28 +00:00
lockf Use `The .Nm utility' 2002-04-20 12:18:28 +00:00
logger .Nm is not required at the begining of this sentence. 2002-04-20 21:33:10 +00:00
login Don't use PAM_SILENT unless hushlogin is set (perforce change 10123) 2002-04-22 06:27:16 +00:00
logname remove __P 2002-03-22 01:22:50 +00:00
look Fix a const-char vs char issue. 2002-04-28 12:39:12 +00:00
lorder Use `The .Nm utility' 2002-04-20 12:18:28 +00:00
lsvfs Very minor whitespace nit. 2002-04-28 12:36:56 +00:00
m4 Rename eqrelval' which was renamed from eqrel' to quiet a shadow warning 2002-05-03 20:46:10 +00:00
mail Use `The .Nm utility' 2002-04-20 12:18:28 +00:00
make Fix make(1) behaviour regarding SysV-style substitution when given a nil 2002-05-05 19:04:58 +00:00
makewhatis
mesg Affect the first of stdin, stdout and stderr that is attached to a terminal. 2002-05-06 04:33:04 +00:00
minigzip Use `The .Nm utility' 2002-04-20 12:18:28 +00:00
mkdep Use `The .Nm utility' 2002-04-20 12:18:28 +00:00
mkfifo Use `The .Nm utility' 2002-04-20 12:18:28 +00:00
mklocale Declarations cleanup; make sure externs are in a common header. 2002-04-28 12:34:54 +00:00
mkstr warns fixes; ANSIfy, deregister, constify. 2002-04-28 12:28:41 +00:00
mktemp Use `The .Nm utility' 2002-04-20 12:18:28 +00:00
msgs Use `The .Nm utility' 2002-04-20 12:18:28 +00:00
mt Use `The .Nm utility' 2002-04-20 12:18:28 +00:00
ncal Easy warns fixes; constify. 2002-04-28 12:25:03 +00:00
ncplist Style fixes; whitespace and header order. 2002-04-28 12:21:31 +00:00
ncplogin Fix VCS inclusion and tidy up #includes. 2002-04-28 12:19:30 +00:00
netstat Cast to kill warnings. De-register. 2002-04-28 12:17:27 +00:00
newkey ANSIfy, VCS inclusions and some very minor style. 2002-04-28 12:09:33 +00:00
nfsstat remove __P 2002-03-22 01:33:25 +00:00
nice Use `The .Nm utility' 2002-04-20 12:18:28 +00:00
nl remove __P 2002-03-22 01:33:25 +00:00
nm Fix some easy warnings; ANSIfy, constify. 2002-04-28 12:04:20 +00:00
nohup remove __P 2002-03-22 01:33:25 +00:00
objformat Usage style sweep: spell "usage" with a small 'u'. 2002-04-22 13:44:47 +00:00
opieinfo
opiekey
opiepasswd
pagesize Use `The .Nm utility' 2002-04-20 12:18:28 +00:00
passwd Fix VCS inclusions. 2002-04-28 11:52:43 +00:00
paste More low hanging warnings fruit; ANSIfy, de-register, constify. 2002-04-28 11:51:03 +00:00
pr Add P1003.1-2001 -f and -p options. 2002-03-31 18:44:36 +00:00
printenv Use `The .Nm utility' 2002-04-20 12:18:28 +00:00
printf Handle numbers larger than QUAD_MAX for unsigned conversions correctly. 2002-04-25 01:10:11 +00:00
quota Fix some low-hanging fruit in the warnings department; ANSIfy functions, 2002-04-28 11:44:30 +00:00
ranlib ANSIfy functions, and move extern declarations into a shared header 2002-04-28 11:59:43 +00:00
renice o Fix an arguments number check in -n case. 2002-04-10 13:38:09 +00:00
rev remove __P 2002-03-22 01:33:25 +00:00
rlogin Easy warns fixes; use const, mark unused function parameters. Remove 2002-04-28 11:16:43 +00:00
rpcgen Use `The .Nm utility' 2002-04-20 12:18:28 +00:00
rpcinfo Usage style sweep: spell "usage" with a small 'u'. 2002-04-22 13:44:47 +00:00
rs Use __FBSDID, ANSIfy functions, fix const string. 2002-04-28 11:00:34 +00:00
rsh Use `The .Nm utility' 2002-04-20 12:18:28 +00:00
rup Style only; format function declarations, sort header includes, and 2002-04-28 10:49:15 +00:00
ruptime Use __FBSDID(), ANSIfy headings, use const/unsigned in minor but 2002-04-28 10:56:09 +00:00
rusers Trivial warnings fixes; staticise and use unsigned. 2002-04-28 11:13:20 +00:00
rwall
rwho remove __P 2002-03-22 01:33:25 +00:00
sasc remove __P 2002-03-22 01:42:45 +00:00
script Use `The .Nm utility' 2002-04-20 12:18:28 +00:00
sed Add a -i option to sed(1) to do inplace editing, to give us an alternative to 2002-05-07 18:32:18 +00:00
shar
showmount remove __P 2002-03-22 01:42:45 +00:00
size Use `The .Nm utility' 2002-04-20 12:18:28 +00:00
smbutil
sockstat Usage style sweep: spell "usage" with a small 'u'. 2002-04-22 13:44:47 +00:00
soelim Use `The .Nm utility' 2002-04-20 12:18:28 +00:00
split remove __P 2002-03-22 01:42:45 +00:00
strings Use `The .Nm utility' 2002-04-20 12:18:28 +00:00
strip Do not override the `install' target. 2002-04-29 10:28:11 +00:00
su Use `The .Nm utility' 2002-04-20 12:18:28 +00:00
symorder remove __P 2002-03-22 01:42:45 +00:00
systat Use `The .Nm utility' 2002-04-20 12:18:28 +00:00
tail Fix up vendor IDs. 2002-04-13 20:59:48 +00:00
talk Use `The .Nm utility' 2002-04-20 12:18:28 +00:00
tconv Use `The .Nm utility' 2002-04-20 12:18:28 +00:00
tcopy Use `The .Nm utility' 2002-04-20 12:18:28 +00:00
tee remove __P 2002-03-22 01:42:45 +00:00
telnet Usage style sweep: spell "usage" with a small 'u'. 2002-04-22 13:44:47 +00:00
tftp Backout copyright notice I broke by my previous commit. 2002-04-26 12:16:34 +00:00
time remove __P 2002-03-22 01:42:45 +00:00
tip Use `The .Nm utility' 2002-04-20 12:18:28 +00:00
top remove __P 2002-03-22 01:42:45 +00:00
touch remove __P 2002-03-22 01:42:45 +00:00
tput remove __P 2002-03-22 01:42:45 +00:00
tr remove __P 2002-03-22 01:42:45 +00:00
true Use `The .Nm utility' 2002-04-20 12:18:28 +00:00
truncate remove __P 2002-03-22 01:42:45 +00:00
truss Do not bother with #include <machine/psl.h> since it is just a stub file 2002-05-01 06:23:48 +00:00
tset Use `The .Nm utility' 2002-04-20 12:18:28 +00:00
tsort Use `The .Nm utility' 2002-04-20 12:18:28 +00:00
tty Use `The .Nm utility' 2002-04-20 12:18:28 +00:00
uac Use `The .Nm utility' 2002-04-20 12:18:28 +00:00
ul Use `The .Nm utility' 2002-04-20 12:18:28 +00:00
uname remove __P 2002-03-22 01:42:45 +00:00
unexpand Some minor nits exposed by the Open Group's VSC Lite verification suite: 2002-04-25 23:04:52 +00:00
unifdef Use `The .Nm utility' 2002-04-20 12:18:28 +00:00
uniq Use LC_ALL to pick collate 2002-04-19 08:16:01 +00:00
units
unvis Use `The .Nm utility' 2002-04-20 12:18:28 +00:00
usbhidctl Usage style sweep: spell "usage" with a small 'u'. 2002-04-22 13:44:47 +00:00
users Use `The .Nm utility' 2002-04-20 12:18:28 +00:00
uudecode Use fwrite(3) to write out the decoded information, as the b64 decoding stuff 2002-04-20 03:33:40 +00:00
uuencode Use `The .Nm utility' 2002-04-20 12:18:28 +00:00
vacation
vgrind Use `The .Nm utility' 2002-04-20 12:18:28 +00:00
vi remove __P 2002-03-22 01:42:45 +00:00
vis Use `The .Nm utility' 2002-04-20 12:18:28 +00:00
vmstat Remove malloc_type's ks_limit. 2002-04-15 04:05:53 +00:00
w remove __P 2002-03-22 01:42:45 +00:00
wall Use `The .Nm utility' 2002-04-20 12:18:28 +00:00
wc remove __P 2002-03-22 01:42:45 +00:00
what remove __P 2002-03-22 01:42:45 +00:00
whereis
which Use `The .Nm utility' 2002-04-20 12:18:28 +00:00
who remove __P 2002-03-22 01:42:45 +00:00
whois Use `The .Nm utility' 2002-04-20 12:18:28 +00:00
window Use `The .Nm utility' 2002-04-20 12:18:28 +00:00
write Use `The .Nm utility' 2002-04-20 12:18:28 +00:00
xargs -I and -J both set the same variable, replstr, to the string to replace with 2002-05-06 03:38:28 +00:00
xinstall Use `The .Nm utility' 2002-04-20 12:18:28 +00:00
xlint Make sure the file in Attic is really "dead". 2002-05-07 06:57:04 +00:00
xstr Use `The .Nm utility' 2002-04-20 12:18:28 +00:00
yacc Restore some of the original variable names, but fix the warnings their 2002-04-23 20:30:30 +00:00
yes Use `The .Nm utility' 2002-04-20 12:18:28 +00:00
ypcat Use `The .Nm utility' 2002-04-20 12:18:28 +00:00
ypmatch Use `The .Nm utility' 2002-04-20 12:18:28 +00:00
ypwhich Use `The .Nm utility' 2002-04-20 12:18:28 +00:00
Makefile Add the csplit(1) utility, which splits files based on context, as specified 2002-05-02 07:46:36 +00:00
Makefile.inc