Hi,
 I'm a bit surprised that this doesn't work

_       _ _(_)_     |  A fresh approach to technical computing
  (_)     | (_) (_)    |  Documentation: http://docs.julialang.org
   _ _   _| |_  __ _   |  Type "help()" to list help topics
  | | | | | | |/ _` |  |
  | | |_| | | | (_| |  |  Version 0.2.0 (2013-11-16 23:44 UTC)
 _/ |\__'_|_|_|\__'_|  |  Official http://julialang.org release
|__/                   |  x86_64-apple-darwin12.5.0

julia> ;ls
file1.txt file2.txt file3.txt file4.txt file5.txt

julia> ;ls *.txt
file1.txt file2.txt file3.txt file4.txt file5.txt

julia> run(`ls *.txt`)
ls: *.txt: No such file or directory
ERROR: failed process: Process(`ls *.txt`, ProcessExited(1)) [1]
 in pipeline_error at process.jl:476
 in run at process.jl:453


How do I use wildcards in conjunction with run(`ls ..`)? I am trying get a 
list of files matching a certain pattern that I will then do some 
processing on. In other words, I would like to do something like this:

files = readall(`ls file*.txt`)


 

 

Reply via email to