Search Results

Search: Posts Made By: iceman1113
1,828
Posted By iceman1113
without using getopts, options are normally...
without using getopts, options are normally handled using a combination of a while and case loop:


while [ $# -gt 0]
do
case $1 in
<1st arg>) <code/function to handle arg>;...
39,101
Posted By iceman1113
that's not going to work. he said he doesn't...
that's not going to work. he said he doesn't want the user to have to enter the entire path. he just wants to enter a directory and the use the find command to find it...when using the find command...
39,101
Posted By iceman1113
i'm going to guess that since the directory...
i'm going to guess that since the directory doesn't exist, $variableWithPathInside is empty. so you're test to see if <file> exists is testing nothing and returning a success. bash (and other shell...
15,356
Posted By iceman1113
The exception thread should be stdout, redirect...
The exception thread should be stdout, redirect it (and stderr if you want) to the log file, then include the log in the body.


#!/bin/sh

exec 1>$0".log" #just stdout
exec >...
Showing results 1 to 4 of 4

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