All Questions
8
questions
0
votes
1
answer
613
views
How to cat a local file to a remote printer using Linux
On DOS we can:
NET USE LPT1: \\remote-pc\shared_printer
COPY file.txt > LPT1
I know on Linux I can print to local usb printer:
cat file.txt > /dev/usb/lp2
But how to print to a remote (Linux ...
2
votes
1
answer
5k
views
how do i combine 2 pdf documents into 1 in the terminal?
I have 2 files written in Markdown which I used pandoc to convert into pdf. I now need to combine the 2 into one single document(lets say I have many that I need to combine into a single pdf). Is ...
3
votes
1
answer
2k
views
What is the "next cell character" when coping and pasting from a table?
You know when you copy a row from a table and paste it into another one it is in the correct place. So what is the character that is between cell values when this operation is performed.
Eg. I have ...
1
vote
1
answer
120
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?
1
vote
2
answers
3k
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 ...
5
votes
5
answers
16k
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: ...
10
votes
2
answers
4k
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
1
answer
2k
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 ...