You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
For this challenge, remember to use a single backslash \ to escape special characters and double backslash \\ to escape the backslash itself.
Save current state of directory : A script that writes into the file ls_cwd_content the result of the command ls -la. If the file ls_cwd_content already exists, it should be overwritten. If the file ls_cwd_contentdoes not exist, create it.
Duplicate last line : A script that duplicates the last line of the file iacta.
No more javascript : 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.
DJ Cut Killer : A scipt that displays all users and their home directories, sorted by users, based on the /etc/passwd file.
Empty casks make the most noise : A script that finds all empty files and directories in the current directory and all sub-directories.
Only names of the files and directories should be displayed (not the entire path.)
Hidden files should be listed also, one file name per line and the listing should end with a new line.
You are not allowed to use basename, grep, egrep, fgrep or rgrep.
A gif is worth ten thousand words : A script that lists all the files with a .gif extension in the current directory and all its sub-directories.
Hidden files should be listed.
Only regular files (not directories) should be listed.
The names of the files should be displayed without their extensions.
The files should be sorted by byte values, but case-insensitive (file aaa should be listed before file bbb, file .b should be listed before file a, and file Rona should be listed after file jay)
One file name per line.
The listing should end with a new line.
You are not allowed to use basename, grep, egrep, fgrep or rgrep.
Acrostic : A script that decodes acrostics that use the first letter of each line.
What to decode: An acrostic is a poem (or other form of writing) in which the first letter (or syllable, or word) of each line (or paragraph, or other recurring feature in the text) spells out a word, message or the alphabet. The word comes from the French acrostiche from post-classical Latin acrostichis). As a form of constrained writing, an acrostic can be used as a mnemonic device to aid memory retrieval.Read more here
The ‘decoded’ message has to end with a new line.
You are not allowed to use grep, egrep, fgrep or rgrep.
The biggest fan : 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.
Download this file: wget http://indeedeng.github.io/imhotep/files/nasa_19950801.tsv
Run command this way: ./103-the_biggest_fan < nasa_19950801.tsv.
Order by number of requests, most active host or IP at the top.
You are not allowed to use grep, egrep, fgrep or rgrep.