Linux bash script to read parameters – Solved A simple way to create a bash script which will allow you read in the parameters entered in the terminal and handle …Read More
Add a user to authorized_keys Hey there folks, I ran into a task where I needed to add a user to one the machiens so she could SSH into the …Read More
Find file path in Linux Problem: Write a shell script which finds a path of a file within the specified directory and output the full file path Solution:
file1=$(find /opt/ibm/db2/ -type f | grep db2jcc4.jar)
file2=$(find /opt/ibm/db2/ -type f | grep db2jcc_license_cu.jar)
if [ -z "$file1" ]; then
echo "db2jcc4.jar not found"
if [ -z "$file2" ]; then
echo "db2jcc_license_cu.jar not found "
echo "path to db2jcc4.jar: $file1"
echo "path to db2jcc_license_cu.jar: $file2"
The …Read More
Error mounting: mount exited with exit code 13 After hours of research and configuration I discovered a solution to this problem. I had copied all my files to the external hard drive. Formatted my …Read More