Wanted: How to strip off pathnames to obtain filenames.
Daniel R. Levy
levy at ttrdc.UUCP
Tue Sep 6 14:48:11 AEST 1988
In article <8129 at elsie.UUCP>, ado at elsie.UUCP (Arthur David Olson) writes:
[lotsa C code]
how 'bout
echo $FILENAME | awk -F/ '{print $NF}'
simple huh?
--
|------------Dan Levy------------| THE OPINIONS EXPRESSED HEREIN ARE MINE ONLY
| Bell Labs Area 61 (R.I.P., TTY)| AND ARE NOT TO BE IMPUTED TO AT&T.
| Skokie, Illinois |
|-----Path: att!ttbcad!levy-----|
More information about the Comp.lang.c
mailing list