Linked Questions

0 votes
1 answer
969 views

I seek a simple explanation about the term "process substitution" aimed for general audience / non professional sysadmins, which do server environment maintenance for personal projects once ...
variable_expander's user avatar
1 vote
1 answer
189 views

I was reading this script someone wrotte and there is this line: comm -23 <(grep cat access.log) cats | mailx -s subject [email protected] I understand it to mean convert this output as if it was ...
Ulukai's user avatar
  • 195
13 votes
4 answers
9k views

I'm trying to do some tricks with dd. I thought it would be possible to store some hexvalues in a variable called "header" to pipe it into dd. My first step without a variable was this: $ echo -ne ...
Frank's user avatar
  • 131
13 votes
2 answers
5k views

For some commands, it is possible to specify certain input as either stdin or a command line argument. Specifically, suppose command can take stdin input and a filename as command line argument, and ...
Tim's user avatar
  • 107k
3 votes
3 answers
3k views

Good evening, I would like to filter a file's content with some piped commands and then write the result back to the same file. I know, I can't do that the way I wrote it. Hold on … This is the ...
Stphane's user avatar
  • 341
3 votes
2 answers
1k views

This link is relevant What's the difference between substitution and piping to bash but I am not quite understanding everything that is being said. What is the difference between piping command1 ...
RhythmInk's user avatar
  • 601
2 votes
2 answers
1k views

From old habits, I'm always redirecting "from left to right", eg. cat file | bar foo | bar I've noticed you can redirect "from right to left". However, is it possible to do this for the second form (...
forthrin's user avatar
  • 2,519
2 votes
1 answer
442 views

I often execute raw versions of remote Bash scripts in GitHub with this pattern: wget -O - https://raw.githubusercontent.com/<username>/<project>/<branch>/<path>/<file> | ...
variable_expander's user avatar
0 votes
1 answer
530 views

ntopng can handle multiple network interfaces and I've a script that takes the name of the interface and outputs it in to stdout. I can pipe this output into ntopng my_packet_tracer.sh | ntopng -i - ...
khashashin's user avatar
0 votes
4 answers
286 views

I have a numbered list of files like this: 01_file_name.log 01_file_name.txt 02_file_name.log 02_file_name.txt 03_file_name.log 03_file_name.txt 04_file_name.log 04_file_name.txt 05_file_name.log ...
nath's user avatar
  • 6,114
2 votes
1 answer
241 views

I basically want to find all git repos that have neither a .gitattributes nor a .gitignore file at the root. I used find . -type d '!' -exec test -e "{}/.gitignore" ';' -print to find it but it lists ...
Ashhar Hasan's user avatar
1 vote
1 answer
57 views

I'm pushing directories to my stack using a while loop that reads the contents of a file. I've tried two approaches that should be equivalent, but they behave different. Approach 1 export ...
Jorge Ricardo Alonso Fernández's user avatar