rilpoint_mw113

Linux:Shell Scripts

(Változatok közti eltérés)
4. sor: 4. sor:
</code>
</code>
</megoldas>
</megoldas>
-
 
*Create a shell script that prints the following text: Hello world!<code lang="bash"><megoldas>
*Create a shell script that prints the following text: Hello world!<code lang="bash"><megoldas>
#!/bin/bash
#!/bin/bash
10. sor: 9. sor:
</code>
</code>
</megoldas>
</megoldas>
-
 
*Create a program that assigns a value to variable named A and then shows its value.<megoldas>
*Create a program that assigns a value to variable named A and then shows its value.<megoldas>
<code lang="bash">
<code lang="bash">
18. sor: 16. sor:
</code>
</code>
</megoldas>
</megoldas>
-
 
*Create a program that asks for the user's name from the keyboard and greets him in person!<megoldas>
*Create a program that asks for the user's name from the keyboard and greets him in person!<megoldas>
<code lang="bash">
<code lang="bash">
27. sor: 24. sor:
</code>
</code>
</megoldas>
</megoldas>
-
 
*Create a program that prints the English abbreviation of today's name! The name of the current day can be obtained by properly parameterizing the date command. (Use the man page of the date command!)<megoldas>
*Create a program that prints the English abbreviation of today's name! The name of the current day can be obtained by properly parameterizing the date command. (Use the man page of the date command!)<megoldas>
<code lang="bash">
<code lang="bash">
35. sor: 31. sor:
</code>
</code>
</megoldas>
</megoldas>
-
 
*Create a program that asks the length of the side of a square and then displays its perimeter and area. The name of the program should be square!<megoldas>
*Create a program that asks the length of the side of a square and then displays its perimeter and area. The name of the program should be square!<megoldas>
<code lang="bash">
<code lang="bash">

A lap 2021. április 15., 05:51-kori változata

  • Create a text file of any content with mcedit! The file name should be test.txt!
  • Create a shell script that prints the following text: Hello world!
    <megoldas>
    

#!/bin/bash

echo "Hello world!"

</megoldas>

  • Create a program that assigns a value to variable named A and then shows its value.
  • Create a program that asks for the user's name from the keyboard and greets him in person!
  • Create a program that prints the English abbreviation of today's name! The name of the current day can be obtained by properly parameterizing the date command. (Use the man page of the date command!)
  • Create a program that asks the length of the side of a square and then displays its perimeter and area. The name of the program should be square!
Skin by RIL Partner