Question

3. 2. Challenge Content concatenation Evaluate your content concatenation skills by completing the following tasks: Append...

3. 2. Challenge

Content concatenation

Evaluate your content concatenation skills by completing the following tasks:

  1. Append the current user to the ~/workspace/project-log/changelog.txt file:
  2. Changelog:
  3. Version: 1.0
  4. username: current_user
  5. Append the ~/workspace/project-log/file-list.txt file content to the ~/workspace/project-log/changelog.txt file:
  6. Changelog
  7. Version: 1.0
  8. username: current_user
  9. hello.txt
  10. hi.txt
  11. project-log

TIP: Use the tab autocompletion shortcut

Once you have completed these tasks press the Check It button to have your solution assessed.

Check It!

0 0
Add a comment Improve this question Transcribed image text
Answer #1

ANSWER :

Task1:

Evaluate your content concatenation skills by completing the following tasks:

Append the current userto the ~/workspace/project-log/changelog.txt file:

Current user can be found out using command : whoami

Append the current userto the ~/workspace/project-log/changelog.txt file:

username=`whoami`

echo `username: $username` >> ~/workspace/project-log/changelog.txt

Output:

cat /home/user1/workspace/project-log/changelog.txt
Changelog:
Version: 1.0
username: user1

Task2:

Append the ~/workspace/project-log/file-list.txt file content to the ~/workspace/project-log/changelog.txt file

cat ~/workspace/project-log/file-list.txt >> ~/workspace/project-log/changelog.txt

cat command will display the contents of ~/workspace/project-log/file-list.txt and will redirect or append them to ~/workspace/project-log/changelog.txt file.

NOTE :

echo 'username: codio' >> ~/workspace/project-log/changelog.txt This is how the first should be written in Codio

Add a comment
Know the answer?
Add Answer to:
3. 2. Challenge Content concatenation Evaluate your content concatenation skills by completing the following tasks: Append...
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for? Ask your own homework help question. Our experts will answer your question WITHIN MINUTES for Free.
Similar Homework Help Questions
  • file content in the CLI Challenge Content concatenation Evaluate your content concatenation skills by completing the...

    file content in the CLI Challenge Content concatenation Evaluate your content concatenation skills by completing the following tasks: workspace/project- 1. Append the current user to the log/changelog.txt file: Changelog: Version: 1.0 username: current_user 2. Append the workspace/project-log/file-list.txt file content to the --/Workspace/project-log/changelog.txt file: Changelog Version: 1.0 username: current_user hello.txt hi.txt project-log TIP: Use the tab autocompletion shartout

  • Any help would be appreciated. Reading file content in the CLI Collapse 3. 2. Challenge Content...

    Any help would be appreciated. Reading file content in the CLI Collapse 3. 2. Challenge Content concatenation Evaluate your content concatenation skills by completing the following tasks: 1 Append the current user to the -/workspece/project log/change log.txt file Changelog: Version: 1.0 usernene: current user 2 Append the-/workspace/project-log/fale-list.txt file content to the workspace/project-log/chengelog txt le Changelog Version: 1.0 usernane: currenteser hello.txt hi.txt project-leg TIP Use the tab autocompletion shortcut Once you have completed these tasks press the Check it button to...

  • I need some help< I keep getting this wrong and don’t understand why 2. 5. Challenge Children files Let’s test your file creation skills. Make sure you are on the ~/workspace directory and: 1.Creat...

    I need some help< I keep getting this wrong and don’t understand why 2. 5. Challenge Children files Let’s test your file creation skills. Make sure you are on the ~/workspace directory and: 1.Create the following files. Try creating them directly from the ~/workspace directory, all at once: test-website/index.html test-website/.website-config test-website/css/styles.css test-website/img/logo.png test-website/js/scripts.js 2.From your ~/workspace directory, list the test-website/css directory content including hidden files 3.Clear the terminal screen Once you have completed these tasks press the Check It button...

ADVERTISEMENT
Free Homework Help App
Download From Google Play
Scan Your Homework
to Get Instant Free Answers
Need Online Homework Help?
Ask a Question
Get Answers For Free
Most questions answered within 3 hours.
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT