Question

file content in the CLI Challenge Content concatenation Evaluate your content concatenation skills by completing the followin
0 0
Add a comment Improve this question Transcribed image text
Answer #1

List Of Commands

1. cat - command in unix shows you the content in the file.

2. >> - Using two right facing angular brackets in command you can output the content of command on the left( left to brackets) to right(of brackets).

3. echo - command writes the evaluation of the right part(right of echo) to console.

4. whoami - command shows you the current user on linux/unix cli.

5. $(any) - Dollar and brackets covering any command, will evaluate the command and assign or print to console/variable as necessary.

Answers:

1. echo "username: "$(whoami) >> ~/workspace/project-log/changelog.txt

Above command will append the content of echo "username: "$(whoami) to File ~/workspace/project-log/changelog.txt

echo "username: "$(whoami) - concatenates username: and output of whoami command and prints onto std output.

>> ~/workspace/project-log/changelog.txt - copies the echo content from above to end of file changelog.txt

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

Above command reads(using cat) the content of file file-list.txt and appends it to ~/workspace/project-log/changelog.txt using >>.

Changelog Version: 1.0 changelog.txt (END)Changelog: Version: 1.0 usernane asheeshbisht changelog.txt (END)[asheeshbishtasheeshbishts less changelog.txt [asheeshbisht: asheeshbisht $ less changelog.txt [asheeshbisht: asheeshbisht$ l(asheeshbishtasheeshbishts less changelog.txt [asheeshbisht: asheeshbisht$ less changelog.txt [asheeshbisht: asheeshbisht$ leChangelog: Version: 1.0 username:asheeshbisht Changelog.txt (END)

Add a comment
Know the answer?
Add Answer to:
file content in the CLI Challenge Content concatenation Evaluate your content concatenation skills by completing the...
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
  • 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: Append the current user to the ~/workspace/project-log/changelog.txt file: Changelog: Version: 1.0 username: current_user 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 shortcut Once you have completed these tasks press the Check It button to have your solution assessed. Check It!

  • 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...

  • Your mission in this programming assignment is to create a Python program that will take an...

    Your mission in this programming assignment is to create a Python program that will take an input file, determine if the contents of the file contain email addresses and/or phone numbers, create an output file with any found email addresses and phone numbers, and then create an archive with the output file as its contents.   Tasks Your program is to accomplish the following: ‐ Welcome the user to the program ‐ Prompt for and get an input filename, a .txt...

  • please help!! hoose a Tool to Design Your Wireframes You may use any tool available to...

    please help!! hoose a Tool to Design Your Wireframes You may use any tool available to you that will allow you to create simple skeletal sketches of each screen or page, and to label the location of the key elements described in Part B of the assignment. You should save the sketches in one of the following formats: docx, .pptx, .sketch, .psd, .pdf, .png, .jpg, .gif, .png, or .rtf. Possible tools include Paint, PowerPoint, Word, Adobe Illustrator, Visual Studio, Visio,...

  • can you please help me with this homework. DCOM 101 – Introduction to Data Communications Final Project Instructions: In this Final Project, you will test the skills and knowledge gained throughout th...

    can you please help me with this homework. DCOM 101 – Introduction to Data Communications Final Project Instructions: In this Final Project, you will test the skills and knowledge gained throughout this course. The steps listed below are loosely based on the Assignments you have completed thus far, so don’t hesitate to look back and use those resources. Follow the steps in each section, and paste screenshots when prompted. This assignment is worth 10% of your final grade. Basic Network...

  • The following are screen grabs of the provided files Thanks so much for your help, and have a n...

    The following are screen grabs of the provided files Thanks so much for your help, and have a nice day! My Java Programming Teacher Gave me this for practice before the exam, butI can't get it to work, and I need a working version to discuss with my teacher ASAP, and I would like to sleep at some point before the exam. Please Help TEST QUESTION 5: Tamagotchi For this question, you will write a number of classes that you...

  • How can we assess whether a project is a success or a failure? This case presents...

    How can we assess whether a project is a success or a failure? This case presents two phases of a large business transformation project involving the implementation of an ERP system with the aim of creating an integrated company. The case illustrates some of the challenges associated with integration. It also presents the obstacles facing companies that undertake projects involving large information technology projects. Bombardier and Its Environment Joseph-Armand Bombardier was 15 years old when he built his first snowmobile...

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