tru64-unix-managers (formerly alpha-osf-managers) (1994-2012)
 help / color / mirror / Atom feed
From: Sundar_Rajan () socgen-crosby ! com
To: tru64-unix-managers
Subject: Scripts
Date: Thu, 07 May 1998 07:41:20 +0000	[thread overview]
Message-ID: <96078708811433.tru64-unix-managers.marc@archive.invalid> (raw)


Hello All,
     I am facing a problem in a script which squeezes multiple spaces into
a single space. This is required
frequently and still am not able to find a solution to this.

For Ex :

If I want to list all the files in a current directory of today's date then
,

ls -lR  | grep 'May  7'

it lists properly. The same when assigned to a variable it squeezes the
mutiple spaces in "one" space only.

i.e

TODAY='May     7';export TODAY
ls -lR  | grep $TODAY

it doesn't work.

How can we avoid squeezing on multiple spaces ??


Similarly , If I want to recursively find the to-day's files only ,  find
command doesn't give a right results.
I have tried all combinations.

Any help will be appreciated.

Thanks in advance.

Sunder



            ********************************************************************

The information contained in these documents may be confidential and is intended
for the exclusive use of the addressee designated above.  If you are not the
addressee, any disclosure, reproduction, or other dissemination or use of this
communication is strictly prohibited.  If you have received this transmission in
error please contact us immediately by telephone so that we can arrange for its
return.

            ********************************************************************

             reply	other threads:[~1998-05-07  7:41 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1998-05-07  7:41 Sundar_Rajan [this message]
  -- strict thread matches above, loose matches on Subject: below --
2001-11-06 13:29 Scripts Binkley Robert - rbinkl
1997-10-07 15:35 Scripts jdbrown
1997-06-04  0:14 Scripts Harvey Davis
1996-09-10 17:28 Scripts Mak Andrew
read-only archive

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox