Beefy Boxes and Bandwidth Generously Provided by pair Networks
Do you know where your variables are?

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]
[thezip]: Is there an analogy for '&' (ie. run commandline process in background) for Windows commandline?
[Corion]: thezip: start "some title" path\to\that\ application, but that will open another console window
[Corion]: thezip: If you want to confuse your users, use system(1, "that\\command" );, which will make Perl launch it in the background
[Corion]: That will keep the console window open even though the user can't type into it anymore
[thezip]: So I have a script that generates a log file. After script completion, I want tohave VIM open this logfile.

How do I use this? | Other CB clients
Other Users?
Others exploiting the Monastery: (14)
As of 2017-03-27 18:46 GMT
Find Nodes?
    Voting Booth?
    Should Pluto Get Its Planethood Back?

    Results (321 votes). Check out past polls.