This is the mail archive of the cygwin-apps@cygwin.com mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Patch to generic-build-script for listing package files



On 25.10.2003 20:17, Harold L Hunt II wrote:
+list() {
+  (cd ${instdir} && \
+  find . -name "*" ! -type d | sed 's/\.\/\(.*\)/\1/' )

What about "find ! -type d | cut -c 2-" instead of "find . -name "*" ! -type d | sed 's/\.\/\(.*\)/\1/'"?

Differences:
- less characters :-)
- filenames started with "." are listed too

+}


Regards.

--
+-------------------------------------------+
| Marcel Telka   e-mail:   marcel@telka.sk  |
|                homepage: http://telka.sk/ |
|                jabber:   marcel@jabber.sk |
+-------------------------------------------+


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]