Search Results

Search: Posts Made By: fight4love
3,960
Posted By agama
I'd make one small change to Aia's suggestion: ...
I'd make one small change to Aia's suggestion:


for arg in "$@"


Quoting $@ preserves any whitespace that might have been a part of the parameter on the command line. Unfortunately people do...
3,960
Posted By Aia
Not quite sure that I understand your reasoning,...
Not quite sure that I understand your reasoning, nevertheless, here it goes; a shut in the dark:
else
shift

for arg in $@
do
if [ -f "$arg" ]
then
echo "$arg exists"
fi...
Showing results 1 to 2 of 2

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