Skip to content

Latest commit

 

History

History

0x02-shell_redirections

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

#This README file contains the description of all scripts for this project.

0-hello_world is a script that prints “Hello, World”, followed by a new line to the standard output

1-confused_smiley is a script that displays a confused smiley "(Ôo)'

2-hellofile display the content of the /etc/passwd file

3-twofiles display the content of /etc/passwd and /etc/hosts

4-lastlines display the last 10 lines of /etc/passwd

5-firstlines display 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 *\'"Best School"'\*$?*****:) containing the text Best School ending by a new line

8-cwd_state writes into the file ls_cwd_content the result of the command ls -la. If the file

9-duplicate_last_line duplicates the last line of the file iacta

10-no_more_js deletes all the regular files (not the directories) 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 display lines containing the pattern “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

16-whatsnext display lines containing the pattern “root” and 3 lines after them in the file /etc/passwd

16-whatsnext display lines containing the pattern “root” and 3 lines after them in the file /etc/passwd

16-whatsnext display lines containing the pattern “root” and 3 lines after them 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 the lines in the file /etc/passwd that do not contain the pattern “bin”

18-letteronly display all lines of the file /etc/ssh/sshd_config starting with a letter

19-AZ replace all characters A and c from input to Z and e respectively.

20-hiago removes all letters c and C from input

21-reverse reverse its input.

22-users_and_homes displays all users and their home directories, sorted by users

100-empty_casks finds all empty files and directories in the current directory and all sub-directories

101-gifs lists all the files with a .gif extension in the current directory and all its sub-directories

102-acrostic decodes acrostics that use the first letter of each line

103-the_biggest_fan parses web servers logs in TSV format as input and displays the 11 hosts or IP addresses which did the most requests