Skip to content

Latest commit

 

History

History
 
 

0x02-shell_redirections

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

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

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

File 2-hellofile displays the content of the /etc/passwd file.

File 3-twofiles displays the content of /etc/passwd and /etc/hosts.

File 4-lastlines displays the last 10 lines of /etc/passwd.

File 5-firstlines displays the first 10 lines of /etc/passwd.

File 6-third_line is a script that displays the third line of the file iacta.

File 7-file is a script that creates a file named exactly *\'"Holberton School"'\*$?*****:) containing the text Holberton School ending by a new line.

File 8-cwd_state is a script that writes into the file ls_cwd_content the result of the command ls -la.

File 9-duplicate_last_line is a script that duplicates the last line of the file iacta.

File 10-no_more_js is a script that deletes all the regular files (not the directories) with a .js extension that are present in the current directory and all its subfolders.

File 11-directories is a script that counts the number of directories and sub-directories in the current directory.

File 12-newest_files is a script that displays the 10 newest files in the current directory.

File 13-unique is a script that takes a list of words as input and prints only words that appear exactly once.

File 14-findthatword displays lines containing the pattern “root” from the file /etc/passwd.

File 15-countthatword displays the number of lines that contain the pattern “bin” in the file /etc/passwd.

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

File 17-hidethisword displays all the lines in the file /etc/passwd that do not contain the pattern “bin”.

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

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

File 20-hiago is a script that removes all letters c and C from input.

File 21-reverse is a script that reverse its input.

File 22-users_and_homes is a script that displays all users and their home directories, sorted by users.

File 100-empty_casks is a command that finds all empty files and directories in the current directory and all sub-directories.

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

File 102-acrostic is a script that decodes acrostics that use the first letter of each line.

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