Questions tagged [cat]

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

15 questions with no upvoted or accepted answers
Filter by
Sorted by
Tagged with
2
votes
0answers
506 views

Printing over ssh: “cat file | lpr” or “lpr file”

I am looking at how to print a file over ssh. Two websites (The Linux Documentation Project and Computer Hope) suggest the command "lpr" but both seem to suggest two different methods, with no obvious ...
1
vote
3answers
117 views

Cat command with variable in file name not working

I want to cat or read the contents of file giving absolute path that contains a variable but its not working.. None of the below commands are working. ($line here is the name of file) content=`(cat /...
1
vote
0answers
39 views

How to change the description of a catkin package?

What command should I use to change the description (line 5) cat package.xml<?xml version="1.0"?> <package format="2"> <name>beginner_tutorials</name> <version>0.0.0&...
1
vote
1answer
83 views

Disappearing files in the cat command

I am handling a rather large dataset. I have 238 files, for whcih I would like to import their content into excel. In order to do so, I am creating a combined txt file using cat *.pdb > pdb_all....
1
vote
1answer
510 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: ...
1
vote
1answer
609 views

Not able to see the file contents

I am using 12.04 Ubuntu cloud image.But when I am using vi for example vi p1.c to create a file I am not able to see what are the contents I am adding to it. But when I am using cat p1.c I am able to ...
0
votes
0answers
27 views

Using a cat * > function for files in a specific category

I'm trying to cat all .json files in the D:\Dumps\Dumps2019-10-17 directory and for the life of me I can't figure it out. Please help. Edit: I'm using the obunto terminal on a windows 10 os.
0
votes
1answer
354 views

Why I can't read file?

Please look at output: deploy@li445-201:~$ sudo ls -al /var/log/nginx/ total 152 drw-rw-r-- 2 root adm 4096 Mar 26 16:08 . drwxrwxr-x 14 root syslog 4096 Mar 26 06:25 .. -rw-r--r-- 1 ...
0
votes
0answers
77 views

Cat and awk Commands

What does these commands mean in linux? GBPUSD30MIN and USDJPY30MIN are text files with data having 4 columns and 1000 rows. cat GBPUSD30MIN | awk '{ print NF }' | uniq -c awk '{ print $4}' ...
0
votes
0answers
83 views

Data loss over ttyACM* in Ubuntu 14.04 whereas success on Ubuntu 16.04 when “cat” command is used

I have a development board which will have 3 ACM interfaces when connected to Ubuntu host and i want to transfer data from Host to Device over ttyACM3. I have followed the following procedure for ...
0
votes
0answers
108 views

Is there any way to get my scrollback history of terminal?

Is there any way to get my scrollback history of the terminal (not only a history of the terminal but also the file's data that I viewed in terminal using CAT command)?? I want to get the file data ...
0
votes
0answers
98 views

Echo and Cat output problem

I'm trying to run this script: #!/bin/bash for file in /home/dima/Downloads/dir/* do if [ -f "$file" ] then echo "SSS::################====================#####################" >> ...
0
votes
0answers
445 views

“cat *” (read all output) Crashes Terminal and Gedit

This command: cat * > cat_all.txt successfully results in the file cat_all.txt, as expected. However, the text file will not open in Gedit. The behavior is mostly freezing, screen-darkening, ...
0
votes
0answers
366 views

Want to save pulseaudio output as wav or mp3

Recently I have discovered cat file.bmp | padsp tee | aplay But I dont know, how to save the output of this command as audio file. If it would help, I have sox and lame software(I dont know how to ...
0
votes
1answer
344 views

Ubuntu 16.04 doesn't recognise Cat B25 phone external drive

Ubuntu 16.04, working on a Acer Aspire V5 laptop, can not recognise a CAT B25 phone plugged in through USB port. I already checked that a computer with Mac OS can absolutely recognise it (both phone ...