home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!mcsun!Germany.EU.net!unido!quando!steimann
- From: steimann@quando.quantum.de (Ulrich Steimann)
- Newsgroups: comp.unix.questions
- Subject: Re: Redirecting the date as a file name
- Keywords: date multiple-spaces
- Message-ID: <1992Jul25.130621.9344@quando.quantum.de>
- Date: 25 Jul 92 13:06:21 GMT
- References: <bacon.711843971@odin> <1992Jul24.073019.4230@ericsson.se> <1992Jul24.212358.3310@news.arc.nasa.gov>
- Organization: Quantum Software GmbH, Dortmund, Germany
- Lines: 23
-
- In article <1992Jul24.212358.3310@news.arc.nasa.gov> rages@pan.arc.nasa.gov (kathy rages) writes:
- >This gives rise to a question, which I have yet to find an answer to.
- >How do you force the inclusion of two or more consecutive spaces in
- >a variable string?
- >
- >% date +%h" "%d
- >Jul 24
- >% set today = `date +%h" "%d`
- >% echo $today
- >Jul 24
- >
-
- Try: echo "$today"
- With `echo $today' the variable today is parsed by the shell. echo
- gets two arguments. If you put it into ", echo gets one argument.
-
- Greetings,
- UST
- --
- Ulrich Steimann, Quantum GmbH, D-4600 Dortmund | Warum heiraten ?
- email: steimann@quantum.de |
- FAX: 0231-75441-115 | Leasing ist doch
- -----------------------------------------------| so einfach !
-