You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

1.2 KiB

find-files

Instructions

"start finding ..."

Create a file find-files.sh, which will look for and show, in the current directory and its sub-folders:

everything (Regular file, Directory file, Link file,...) that starts with an a and, all Regular files ending with a z

$pwd
<..>/find-files-example
$./find-files.sh
./folder2/zzzz
./folder3/asd
./folder3/sub-folder4/abc
./folder3/sub-folder4/a_correct
./folder3/sub-folder4/aefg
./folder3/asd 2
./folder3/ahmed
./folder1/aolder_lol
$

Hints

find command is used to search and locate the list of files and directories based on conditions you specify for files that match the arguments:

$find ~/
<all files and folders in the user home>
$find ~/ \( -type f \)
<all files in the user home>
$

You may need to use pipes (|) and the logical operator &&.

You have to use Man or Google to know more about commands flags, in order to solve this exercise! Google and Man will be your friends!