cat : A Linux Command Line tool , is used to view the contents of a .txt file.

learn more… | top users | synonyms

1
vote
2answers
94 views

cat command replace text Linux shell script

I have shell script file. In there is code like: <tag>port:8080</tag>. I want to replace this code line with another code line: <tag>port:3128</tag>. How do I do that? I used ...
1
vote
2answers
36 views

How to display line numbers with pygmentize

I often use the command pygmentize filename.py to show color source files with code formatting. This works like a charm. I now also want to show line numbers like cat -n filename.py does. I read ...
0
votes
1answer
42 views

ERROR : [cat: File does not exist] I can't open hadoop output file in 14.04

I have installed hadoop-1.0.3 in my system(14.04), followed this tutorial. And I successfully run an sample mapreduce program for wordcount as follows, hadoopuser@arul-PC:/usr/local/hadoop$ ...
1
vote
1answer
218 views

How do I write a script to output an html file?

What am I doing wrong in this script? #!/bin/bash cat > /tmp/flash-viewer.htm <<- _EOF_ <HTML><HEAD><TITLE>Flash Viewer</TITLE></HEAD><BODY> <object ...
1
vote
1answer
50 views

One command for ls and cat functionality?

Okay guys, this is an experimental question warning! I often confuse cat and ls when quickly working on the console. Not because I forget their meanings, no. Just because I type without deeply ...
1
vote
1answer
65 views

What is the correct output of cat /etc/apt/sources.list

I have ubuntu 12.04 lts and i need the correct output because i edited it because it wasn't working but it has only made it worse thank you for your help
22
votes
2answers
1k views

What's wrong with my cat command? [closed]

I lent a friend a computer with Ubuntu 12.04 LTS on it, and he messed up the cat command. $ cat testfile.txt cat: meow! $ Can someone tell me how to fix this? please? Output of which cat: ...
2
votes
2answers
123 views

Cat to named pipe causes hang

I'm attempting some streaming with FFMpeg, and I think I have finally found the solution I need to screen blanking. This requires writing PNG's to a named pipe and then having FFMpeg read them as an ...
9
votes
3answers
2k views

Difference between cat and sudo cat? [duplicate]

Can you tell me what the difference is between cat and sudo cat? All I know so far is that cat is used for displaying contents of file and concatenation.
2
votes
1answer
249 views

omit filenames in grep

I am greping a string from multiple files, but the one undesired side effect, is the filename prefacing the output. How can I suppress the filename outputs using only grep? $ grep -i lp lpNet* ...
1
vote
1answer
1k views

cat: write error: Broken pipe

I'm running a command: cat urls.txt | xargs -L 1 -P 5 timeout 40 wget This downloads all the URLs in urls.txt This used to work fine, but recently I changed the URLs I am downloading from ...
0
votes
1answer
24 views

Can I discover the format of archive?

Not long I have decided to make a compress of my archives .deb / tar.gz, on only one archive. No problem I compress, and I used split command to break that archive in many parts to (upload - backup) ...
3
votes
3answers
101 views

cat and Pipe to Run Command Won't Take Two Arguments

I have been using this command: cat urls.txt | xargs -n 1 -P 10 wget -q to download text files of URLs. This worked fine when my URL file was like: http://domain1.com/page.html ...
20
votes
6answers
2k views

Can `cat` show files using code markup in colors?

Sometimes I quickly want to view the contents of a file from the command line. For this I of course use cat, but it is often source files in Python, Java or simple HTML. For these files it would be ...
1
vote
1answer
70 views

Terminal in Cat Mode says -s: command not found

awhile ago i was installing something and doing some stuff with terminal, and i think i messed it up. on the terminal app it says "Terminal - cat - 80x24" then inside terminal it says: Last login: ...
0
votes
0answers
50 views

proxy setting and updating after that

I have correctly set up the proxy in my terminal and it's not showing any trouble but after that i try to update the system by the command "apt-get update" and it's showing 0% [Connecting to ...
1
vote
2answers
131 views

What is the right way to exit the interactive CLI of the command “rev”?

Please check the code below and notice the difference between exiting the cat command and rev command heer@heer-pc:~$ cat mark mark ^C heer@heer-pc:~$ rev mark kram ^Cheer@heer-pc:~$
1
vote
1answer
133 views

How to read the all files in a directory and display them using cat command?

I have a directory employer/. In this there are 5 .txt files. I want to combine the data from all 5 files and show into the command prompt using cat or create another file and save the result in that ...