1
vote
1answer
82 views

How do I create a new file with text outputted from a command?

I just want to create a file with the outputted text from a command, rather then copying and pasting & making a new file by hand. I'm on a unix machine - how do I do this?
0
votes
2answers
336 views

Terminal is Stuck in “cat”

A while back I recall attempting to install an updated version of Ruby on my Mac. I had an interest in the language and thought I would give it a go. I followed detailed instructions that lead me ...
3
votes
5answers
4k views

Concatenating files from multiple subdirectories

Say I have a directory structure that looks like this: file1.txt folder1/ file2.txt folder2/ file3.txt How can I concatenate file1.txt, file2.txt, and file3.txt into a single file? Edit: ...
5
votes
2answers
583 views

MacOSX 10.6.7 cuts off stdin at 1024 chars

I've written a little perl script that I invoke as follows: perl -pe'...' <a I wanted to copy the contents of the input file 'a' from a web browser (a whole wordpress blog entry, to be exact). ...
1
vote
1answer
760 views

Command to update terminal as file is updated

I'm looking for a way to have the access log for my nginx install scroll up the terminal as lines are added to the log. I think I need a command like cat access.log | diff but I'm not sure exactly ...