Search Results

Search: Posts Made By: Loonatic
3,288
Posted By tukuyomi
Try this: #!/bin/bash f="$1" #The filename...
Try this:
#!/bin/bash

f="$1" #The filename is the argument of the script
[ -z "$1" ] && read -p'Input a file: ' f #No argument? We explicitly ask the user

DIR1="/home/loonatic/"...
Showing results 1 to 1 of 1

 
All times are GMT -4. The time now is 04:55 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy