12-23-2011
1) Because in your example you are trying to delete the jpg files "recursively" using rm command & "." refers to current directory there is no way for "rm" to recursively delete the files you want if you use "." because it will search only current directory for "preview" & it won't search the subdirectories for "preview".
2) Try using "." with "-delete" flag. Let me know if it works.
3) The error is because after recursively deleting the files & directories "find" is not able to traverse back.
I hope this answer your queries.
9 More Discussions You Might Find Interesting
1. Programming
I hava been reading AUPE these days. I really am puzzled with the presentation of real user(group) ID, effective user(group) ID. How do they effect on the execution of process? What's the relationship between them? Appreciate your help. (4 Replies)
Discussion started by: lethefe
4 Replies
2. Shell Programming and Scripting
Hello,
I create a file touch 1201093003 fichcomp
and inside a repertory (which hava a lot of files) I want to list all files created before this file :
find *.* \! -maxdepth 1 - newer fichcomp but this command returned bash: /usr/bin/find: Argument list too long
but i make a filter all... (1 Reply)
Discussion started by: yacsil
1 Replies
3. Programming
#include <iostream.h>
class A
{
public:
void f(void)
{
cout << "hello world \n" ;
}
};
void main()
{
A *a;
a = 0 ;
a->f(); // OOPs...Am I mad? What am I going to do ?
} (1 Reply)
Discussion started by: RipClaw
1 Replies
4. Solaris
Hi all,
One disk on my root disk group failed in Veritas Volume manager.
I replaced it with new one, initialized it and placed it with removed one.
it Synchronized plexes and everything is fine. this node was second standby node of Sun cluster. yesterday I had failure on active node with boot... (1 Reply)
Discussion started by: samar
1 Replies
5. Solaris
Not sure why solaris couldn't detect the geometry of a hard disk which has a working OS of winxp pro.
Is it due to the different OS that the partition information is stored in different location?
When I type '"format" it is shown as below,
c3d1 < drive type unknown>... (5 Replies)
Discussion started by: just.srad
5 Replies
6. Shell Programming and Scripting
How to create a symbolic link to a command with certain argument?
When I man hexdump, it is said in the man page that "-C Canonical hex+ASCII display...Calling the command hd implies this option". Actually it is. hd equals to hexdump -C.
And then I examined the ln command but find it is a... (5 Replies)
Discussion started by: vistastar
5 Replies
7. Shell Programming and Scripting
Hi all ,
I'm new to unix
I have a checked project , there exists a file called xxx.config .
now my task is to find all the files in the checked out project which references to this xxx.config file.
how do i use grep or find command . (2 Replies)
Discussion started by: Gangam
2 Replies
8. Shell Programming and Scripting
I need assistance with following requirement, I am new to Unix.
I want to do the following task but stuck with file creation date(sysdate)
Following is the requirement
I need to create a script that will read the abc/xyz/klm folder and look for *.err files for that day’s date and then send an... (4 Replies)
Discussion started by: PreetArul
4 Replies
9. Programming
Facebook had a mathematics problem which was as thus:-
6/2(1+2) = ?
Answer is 9.
My ancient Casio FX 730P mini computer written exactly as that gives 'error' only.
Now take a look at shell versions, and a python version:-
Last login: Wed Sep 14 18:04:04 on ttys000
AMIGA:barrywalker~>... (6 Replies)
Discussion started by: wisecracker
6 Replies
LEARN ABOUT DEBIAN
lvscan
LVSCAN(8) System Manager's Manual LVSCAN(8)
NAME
lvscan - scan (all disks) for Logical Volumes
SYNOPSIS
lvscan [-a|--all] [-b|--blockdevice] [-d|--debug] [-h|--help] [--ignorelockingfailure] [-P|--partial] [-v|--verbose]
DESCRIPTION
lvscan scans all known volume groups or all supported LVM block devices in the system for defined Logical Volumes. The output consists of
one line for each Logical Volume indicating whether or not it is active, a snapshot or origin, the size of the device and its allocation
policy. Use lvs(8) or lvdisplay(8) to obtain more-comprehensive information about the Logical Volumes.
OPTIONS
See lvm for common options.
--all Include information in the output about internal Logical Volumes that are components of normally-accessible Logical Volumes, such as
mirrors, but which are not independently accessible (e.g. not mountable). For example, after creating a mirror using 'lvcreate -m1
--mirrorlog disk', this option will reveal three internal Logical Volumes, with suffixes mimage_0, mimage_1, and mlog.
-b, --blockdevice
This option is now ignored. Instead, use lvs(8) or lvdisplay(8) to obtain the device number.
SEE ALSO
lvm(8), lvcreate(8), lvdisplay(8) lvs(8)
Sistina Software UK LVM TOOLS 2.02.95(2) (2012-03-06) LVSCAN(8)