I want to list files only from the current dir and its child dir (not from child's child dir).
i have the following files,
Here i want to list only the log file from current dir and ./ABC dir. ( not from ./ABC/ABC1 and ./ABC/ABC1/XYZ).
Hence please someone help me to write a correct find command with -prune option.
I beleive the following command will work in Linux find . -name "*.log" -maxdepth 1. But this command is not working in AIX. I'm not sure -maxdepth option is shell dependent or unix flavour variant.
SO i tried find with -prune option but that is not giving me the desired result. (i'm not pretty sure if my find command with -prune option is correct)
Last edited by zaxxon; 10-01-2009 at 02:03 AM..
Reason: code tags
Hi All,
I am trying to find files in a directory and don't want to search in the sub directories and using the command
find . \( ! -name . -prune \) -mtime +1 -name '*.log'
and is working fine.
But when I am trying with absolute path then is not working like
find /home/subodh \( ! -name... (1 Reply)
I know one of the more seasoned veterans probably opened this thread looking for their chance to refer me to the site's search feature and let me tell you.
I'VE LOOKED!!!! And I didn't find anything helpful...
So, I've got a windows background and I'm fond of its search feature which comes... (6 Replies)
i want to find only the file t4 in directory t3. i am in dir t . the tree is as follows.
if i give,
find .
o/p is
.
./t4
./t1
./t1/t2
./t1/t2/t3
./t1/t2/t3/t4
./t1/t2/t4
./t1/t4
directories are like t/t1/t2/t3 and each directory has file t4.
my question is , i want to find file... (0 Replies)
Hi , Kindly help me out .:)
i want to find only the file t4 in directory t3. i am in dir t . the tree is as follows.
if i give,
find .
o/p is
.
./t4
./t1
./t1/t2
./t1/t2/t3
./t1/t2/t3/t4
./t1/t2/t4
./t1/t4
directories are like t/t1/t2/t3 and each directory has file t4.
my... (7 Replies)
Hi
I have a directory say mydir and inside it there are many files and subdirectories and also a directory called lost+found owned by root user
I want to print all files directories and subdirectorres from my directory using find command except lost+found
If i do
find . \( -name... (3 Replies)
To find all the files in your home directory that have been edited in some way since the last tar file, use this command:
find . -newer backup.tar.gz
Is anyone familiar with an older solution?
looking to identify files older then 15mins across several directories.
thanks,
manny (2 Replies)
Hi,
I am trying to find some files in a directory and then remove/list them if they are 30 days old. I also have 2 directories in that directory which I need to skip. Can someone please tell me what is the correct syntax?
find /developer/. -name "lost+found" "projects" -prune -o -type f... (2 Replies)
Hello, I am using ksh93 (/usr/dt/bin/dtksh) on Solaris and am stuck when trying to use find with the -prune option.
I need to search a directory (supplied in a variable) for files matching a certain pattern, but ignore any sub-directories.
I have tried:
find ${full_path_to_dir_to_search}... (9 Replies)
Hi,
I have two files under two separate directories as in:
find . -name test.sh
./test.sh
./abc/test.sh
I want my find to only look for the file test.sh that is under the current directory and not one under /abc
How do I use prune to achieve this? I am on AIX (3 Replies)
I need to delete all files from the working directory and its sub directories using the find command, for that I am using -prune option but some how I am having a syntax issue.
I have tried the below, please help me correct the syntax
find . -name \* -type f -exec rm -f {} \; >> Works but... (4 Replies)
Discussion started by: rosebud123
4 Replies
LEARN ABOUT DEBIAN
qemuctl
qemuctl(1)qemuctl(1)NAME
qemuctl - Graphical control for qemu
SYNTAX
qemuctl [-suspend-dir <dir>] [-suspend-file <filename>] [-qemu <qemu>] [-nowakeup] qemu-options
DESCRIPTION
qemuctl is a gui that controls a qemu process with the built-in monitor of qemu. So you can change devices, suspend machines, save screen-
shots, ...
If you suspend a machine it will do the following macro:
stop
screendump "suspend-dir/suspend-file.ppm"
savevm "suspend-dir/suspend-file.vm"
commit
quit
You can afterwards resume the machine with:
qemuctl -suspend-dir suspend-dir -suspend-file suspend-file your_qemu_options
the suspend-files will then be deleted
or
qemuctl -loadvm suspend-dir/suspend-file.vm your_qemu_options
Be aware that you can't use the "-monitor" option with qemuctl, because it needs the control over the monitor. The option "-serial stdio"
can't be used, too.
OPTIONS -suspend-file <filename>
This option is normaly used by qemuctl to support suspend and wakeup. qemuctl can then find the vm-state-file in its folders and
wakeup the virtual machine. If the file is there the qemuctl waes up the virtual machine and deletes the file afterwards. On suspend
the vm-state-file is then stored as the <filename> with the .vm ending and the screenshot is stored as the <filename> with the .ppm
ending.
Default filename is "suspend".
-suspend-dir <dir>
This is the dir where the suspend files would be stored or expected.
Default is current dir.
-nowakeup
Don't wake up even if the vm-file is there. Suspend still works.
Default is to wake up using the vm-file if it is there.
-qemu <qemu>
The qemu variation to use. It can be qemu or kvm.
Default is qemu.
qemu-options
Use qemu-options for the launch of qemu. See qemu(1) for further details.
FILES
none
ENVIRONMENT VARIABLES
none
EXAMPLES
To use the suspend file 'Debian 3.1' and store/search it in the '/qemu' dir:
qemuctl -suspend-file "Debian 3.1" -suspend-dir "/qemu" -boot c -hda hda.raw
Alternativly you can run it with default suspend filenames:
qemuctl -boot c -hda hda.raw
AUTHORS
Peter Rustler
SEE ALSO qemu(1)qemu-launcher(1)Peter Rustler 0.0.1 qemuctl(1)