Questions tagged [shell]
A shell is software that lets users interact with the operating system, usually by typing at a command-line.
4 questions from the last 30 days
3
votes
1
answer
206
views
How to run shell commands via stdin?
I was working with a command like this:
ssh another_host <<EOF
set -x
command_a
command_b
run_framework
command_c
...
EOF
The odd thing was that only commands up to and including run_framework ...
2
votes
2
answers
76
views
How can I use Awk to match multiple lines and then concatenate other fields?
How can I use Awk to match multiple lines and then concatenate other fields?
1 Gen 1 75
1 Gen 1:1 10
1 Gen 1:1 11
2 Exo 1:1-2 13
2 Exo 1:1-2 14
3 Num 1:1-4 ...
2
votes
1
answer
173
views
How to get a list of existing files from a list of files?
I have a list of files (builddir/foo.s builddir/foo.i builddir/foo.ii) that happens to come from brace expansion of builddir/foo.{s,i{,i}} . I would like to symlink them into the current directory ...
0
votes
1
answer
136
views
Why doesn’t my sed command work properly? It replaces old values with errors
The sed command that I use is:
sed -i 's,oldvalue,newvalue,g' *.txt
When I use the above sed command with each of the below examples (1, 2, and 3), the results contain errors.
Example 1
Old value:
...