linux - cat using relative paths on mac -


I'm trying cat 4 files in a new file below a directory, below a directory Also:

  cat./dira/file.txt ./dirb/file.txt ./dirc/file.txt./dird/file.txt & gt; ./dire/file.txt   

I can get this to work from the terminal, but not in the following:

  i `ls in - D prefix * `cd $ i pwd a cat ./dira/file.txt ./dirb/file.txt ./dirc/file.txt ./dird/file.txt & gt; /dire/file.txt done   

where pwd prints the correct directory. I get an error: -bash: one: command not found .

An non-breaking location at the beginning of a line in your file (It is easily done by typing option-space from accident during editing) Shell will consider that word and will try to run non-breaking space as an order; This "bash :: command not found" error is what you see.

Comments