Beefy Boxes and Bandwidth Generously Provided by pair Networks
P is for Practical

Re^4: Listing of files using glob

by tobyink (Abbot)
on Jan 05, 2012 at 09:27 UTC ( #946345=note: print w/replies, xml ) Need Help??

in reply to Re^3: Listing of files using glob
in thread Listing of files using glob

I can't speak for AG87, but on Linux it's pretty easy to create a file with a pipe symbol in it.

touch 'foo|bar' && ls -l foo* && rm -i 'foo|bar'

If I recall correctly, the only character disallowed in Linux filenames is the slash.

Replies are listed 'Best First'.
Re^5: Listing of files using glob
by Corion (Pope) on Jan 05, 2012 at 09:41 UTC

    You also can't create a file with \0 in its name :).

      There are many characters, though, that you can use in file names, but you never should :-)

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://946345]
and the rats come out to play...

How do I use this? | Other CB clients
Other Users?
Others chilling in the Monastery: (5)
As of 2017-11-22 02:43 GMT
Find Nodes?
    Voting Booth?
    In order to be able to say "I know Perl", you must have:

    Results (314 votes). Check out past polls.