The interpreter also supports an external command (mygrep), developed as a C program that mimics grep functionality, searching for strings within files.
- C
- GCC
- POSIX System Calls
- Linux
Valid script execution: 

Redirection and piping example: 

Background command with PID output: 

Mygrep execution: 

- Validates script header (## Script de SSOO) and format.
- Executes sequential Linux commands line-by-line.
- Handles:
- Simple commands with arguments.
- Piped commands.
- Input (<), output (>), and error (!>) redirections.
- Background execution (&) with proper PID printing and zombie management.
- Launches external command mygrepwith same redirection/background capabilities.
 
- Clone or Download the Project
- Compile using Make:
make all       # builds scripter and the external 'mygrep' command- Execute with a script file:
./scripter example_script.txt    # the first line of script.txt must be '## Script de SSOO'- Clean binaries:
make clean      # cleans the build files- Susana Ye Zhan
- Xinyi Yewu
This project is for educational purposes only. All rights reserved to Universidad Carlos III de Madrid.