On Lu, 22 dec 14, 10:51:26, pe...@easthope.ca wrote:
> This command in a shell script removes unwanted log files.
>
> for i in $( echo *.Log ); do
> /bin/rm $i;
> echo "Removed $i."
> done
>
> In the edge case of no matching files, rm complains.
> /bin/rm: cannot remove `*.Log': No such fi
On Mon, Dec 22, 2014 at 10:51:26AM -0800, pe...@easthope.ca wrote:
> This command in a shell script removes unwanted log files.
>
> for i in $( echo *.Log ); do
> /bin/rm $i;
> echo "Removed $i."
> done
>
> In the edge case of no matching files, rm complains.
> /bin/rm: cannot remove `*.L
On 22/12/14 19:51, pe...@easthope.ca wrote:
> This command in a shell script removes unwanted log files.
>
> for i in $( echo *.Log ); do
> /bin/rm $i;
> echo "Removed $i."
> done
>
> In the edge case of no matching files, rm complains.
> /bin/rm: cannot remove `*.Log': No such file or d
On 12/22/2014 at 01:51 PM, pe...@easthope.ca wrote:
> This command in a shell script removes unwanted log files.
>
> for i in $( echo *.Log ); do
> /bin/rm $i;
> echo "Removed $i."
> done
>
> In the edge case of no matching files, rm complains.
> /bin/rm: cannot remove `*.Log': No such fi
This command in a shell script removes unwanted log files.
for i in $( echo *.Log ); do
/bin/rm $i;
echo "Removed $i."
done
In the edge case of no matching files, rm complains.
/bin/rm: cannot remove `*.Log': No such file or directory
If echo is replaced with ls, it complains when there
5 matches
Mail list logo