Using imbedded commands inside expr(1)
Paul Gerwitz
gerwitz at kodak.com
Thu Nov 8 06:06:52 AEST 1990
I seem to be having trouble using expr. The following dies:
test=`expr `tail +3 file` + 1`
Basically get a numeric value from a file and increment it, putting the
result in a shell variable.
I have tried all kinds of convolutions of quoting etc.
Temporarily we have broken it up into several seperate statements.
Any clues ??
Running HP-UX at 7.0 using ksh.
--
+----------------------------------------------------------------------------+
| Paul F Gerwitz WA2WPI | SMTP: gerwitz at kodak.com |
| Eastman Kodak Co | UUCP: ..uunet!atexnet!kodak!eastman!gerwitz |
+----------------------------------------------------------------------------+
More information about the Comp.unix.shell
mailing list