What's wrong here?
afile exefiles j toobig
lpr: afile: No such file or directory
shows that the file is there, doesn't it?
ls -l | cat
-v -t -e
-rw-rw-rw- 1 jerry 28 Mar 7 19:46 afile $
-rw-r--r-- 1 root 25179 Mar 4 20:34 exefiles$
-rw-rw-rw- 1 jerry 794 Mar 7 14:23 j$
-rw-r--r-- 1 root 100 Mar 5 18:24 toobig$
option marks the ends of lines with a
out past the start of the column.
Aha... the filename ends with a space.
Whitespace characters like TABs have the same problem, though the
option (on many UNIX versions) shows them as
if you're using a terminal.
, giving it a name without the space, type:
mv "afile " afile
tell the shell to include the space as part of the first argument
it passes to
The same quoting works for other UNIX commands like