Originally Posted by
ssam
either escape the space with a slash, or put quotes around it
eg
Code:
cat file\ name.txt
cat "file name.txt"
i cannot think of any simpler way of doing this.
do you know about tab completion? (type the start of a file name and press tab, and bash will finishit for you). it is rare to have to actually type a whole file name.
Ohh yeah
I have this frequent problem:
A folder filled with files:
Code:
.
..
first text file.txt
second text file.txt
yet another file.txt
....
and finally the last file.txt
I want to concatenate all of them into one file like:
Code:
files=$(ls *.txt)
cat $files > all_files.txt
This obviously doesn't work and I haven't found a way yet, and I tried all the different 'quoting-style' options none worked.
On another note (you probably already know) Openoffice 3 is out, with import for pdf-files.
Bookmarks