Hi,
I am writing a BASH script. I have a list of files and I would like to make sure that each is of a specific pattern (ie *.L2). If not I would like to remove that file. How do I test whether a filename matches a given pattern?
Thanks a lot.
Mike (10 Replies)
Hi,
I have a directory with around 100k files and files with varying sizes(10GB files to as low as 5KB). All the files are having pipe dilimited records.
I need to append 7 pipes to the end of each record, in each file whose name contains _X3_ and need to append 10 pipes to the end of each... (3 Replies)
Hi,
I have many scripts in particular directory. And few of the scripts have exit 0 in second line. Now i wanted to list out the scripts name which has the exit 0 in its second line
I tried many options , but i can not get the filename along with the nth line pattern match :mad:. Can anyone... (14 Replies)
Hello Guyz
I have been following this forum for a while and the solutions provided are super useful. I currently have a scenario where i need to search for a pattern and start searching by keeping the first pattern as a baseline
ABC
DEF
LMN
EFG
HIJ
LMN
OPQ
In the above text i need to... (8 Replies)
Hi experts , im new to Unix,AWK ,and im just not able to get this right.
I need to match for some patterns if it matches I need to print the next few words to it.. I have only three such conditions to match… But I need to print only those words that comes after satisfying the first condition..... (2 Replies)
Im using the command below , but thats not the output that i want. it only prints the odd and even numbers.
awk '{if(NR%2){print $0 > "1"}else{print $0 > "2"}}'
Im hoping for something like this
file1:
Text hi this is just a test
text1 text2 text3 text4 text5 text6
Text hi... (2 Replies)
Hello Experts , require help . See below output:
File inputs
------------------------------------------
Server Host = mike
id rl images allocated last updated density
vimages expiration last read <------- STATUS ------->... (4 Replies)
Discussion started by: tigerhills
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)