
Linux bash script to read parameters – SOLVED
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 MoreFind simple answers to your complex questions
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 MoreAdd 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 MoreFind 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:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 |
#!/bin/bash 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" fi if [ -z "$file2" ]; then echo "db2jcc_license_cu.jar not found " fi echo "" echo "" echo "path to db2jcc4.jar: $file1" echo "path to db2jcc_license_cu.jar: $file2" echo "" echo "" |
The …
Read MoreError 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