Question

using unix shell command: Display a calendar of the first four months of 2020 that also...

using unix shell command:

Display a calendar of the first four months of 2020 that also includes week numbers

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

Command:

cal 2020 | perl -pe 'if ( m/\A\s*\d/ ) { s/\A/++$i . qq[ ] x 2/e } else { s/\A/qq[ ] x 3/e }'

Output:

Add a comment
Know the answer?
Add Answer to:
using unix shell command: Display a calendar of the first four months of 2020 that also...
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
  • Unix questions, i need help on Hint: Commands to study to answer this question: predefined shell...

    Unix questions, i need help on Hint: Commands to study to answer this question: predefined shell variables, and .profile script file, echo SHELL, HOME, PATH, MAIL and TERM are predefined shell variables. You can use the value of a shell variable in a shell command putting $ in front of it. For example, to display the value of the HOME directory of the user, specify $HOME in the echo command like echo $HOME. Do not give just the value of...

  • 1) Write a Unix command that will display the message below using echo and the value...

    1) Write a Unix command that will display the message below using echo and the value of your environment variable instead of the sample student login /students/astud01 My home directory is /students/astude01 2) Write a Unix command to display your login and the system date with both commands on one line (the output may be on separate lines) SAMPLE OUTPUT (details will differ): cconner Tue Jul 7 15:38:44 PDT 2015 3) 1.Write a Unix command that will redirect (>) the...

  • Explain what the following UNIX command does: Is 'echo I.txt' Please type shell commands (for Windows....

    Explain what the following UNIX command does: Is 'echo I.txt' Please type shell commands (for Windows. UNIX, or any other system that you like) for: creating a directory called hello world list the contents of this directory create a file called iwashere.txt display the contents of the file iwashere.txt from the command-line Please write a simple program in C for accepting a string from the command-line, reversing and printing the reversed string to standard output.

  • 1. We can "download" a Unix command and the results from that command into a file...

    1. We can "download" a Unix command and the results from that command into a file on our local computer using copy and paste using a word processor such as Word, and then open the Unix Window using the download command 2. When a user is logged on to their account on hills on more than one computer at the same time, which command can display a list of these sessions? whoami kill history ps 3. When your session on...

  • What unix / linux command would I use to execute this: Display only the fifth field...

    What unix / linux command would I use to execute this: Display only the fifth field on each line in the file myclass using a delimiter of :

  • do the following on a UNIX command line, if applicable vi editor may be used Consider...

    do the following on a UNIX command line, if applicable vi editor may be used Consider the text file PEOPLE 101:Alice:Peters: President 102:Bob:Smith: VP 103:Jane:Jones: Programmer 104:John:Roberts: Project Manager 1. use the cut command to display the first name and last name only 2. using cut and sort commans and a pipe display the last name and job title in each record then sort the output by the last name 3. sort the file by employee ID in decreasing order....

  • Create a file using echo command Display properties of the file Check whether file is readable...

    Create a file using echo command Display properties of the file Check whether file is readable or not If it is readable then read content and display content of the file on the monitor Check syntax of the script and execute Deliverable: shell script (filetest.csh) and logfile (results.log)

  • UNIX QUESTION Write an argument-less shell script "Sum4.csh", which reads four integer values from the keyboard,...

    UNIX QUESTION Write an argument-less shell script "Sum4.csh", which reads four integer values from the keyboard, computes their sum, then displays the sum in expression format. EXAMPLE: % Sum4.csh Enter the first number: 4 Enter the second number: 7 Enter the third number: 3 Enter the fourth number: 11 RESULT: 4 + 7 + 3 + 11 = 25

  • Creating a Shell Interface Using Java This project consists of modifying a Java program so that...

    Creating a Shell Interface Using Java This project consists of modifying a Java program so that it serves as a shell interface that accepts user commands and then executes each command in a separate process external to the Java virtual machine. Overview A shell interface provides the user with a prompt, after which the user enters the next command. The example below illustrates the prompt jsh> and the user’s next command: cat Prog.java. This command displays the file Prog.java on...

  • Under Unix C-shell environment, you can create variables using either set or setenv. What is the...

    Under Unix C-shell environment, you can create variables using either set or setenv. What is the difference between these two types of variables? Does Python have array type? Why or why not? Give some reasoning. Create a class for watch with at least two method Create two subclasses for mechanical watch and solar watch. Create at least two methods for each subclass. Write regular expression to match scientific notation numbers. Your regular expression coefficient can be either integer or float.

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