× The internal search function is temporarily non-functional. The current search engine is no longer viable and we are researching alternatives.
As a stop gap measure, we are using Google's custom search engine service.
If you know of an easy to use, open source, search engine ... please contact support@midrange.com.



Sounds like a problem I had. I >believe< that the shell is breaking the line
based on the value of the environment variable IFS. Typically, the variable is
set for a tab, a space, and a new line. Try wrapping it in double quotes. And,
if that does not work, change the IFS variable, like this:

IFSSAVE=$IFS
IFS=

(do stuff)
IFS=$IFSSAVE

What I tried to do, above, was set IFS to a tab and a newline. Looks odd in an
email. Then, the saved IFS value is restored for other uses in the shell.

John McKee

Quoting rob@xxxxxxxxx:

Ok, so we got the beginning of this
/FTP/GDI/EQUIPMENTVENDORS/FROMGDI/GermanyAssyLine/IRT - Walldurn.avi
being truncated to
./GDI/EQUIPMENTVENDORS/FROMGDI/GermanyAssyLine/IRT
figured out. We now still have two problems.

1 - Why did the end get truncated? Is ls or awk not handling spaces and
whatnot in the file name? If so, what's the workaround?

2 - Why did the dates get formatted sporadically?
Mar/04/2008
Jun/02/04:44



Rob Berendt
--
Group Dekko Services, LLC
Dept 01.073
Dock 108
6928N 400E
Kendallville, IN 46755
http://www.dekko.com





From:
"Porterfield, Sean" <SPorterfield@xxxxxxxxxxxxxxxxxxxxxxx>
To:
Midrange Systems Technical Discussion <midrange-l@xxxxxxxxxxxx>
Date:
06/02/2009 05:37 PM
Subject:
RE: qsh find command -size +20M
Sent by:
midrange-l-bounces@xxxxxxxxxxxx



The . After find means "start at the current directory" - is /FTP your
current directory? (Type PWD to find your current directory.) If you
want everything, replace the . with / or specify another location (like
`find /FTP`)
--
Sean Porterfield


-----Original Message-----
From: midrange-l-bounces@xxxxxxxxxxxx [
mailto:midrange-l-bounces@xxxxxxxxxxxx] On Behalf Of rob@xxxxxxxxx
Sent: Tuesday, June 02, 2009 16:52
To: Midrange Systems Technical Discussion
Subject: Re: qsh find command -size +20M

Well I pretty much got this to work now
find . -type f -size +20M -exec ls -l {} \; | awk '{ print $9 "," $5 ","
$6"/"$7"/"$8 }' > /rob/bigfiles2.csv

Had to use binary to ftp that down. Ascii looked like gibberish
(CCSID=37).

Seems like the first column, which is the directory and the file name, is
functioning as a "midstring". IOW I may be missing stuff off of the front
and the back. For example, this file
/FTP/GDI/EQUIPMENTVENDORS/FROMGDI/GermanyAssyLine/IRT - Walldurn.avi
appears as ./GDI/EQUIPMENTVENDORS/FROMGDI/GermanyAssyLine/IRT

The other issue is the sporadic formatting of the dates:
Mar/04/2008
Jun/02/04:44

Rob Berendt
--
Group Dekko Services, LLC
Dept 01.073
Dock 108
6928N 400E
Kendallville, IN 46755
http://www.dekko.com

This email is confidential, intended only for the named recipient(s) above
and may contain information that is privileged. If you have received this
message in error or are not the named recipient(s), please notify the
sender immediately and delete this email message from your computer as any
and all unauthorized distribution or use of this message is strictly
prohibited. Thank you.
--
This is the Midrange Systems Technical Discussion (MIDRANGE-L) mailing
list
To post a message email: MIDRANGE-L@xxxxxxxxxxxx
To subscribe, unsubscribe, or change list options,
visit: http://lists.midrange.com/mailman/listinfo/midrange-l
or email: MIDRANGE-L-request@xxxxxxxxxxxx
Before posting, please take a moment to review the archives
at http://archive.midrange.com/midrange-l.



--
This is the Midrange Systems Technical Discussion (MIDRANGE-L) mailing list
To post a message email: MIDRANGE-L@xxxxxxxxxxxx
To subscribe, unsubscribe, or change list options,
visit: http://lists.midrange.com/mailman/listinfo/midrange-l
or email: MIDRANGE-L-request@xxxxxxxxxxxx
Before posting, please take a moment to review the archives
at http://archive.midrange.com/midrange-l.






As an Amazon Associate we earn from qualifying purchases.

This thread ...

Replies:

Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].

Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.