Questions tagged [cat]

A UNIX utility for concatenating files or input streams together. Do not use for questions about the animal.

28 questions with no upvoted or accepted answers
Filter by
Sorted by
Tagged with
3 votes
0 answers
10k 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
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 ...
user14492's user avatar
  • 140
2 votes
0 answers
43 views

Cat with gun parallel does not continue as expected

Here is my code. file_name="all_parts" find parts/ -type f > ${file_name} while read part do echo processing ${part} cat ${part} | parallel -j 100 'wget {} -o logs/...
Jon Xu's user avatar
  • 21
2 votes
0 answers
3k views

the hash for the file is not present in the specified catalog file- Creating a .cat file for an edited .inf?

I got a rock candy xbox360 controller today and its not plug and play as an xbox 360 controller on pc. I edited the .inf file and now the driver may work, but i dont know how to make the .bat file ...
air's user avatar
  • 21
2 votes
0 answers
542 views

Linux: cat /dev/video0 TS into some kind of ring puffer

I want to cat a /dev/video0 device output (Transport Stream) into a temporary ring buffer. In fact i do not want that the file is growing over the time. Simultaneously access is not possible. So the ...
user155384's user avatar
1 vote
0 answers
653 views

cat through ssh does not work, it hangs on "debug2: exec request accepted on channel 0" and scp never finishes

I trying to print a file through ssh on CentOS7 but it does not work somehow : $ time timeout 60s ssh -vvv SERVER-01 cat /etc/yum.repos.d/CentOS-Base.repo OpenSSH_7.4p1, OpenSSL 1.0.2k-fips 26 Jan ...
SebMa's user avatar
  • 1,803
1 vote
1 answer
995 views

Is there a way to pass an ffmpeg command from a text file in Windows?

I was wondering if there was a way to pass one (or multiple) arguments from a text file for ffmpeg. I tried a bit here with this in powershell (expecting it to work like linux but to no avail ffmpeg -...
Jean's user avatar
  • 11
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
1 vote
1 answer
451 views

cat files from pipe

I have to join files to one original file, which was split. There is a catalog, in which there are a lot of files,but no every is necessary. I have file with md5sum, which contain md5sum files I have ...
diego9403's user avatar
  • 907
1 vote
0 answers
75 views

Cat playing with mouse broke my Windows/Explorer :( Cannot click buttons in most of standard apps/menus

My mouse was laying on a sofa (I was going to clean it a bit) and my cat suddenly decided to play with the mouse (while the start menu was opened). Nothing serious happened with it during these 10 ...
AlexP11223's user avatar
1 vote
3 answers
4k views

add new line after every end of file's contents while merging multiple files

I have written shell script to merge different file's contents I have created directories f1,f2,d1,d2 and files under them , I need to merge all files's contents : comand is (find /home/ah5024331/f1 ...
user's user avatar
  • 199
1 vote
1 answer
175 views

Empty line appears while merging different file contents in shell script

I have written shell script to merge different file's contents I have created directories f1,f2,d1,d2 and files under them , I need to merge all files's contents : comand is find /home/ah5024331/f1 /...
user's user avatar
  • 199
1 vote
1 answer
2k views

head and cat don't recognize Microsoft Excel text files

I have a large .xls file with 53760 rows and 19 columns. I saved it as Tab Delimited Text in order to pre-process it through command line tools and load it into R later. However, when I run head ...
Marcus Nunes's user avatar
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 ...
mwksl's user avatar
  • 11
1 vote
3 answers
2k views

Move multiple files from filename list to a new folder

I have a list of filename in list.txt, which have 'abc1.png, abc2.png, abc3.png....'. However, I don't know the directories where the files are. I want to find all files in the txt file, and move ...
user279816's user avatar
0 votes
1 answer
580 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 ...
Will Schubert's user avatar
0 votes
1 answer
651 views

Using cat in conky_parse doesn't work

I'm trying to show the name of my shell in conky. I can capture the name of the shell using this command: cat /proc/$$/comm But when I use this in my script.lua file, like this: text = 'Shell: ' .. ...
Amir Shabani's user avatar
0 votes
1 answer
31 views

How to add a counter starting from a number other than 1?

I have a file where I need to add 200 more lines, but I'd like to know how to renumber them automatically. The file has the following structure: col1\tcol2\tdb4444\tcol4\tcol5\tcol6\tcol7\tcol8\tcol9\...
Primo's user avatar
  • 11
0 votes
0 answers
4k views

How to sign drivers properly for Windows 10

I am currently developing drivers for Windows 10, and I also have a code-signing certificate. When I sign my files, they get the signature and a hash set in the properties. However, Windows 10 refuses ...
Erik's user avatar
  • 1,397
0 votes
1 answer
172 views

Adding Tag Data to File

For a security product (data loss prevention) my group is trying to tag files with specific keywords to allow for HR/Legal to specifically flag files for tracking by our DLP software. Currently the ...
Ranger's user avatar
  • 703
0 votes
2 answers
2k views

Recover text file that I deleted with "cat" command

I used cat > filename while not thinking about it, then hit ctrl + c and naturally enough the file is now empty... Is there a way to recover that file's contents?
Not Amused's user avatar
0 votes
1 answer
617 views

Piping a line of the file read with while read loop

I am trying to read each line of the file and then assign some parts of it to variables. A line itself is read as a variable so I need to process a variable input say for cat which seems to be ...
Jargal's user avatar
  • 1
0 votes
0 answers
1k views

cat > $FILE_NAME << EOF - Explanation of the inner workings

I know what this one does, I learned "pattern like" and just works. I also know: that > is a redirect to a file that << is also a redirect to file see below EOF is just a placeholder, when ...
Ely's user avatar
  • 169
0 votes
0 answers
556 views

How to uninstall screen (monitor / display) drivers?

While testing out some different computer screens (also called displays or monitors) on a Windows 7 SP1 system, I installed the .INF files for each screen. I also installed the .ICM (color matching ...
End Anti-Semitic Hate'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
0 votes
0 answers
159 views

Special and diacritic charactres using less, cat and other linux tools

I am using GNU bash, Version 4.1.10(4)-release (i686-pc-cygwin) and set up my .inputrc to allow for special characters and German umlauts etc.: set meta-flag on set convert-meta off set output-meta ...
Oliver's user avatar
  • 171
0 votes
1 answer
874 views

Why does echo work through pipe but not cat with msmtp?

This works: echo "yada yada" | msmtp [email protected] but not this: cat yadayada.txt | msmtp [email protected] which delivers the email with empty content. Why does echo work through pipe but not cat ...
user19496's user avatar
  • 1,490
0 votes
1 answer
907 views

Combining multiple data files with header while also adding a data column

I have multiple tab delimited data files that are separated by month in the format jan06.txt, feb06.txt, ..., dec07.txt. Within each file, it looks something like: Header1 Header2 Header3 ... Data1 ...
user1027169's user avatar