0x02-shell_redirections 🔍
This projects deals with redirections and Input/Output in the shell.
Files
Description
0-hello_world
Prints "Hello, World" followed by a new line to standard output
1-confused_smiley
Displays a confused smiley "(Ôo)'
2-hellofile
Displays the contents of /etc/passwd
3-twofiles
Displays the contents of /etc/passwd
and /etc/hosts
4-lastlines
Displays the last 10 lines of /etc/passwd
5-firstlines
Displays the first 10 lines of /etc/passwd
6-third_line
Displays the third line of the file iacta
7-file
Creates a file named exactly \*\\'"Holberton School"\'\\*$\?\*\*\*\*\*:)
containing the text Holberton School
8-cwd_state
Writes the results of the command ls -la
into the file ls_cwd_content
. If the file exists overwrite otherwise create it.
9-duplicate_last_line
Duplicates the last line of the file iacta
10-no_more_js
Deletes all the regular files with a .js extension that are present in the current directory and all its subfolders
11-directories
Counts the number of directories and sub-directories in the current directory
12-newest_files
Displays the 10 newest files in the current directory
13-unique
Takes a list of words as input and prints only words that appear exactly once
14-findthatword
Displays lines containing the patter "root" from the file /etc/passwd
15-countthatword
Display the number of lines that contain the pattern "bin" in the file /etc/passwd
16-whatsnext
Display lines containing the pattern "root" and 3 lines after them in the file /etc/passwd
17-hidethisword
Display all lines in the file /etc/passwd
that don't contain the pattern "bin"
18-letteronly
Display all lines of the file /etc/ssh/ssh_config
starting with a letter
19-AZ
Replaces all characters A
and c
from input to Z
and e
respectively
20-hiago
Create a script that removes all letters c
and C
from input
21-reverse
Reverses the given input
22-users_and_homes
Displays all users and their home directories sorted by users.
Advanced Tasks
Files
Description
100-empty_casks
Finds all empty files and directories in the current directory and all its sub-directories
101-gifs
Lists all files with a .gif
extension in the current working directory and all its sub-directories
102-acrostic
Decodes an acrostic
103-the_biggest_fan
Parses web server logs in TSV format as input and displays the 11 hosts or IP addresses which did the most requests
Author
Esteban De La Hoz | Twitter | GitHub