Command Line console

Simple example on Linux

Console

ls | grep sh

Result

configure.sh
installer.sh
start.sh
stop.sh
uninstall.sh

Multiple lined example on Linux

Console

echo Listing of all files with file extension of '.txt' BEFORE adding my file
find . -name "*.log"
echo "\n\n----------------------------------------------------\n\n"
mkdir myTestDirectory
cd myTestDirectory
touch myfile.log
cd ..
echo Listing of all files with file extension of '.txt' AFTER adding my file
find . -name "*.log"
echo "\n\n----------------------------------------------------\n\n"
rm -rf myTestDirectory
echo Listing of all files with file extension of '.txt' AFTER cleaning up my changes
find . -name "*.log"

Result

Last updated