Giter Site home page Giter Site logo

lab-bash's Introduction

logo_ironhack_blue 7

Lab | Bash

Introduction

We are going to practice with bash, a shell and command-line language!

Setup

  1. Download the folder to your machine and navigate to it folder.

  2. Run the following command (without the $ sign):

$ ls

and you should see:

exercises  inputs  lorem  lorem-copy  modules  outputs  README.md
  1. Try to do the following exercises without changing the directory.

Exercises

  1. Print in console "Hello World".
  2. Create a directory called new_dir.
  3. Remove that directory.
  4. Copy the file sed.txt from the lorem folder to lorem-copy folder.
  5. Copy the other two files from the lorem folder to lorem-copy folder in just one line with the pipe ;.
  6. Show the sed.txt file content from the lorem folder.
  7. Show the at.txt file and lorem.txt file contents from lorem folder.
  8. Print the first 3 rows in sed.txt file from lorem-copy folder.
  9. Print the last 3 rows in sed.txt file from lorem-copy folder.
  10. Add Homo homini lupus. at the end of sed.txt file from lorem-copy folder.
  11. Print the last 3 rows in sed.txt file from lorem-copy folder. You should see Homo homini lupus..
  12. Replace all et repetitions by ET in at.txt file from lorem folder to lorem-copy folder. Look the sed command.
  13. Find who is the system user.
  14. Find which is your actual path.
  15. List all files with the extension .txt in lorem folder.
  16. Count the rows in sed.txt file from lorem folder. Look concatenate cat and wc with the pipe |.
  17. Count the files start with lorem in all directories.
  18. Count how many times et appears in at.txt from lorem folder.
  19. Count how many times et appears in at.txt from lorem-copy folder.

Bonus

  1. Store your name in a variable with read command.
  2. Print that variable.
  3. Create a new directory named with variable name.
  4. Remove that directory.
  5. For each file in lorem folder, print the number of characters of its name.

lab-bash's People

Contributors

sandrabosk avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.