#148 closed defect (fixed)
Shorter fileutils sed
| Reported by: | Owned by: | ||
|---|---|---|---|
| Priority: | normal | Milestone: | |
| Component: | Book | Version: | CVS |
| Severity: | normal | Keywords: | |
| Cc: |
Description
Current:
cp -f lib/Makefile.in lib/Makefile.in.backup &&
sed 's/\(.*\)\(fopen-safer\.c \)
/\1\2atexit.c
/' \
lib/Makefile.in > tmp &&
sed 's/\(.*\)\(idcache\$U\.\$.*\)
/\1\2atexit$U.$(OBJEXT)
/' \
tmp > lib/Makefile.in
New with only one sed command:
cp -f lib/Makefile.in lib/Makefile.in.backup &&
sed -e 's/\(.*\)\(fopen-safer\.c \)
/\1\2atexit.c
/' \
-e 's/\(.*\)\(idcache\$U\.\$.*\)
/\1\2atexit$U.$(OBJEXT)
/' \ lib/Makefile.in > lib/Makefile.in~ &&
mv lib/Makefile.in~ lib/Makefile.in
Change History (2)
comment:1 by , 24 years ago
| Owner: | changed from to |
|---|---|
| Status: | new → assigned |
comment:2 by , 24 years ago
| Resolution: | → fixed |
|---|---|
| Status: | assigned → closed |
Note:
See TracTickets
for help on using tickets.

A diff on the two lib/Makefile.in files created by the commands before and after the change show now difference whatsoever, so this "one sed does all" works fine.