1answer.
Ask question
Login Signup
Ask question
All categories
  • English
  • Mathematics
  • Social Studies
  • Business
  • History
  • Health
  • Geography
  • Biology
  • Physics
  • Chemistry
  • Computers and Technology
  • Arts
  • World Languages
  • Spanish
  • French
  • German
  • Advanced Placement (AP)
  • SAT
  • Medicine
  • Law
  • Engineering
blondinia [14]
3 years ago
10

Modify the script, problem2.sh that does the following: 1. Creates a new variable (it does not have to be an environment variabl

e) that is OUTFILE concatenated with ".out" 2. Prints out the value of this new variable (Hint: Use the echo command to print in bash.) 3. Creates a new variable that is OUTFILE concatenated with ".err" 4. Prints out the value of this new variable (Hint: Use the echo command to print in bash.) 5. Write a one line bash command that: 1. Runs cmd1 getting the input from INFILE 2. Pipes the output to cmd3 redirecting stdout (but not stderr!) to the filename you created in step 1, and stderr (but not stdout!) to the filename you created in step 3. When running with INFILE set to test
Computers and Technology
1 answer:
Marat540 [252]3 years ago
7 0

<u>Solution and Explanation:</u>

problem2.sh

#!/usr/bin/env bash

# output file name for stdout

FILEOUT='test.out'

echo $FILEOUT

# output file name for stderr

FILEERR='test.err'

echo $FILEERR

# opening test.in and pipe to cmd1 and output of cmd1 pipe to cmd3 and giving file for stdout and stderr

cat test.in | ./cmd1 | ./cmd3 > $FILEOUT 2>$FILEERR

# END OF SCRIPT

# NOTE: it is to make sure all files in same directory including test.in

After running problem2.sh

$ ./problem2.sh

test.out

test.err

You might be interested in
A student dissolves some solid sodium hydroxide in a beaker of water.
STALIN [3.7K]
C water is the soulute
7 0
3 years ago
Read 2 more answers
T in your computer will you use to plug in your camera?
Gnom [1K]
A tool in your computer that you will use to plug in your camera is the Universal Serial Bus (USB). If you camera has this chord and it is an Universal Serial Bus type. Then what you need is your software installer of the camera and only the USB.
7 0
4 years ago
What is the name of a process thorough which several biometric readings are taken on an individual in order to create an accurat
Sergeeva-Olga [200]

Answer:

d. Enrollment

Explanation:

Biometric refers to the machine in which it stores the data of the various persons i.e to by face recognition, fingerprint, etc

The enrollment is a procedure of a biometric in which a person is used for the one time.  The information related to the person is created and stored

Therefore in the given case, for keeping the accurate recording of the person characteristic we need to enroll it

Hence, the option d is correct

6 0
3 years ago
What number will be output by the console.log command on line 5?
anzhelika [568]

Answer:

E

Explanation:

If you follow the line of code and add 1, 2, and then 3, 10 + 1 + 2 + 3 = 16.

7 0
3 years ago
Read 2 more answers
What does the gravity setting of a jump control?
Vikki [24]

Answer:

A

Explanation:

3 0
3 years ago
Other questions:
  • In cell F29, use an IF function to display the correct Shipping Charge, based on the amount of the Discounted Total. If the Disc
    9·1 answer
  • How can a user choose settings that will customize a presentation so that it is best to be played automatically at a kiosk rathe
    11·2 answers
  • Which AWS service is a managed service that makes it easy to set up, operate, and scale a relational database in the cloud?​
    9·1 answer
  • How can these requirements be met? Universal Containers conduct evaluations of their sales reps using a custom object consisting
    10·1 answer
  • Climax Medical Technology, a fast-growing global research firm, has accumulated so much client information that conventional dat
    15·1 answer
  • The body element is where you provide browsers with information about the document
    12·1 answer
  • A(n) ____________________ is a named collection of stored data, instructions, or information and can contain text, images, video
    5·2 answers
  • What is a Web server application?
    7·1 answer
  • Please please help I don’t understand this
    7·2 answers
  • If you are connected to a network that uses DHCP, and you need to terminate your Windows workstation's DHCP lease, which command
    12·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!