Shell01 42 [better] -

shell01 is the first real filter in the 42 curriculum. Many students fail it once or twice. Do not be discouraged. Every failure teaches you a new flag, a subtle regex nuance, or a POSIX vs Bash quirk.

awk 'NR%2==1' "$1"

Count all files and directories in the current directory and all subdirectories. shell01 42

Key lesson: Read the find man page until you understand -exec and {} \; . shell01 is the first real filter in the 42 curriculum

The Shell01 module typically consists of 8 to 9 exercises that increase in complexity. Success requires precise adherence to formatting, as work is graded by a meticulous automated program called . a subtle regex nuance

You will be asked to find files with specific extensions (like .sh ) and display only their names without the extension.

Oben