Skip to content

Latest commit

 

History

History

0x02-shell_redirections

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Shell, I/O Redirections and Filters

  • 0-hello_world: script that prints “Hello, World”, followed by a new line to the standard output
  • 1-confused_smiley: script that displays a confused smiley
  • 2-hellofile: script to display the content of /etc/passwd
  • 3-twofiles: script to display the content of /etc/passwd and /etc/hosts
  • 4-lastlines: script to display the last 10 lines of /etc/passwd
  • 5-firstlines: script to display the first 10 lines of /etc/passwd
  • 6-third_line: script that displays the third line of the file iacta
  • 8-cwd_state: script that writes into the file ls_cwd_content the result of the command ls -la
  • 7-file: script that creates a file named exactly *\'"Holberton School"'\*$?*****:)
  • 9-duplicate_last_line: script that duplicates the last line of the file iacta
  • 10-no_more_js: script that deletes all the regular files (not the directories) with a .js
  • 11-directories: script that counts the number of directories and sub-directories
  • 12-newest_files: script that displays the 10 newest files in the current directory
  • 13-unique: script that takes a list of words as input and prints only words that appear exactly once
  • 14-findthatword: script that displays lines containing the pattern “root” from the file /etc/passwd
  • 15-countthatword: script to display the number of lines that contain the pattern “bin” in the file /etc/passwd
  • 16-whatsnext: script to display lines containing the pattern “root” and 3 lines after them in the file
  • 17-hidethisword: script to display all the lines in the file /etc/passwd that do not contain the pattern “bin”
  • 18-letteronly: script to display all lines of the file /etc/ssh/sshd_config starting with a letter
  • 19-AZ: script to replace all characters A and c from input to Z and e respectively
  • 20-hiago: script that removes all letters c and C from input
  • 21-reverse: script that reverse its input
  • 22-users_and_homes: script that displays all users and their home directories, sorted by users
  • 100-empty_casks: script that finds all empty files and directories in the current directory and all sub-directories
  • 101-gifs: script that lists all the files with a .gif extension in the current directory and its sub-directories
  • 102-acrostic: script that decodes acrostics that use the first letter of each line
  • 103-the_biggest_fan: script that parses web servers logs in TSV format as input and displays the 11 hosts or IP addresses