[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
RE: How can I call "notdir" on a file name that contains spaces?
From: |
CARTER-HITCHIN, David, FM |
Subject: |
RE: How can I call "notdir" on a file name that contains spaces? |
Date: |
Sat, 4 Mar 2006 09:22:16 -0000 |
Hi,
> The simplest way to do this is to convert every space in the
> file name to a ? (since ? won't appear in a real file name we can
> safely use it)
Although in practice that is generally true, that could be dangerous
assumption:
[host]-> touch ?file
[host]-> ls -l ?file
-rw-r--r-- 1 user group 0 Mar 4 09:15 ?file
The chances of anyone having ?'s in their filenames are approximately
equal, I'd say, to having spaces :-)
Cheers,
David Carter-Hitchin.
--
Royal Bank of Scotland
Interest Rate Derivatives IT
***********************************************************************************
The Royal Bank of Scotland plc. Registered in Scotland No 90312. Registered
Office: 36 St Andrew Square, Edinburgh EH2 2YB.
Authorized and regulated by the Financial Services Authority
This e-mail message is confidential and for use by the
addressee only. If the message is received by anyone other
than the addressee, please return the message to the sender
by replying to it and then delete the message from your
computer. Internet e-mails are not necessarily secure. The
Royal Bank of Scotland plc does not accept responsibility for
changes made to this message after it was sent.
Whilst all reasonable care has been taken to avoid the
transmission of viruses, it is the responsibility of the recipient to
ensure that the onward transmission, opening or use of this
message and any attachments will not adversely affect its
systems or data. No responsibility is accepted by The Royal
Bank of Scotland plc in this regard and the recipient should carry
out such virus and other checks as it considers appropriate.
Visit our websites at:
http://www.rbos.com
http://www.rbsmarkets.com
********************************************************************************