Shell is a collection of command-line utilities for text processing, file manipulation, and web page screenshot capture.
- Remove duplicate lines from text
- Sort lines alphabetically
- Group lines by tokens
- Replace text in files
- Process piped input
- Capture screenshots of web pages using Chrome
Removes duplicate lines from input.
php index.php /shell undupe -file="filename.txt"
or
cat filename.txt | php index.php /shell undupe -file
Sorts lines alphabetically.
php index.php /shell sort -file="filename.txt"
or
cat filename.txt | php index.php /shell sort -file
Groups lines by tokens.
php index.php /shell group -file="filename.txt"
or
cat filename.txt | php index.php /shell group -file
Replaces text in a file or piped data.
php index.php /shell replace -search="searchstring" -replace="replacestring" -file="filename.txt"
or
dir | php index.php /shell replace "searchstring" "replacestring" -file
When using a file, the output is saved to filename.txt.new.
Takes a screenshot of a web page using Chrome.
php index.php /shell screenshot -url="/"
Options:
-small- Capture a smaller screenshot (800x600 instead of 1920x1200)
The screenshot is saved to out.jpg in the project root directory.
- Ensure PHP is installed and configured
- For the screenshot functionality, Google Chrome must be installed in the default location
The Shell component uses the CliHandler trait to process command-line arguments and provide a consistent interface for all commands.
This project is proprietary software.