Skip to main content

All Questions

Tagged with
3 votes
0 answers
11k views

CMD equivalent of cat >> text.txt

type >> text.txt doesn't work on Windows. I want it to prompt me to enter text into the document and then allow me to finish by entering control + d.
maximilian2000's user avatar
1 vote
1 answer
3k views

How to overwrite with a pipe in unix

So I am attempting to overwrite using a pipe: //reads contents of file| turns lowercase to uppercase | changes $ to # | // then attempts to overwrite original file with new version cat ...
bordenE's user avatar
  • 11
0 votes
2 answers
44 views

shell - multiple text insertion into each line of a file

I have a text containing coordinates of points such as x, y and z, I would like to change each line to be like: Point{ (1000+linenumber) } = {x , y, z}; What I want is: for example for line 212 ...
user2090491's user avatar
0 votes
0 answers
146 views

Unix cat to Windows user

I uploaded about 6GB of video in 3 separate files created using the cat command on my Mac, thinking the recipient of those files was a Mac user as well. It turns out he's using Windows 8. How can he ...
dave_d's user avatar
  • 1
7 votes
2 answers
8k views

cat wc -l count lines line with defined line endings (e.g Mac OS X specific)

As any command-line user I sometimes want to count lines in text file with well known command: cat some_text_file | wc -l I face the problem on Mac OS X, which as far I have it studied is connected ...
andilabs's user avatar
  • 571
14 votes
4 answers
42k views

How can I stop cat output immediately despite massive output?

I'm looking for someway to stop the output to STDOUT when I realize a command is wrong. For instance, if I accidentally cat a very large file. Usually it will eventually stop if you hold down ctrl + c,...
CHK's user avatar
  • 587
10 votes
5 answers
32k views

How to display the file contents recursively?

I always have to submit the source codes in my printed assignment report. I have to copy and paste my course codes into the document and I find that it is an annoying task. I want to solve this "copy ...
user1022209's user avatar
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?
ThomasReggi's user avatar
21 votes
7 answers
15k views

Cat file to terminal at particular speed of lines per second

I'm lazy and I could write a script to do this, but I'm even too lazy to think of how to do it. I often do things like : cris$ python runexperiment.py > output.txt cris$ cat output.txt ...
Cris Stringfellow's user avatar
0 votes
1 answer
312 views

What is going wrong with cat

i have a very basic cat problem. I have 23 files, all is one line and around 100000 columns. I am trying to merge these one lines. I type the command cat test1 test2 > outcome The command line is not ...
user1007742's user avatar
413 votes
3 answers
1.0m views

What is the Windows equivalent of the Unix command cat?

I want to do exactly what unix "cat" does, but on my PC. Is there a simple equivalent command for the Windows command line? Specifically I want to create a file from all the files of a given type in ...
Kirt's user avatar
  • 7,391
1 vote
3 answers
590 views

What will happen when I 'cat' 'ksh'?

I used the following command in my unix box. $ cat ksh And it gave a rolling log of latin and greek letters and symbols and it kept on going with no signs of stopping. Eventually I had to close my ...
user avatar
51 votes
8 answers
13k views

What is the general consensus on "Useless use of cat"?

When I pipe multiple unix commands such as grep, sed, tr etc. I tend to specify the input file that is being processed using cat. So something like cat file | grep ... | awk ... | sed ... . But ...
arunkumar's user avatar
  • 623
9 votes
2 answers
61k views

How do I close a file that I created using cat > command?

I learning how to use git on a Mac and I'm trying to add a file in one of my branches by using the "cat > " command. The problem I'm having is that I want to end editing the file in the terminal but I ...
lampShade's user avatar
  • 499
3 votes
2 answers
237 views

Why does cat not use options the way I expect UNIX programs to use switches?

I have been a UNIX user for more years than I care to think about, and in that time I have been trained to expect that when contradictory switches are given to a program the last one wins. Recently I ...
Chas. Owens's user avatar
  • 2,562

15 30 50 per page