help-bash
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Help-bash] Script Not Working


From: nick
Subject: Re: [Help-bash] Script Not Working
Date: Fri, 14 Nov 2014 14:41:22 -0500
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.2.0

So close it also works this is the output.

Execution of 'oldfiles2 testdir':


Files in 'testdir' after 'oldfiles2' was run:
file1.old  file2.old  file3old.old  file4.old

Error: 'for' does not seem to loop only through required filenames

On 14-11-14 02:38 PM, Dennis Williamson wrote:
> for file in "$1"/*
> do
>   if [[ $file != *.old ]]
>   then
>     mv -- "$file" "$file.old"
>   fi
> done



reply via email to

[Prev in Thread] Current Thread [Next in Thread]