Scripts

From: <Sundar_Rajan_at_socgen-crosby.com>
Date: Thu, 07 May 1998 15:41:20 +0800

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.

            ********************************************************************
Received on Thu May 07 1998 - 09:45:37 NZST

This archive was generated by hypermail 2.4.0 : Wed Nov 08 2023 - 11:53:37 NZDT