Messages in this thread | | | Date | Wed, 23 Dec 1998 01:02:56 -0800 (PST) | From | Tim Smith <> | Subject | Re: /dev/one - why not /dev/repeat? |
| |
On Wed, 23 Dec 1998, Dave Cinege wrote: > > Anyone who thinks /dev/one or /dev/~zero or /dev/repeat is > > something that needs to be implemented to fill a great need must > > be embarrassingly unfamiliar with basic UNIX utilities. > > I write HEAVY DUTY scripts for LRP. All those scripts have to use are > ash, sed, and a multicall binary. (No not even bash) > > Sometimes you do not have a 200MB worth of utils to acompish the job.
You don't need 200 MB worth of utilities:
yes "What you want repeated" | tr -d \\n
That's 19k for "tr" and a little over 4k for "yes". (They both use libc, but you've already got that for ash and sed).
--Tim Smith
- 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/
| |