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
Listing of all files with file extension of .txt BEFORE adding my file
./security_backup/keystore_backup_audit_trail.log
./logs/wrapper.log
----------------------------------------------------
Listing of all files with file extension of .txt AFTER adding my file
./security_backup/keystore_backup_audit_trail.log
./logs/wrapper.log
./myTestDirectory/myfile.log
----------------------------------------------------
Listing of all files with file extension of .txt AFTER cleaning up my changes
./security_backup/keystore_backup_audit_trail.log
./logs/wrapper.log
Last updated