Questions tagged [cat]
The cat command is a standard Unix program used to concatenate and display files. The name is from catenate, a synonym of concatenate.
1,523
questions
0
votes
2
answers
35
views
Using cat() inside warning() puts the message before the warning
I used cat() to create a warning message, but in the result the warning message comes before the "Warning message:" part. Is there a different way to create this warning message so that it ...
0
votes
1
answer
55
views
copy from text file to other text file , but not owerwiting first 2 lines [duplicate]
I would like to copy the contents of a text file has another text file but do not crush the first 2 lines of the other file, or copy and add the 2 lines to the new file
Exemple:
user1.txt:
Phill
Johne
...
2
votes
2
answers
61
views
How to cat text string and file in bash in way to preserve literal \newpage in output?
I have multiple markdown files that I am trying to concatenate into one markdown file in bash. I can concatenate markdown files and preserve “\newpage” lines, but when trying to add a group title via ...
0
votes
0
answers
9
views
cat merging CSV files ignores individual headers, but i need them
Sorry, very new to this. I'm trying to merge/ append 38 CSV files, but the subsequent headers always get removed. The files are not mine/ messy, and I do not know if the columns are in the same place ...
0
votes
1
answer
47
views
The newline (\n) is not working in END block in bash [duplicate]
I need to define the "\n" in END block as it will be passed to other bash script as an argument.
I have added an empty newline at the begin and at the end. But only the begin empty line (\n) ...
0
votes
0
answers
92
views
Different character using vim, cat and pbcopy
I have a file sample containing the following string when reading it with vim (in german language, converted from html using munpack):
benützt daÿs
if I cat that file, I get the following (correct) ...
0
votes
1
answer
34
views
How to open a split zip archive with more than 99 parts?
I think the problem is that when I concatenate the zip files before unzipping they are not in order because zip only uses one leading zero. For fewer than 100 files, the following works.
cat myzip.z* &...
0
votes
2
answers
101
views
cat and curl large JSON value from gitlab ci
There are many questions on how to post JSON via curl. And I am able to send one word as json but not the whole text.
My requirement is to comment a merge request when one job fail in our GitLab CI.
# ...
0
votes
0
answers
47
views
SwiftUI How can I get the correct font size for CATextLayer
I am using SWiftUI and have a video editing application . A person selects a video and we display it along with the date the video was taken . The initial overlay is size 14 and if the person saves ...
0
votes
1
answer
253
views
exec: "cat": executable file not found in $PATH: unknown.'
Failed to run image docker.io/hadolint/hadolint:v2.8.0 . Error: docker: Error response from daemon: failed to create task for container: failed to create shim task: OCI runtime create failed: run c ...
1
vote
2
answers
142
views
Display a blowfish encrypted file without vi(m)
I have a file I have encrypted in vi (vi -x myfile) with blowfish2 encryption (:setlocal cm=blowfish2). I can supply the password and edit the file with no problem.
If all I want to do is view the ...
0
votes
1
answer
426
views
How to read an open file through a file descriptor from proc?
I'm trying to learn how to work with proc and file descriptors. I want to start a process that opens a file, read the same file in parallel through a file descriptor from proc.
I tried to do this:
#!/...
0
votes
0
answers
14
views
Trying to categorize some columns and exclude others. Getting this error Cannot perform 'ror_' with a dtyped [object] array and scalar of type [bool]
I would like to exclude ratings column and correctYear column from getting categorized. I would like to categorize every other object type field but leave out these two because they are numeric values....
-1
votes
1
answer
77
views
If I execute a task from terminal it works, but within a script it don't...Why? [closed]
Tried every step from terminal, one by one. And they work, but when I execute
cat $dj_name | grep -Eo "(https)://[a-zA-Z0-9./?=_%:-]*.mp3*" | sort -u > $dj_name-tracks
in a script, the ...
-2
votes
1
answer
93
views
How can i use any bash command in bash function
I am trying to use ls , cat etc commands inside a bash function
Report()
{
ls $1 | sort -u
}
Report()
I am getting ls: command not found error when I run the function
Is it not possible to use ...