I apologize for the delay and have been able to get the desired output thanks to all your help and input. I have been spending time learning perl better. I am a scientist learning scripting so I make a lot of mistakes, but eventually I get there.
I have one last question that I can not figure out. The attached file is a sample of the input and columns 1 and 3 have the info needed.
If the input is an indel the parse rules are:
The perl parser is below:
Thank you .
Hi All,
I need to pass a variable to perl script from bash script, where in perl i am using if condition. Here is the cmd what i am using in perl
FROM_DATE="06/05/2008"
TO_DATE="07/05/2008"
"perl -ne ' print if ( $_ >="$FROM_DATE" && $_ <= "$TO_DATE" ) ' filename"
filename has... (10 Replies)
I am trying to use a script to replace the header of each file, whose filename are stored within the array $test, using the sed command within a Perl script as follows:
$count = 0;
while ( $count < $#test )
{
`sed -e 's/BIOGRF 321/BIOGRF 332/g' ${test} > 0`;
`cat 0 >... (2 Replies)
I am fiddling with a little script that will issue a shutdown command if the temperature on the CPU goes above a certain level. I started writing the script in Bash, and then thought I would like to use Perl to extract the detailed bits, but I am not sure if this is really practical. Basically I... (2 Replies)
Hi Everyone,
i have a string 00:44:40
so:
$tmp=~ s/://gi;
$tmp=~s/({2})({2})({2})/$1*3600+$2*60+$3/e;
the output is 2680.
Any way to combine this two lines into a single line?
Thanks (4 Replies)
Hi,
I have tried several times but failed, I need to call this script from the perl script. This one line script will be sent to /var/tmp/error
Bash command:
/usr/openv/netbackup/bin/admincmd/bperror -backstat -l -hoursago 12 |awk '{ print $19, $12, $14, $16}'|grep -vi default|sort >... (12 Replies)
so in unix this command works works and shows me a list of directories
find . -name \*.xls -exec dirname {} \; | sort -u | > list.txt
but when i try running a perl script to run this command
my $query = 'find . -name \*.xls -exec dirname {} \; | sort -u | > list.txt';... (2 Replies)
Server: IBM p770
OS: AIX 6.1 TL5 SP1
When one of our develoeprs types "bash" on the command line to switch shells, it hangs. For some reason, two bash processes are created....the first bash process spawns a second bash process in the same console, causing a hang. Anyone have any idea what... (2 Replies)
I'm reading about debugging aids in bash and have come across the set command. It says in my little book that an addition to typing
set
you can also use them "on the command line when running a script..." and it lists this in a small table:
set -o option Command Line... (5 Replies)
In a bash script, one can call a perl command in the following manner, where "myperlcommand" is a perl command.
perl -e 'myperlcommand(arguments)'
perl -e 'print("UUUU"x4)'
Now, how can one call a bash command from within a perl script? (Suppose that mybashcommand is a bash... (1 Reply)
How to run several bash commands put in bash command line without needing and requiring a script file.
Because I'm actually a windows guy and new here so for illustration is sort of :
$ bash "echo ${PATH} & echo have a nice day!"
will do output, for example:... (4 Replies)
Discussion started by: abdulbadii
4 Replies
LEARN ABOUT DEBIAN
spicec
SPICEC(1) General Commands Manual SPICEC(1)NAME
spicec - Spice client
SYNOPSIS
spicec [-h, --host <host>] [-p, --port <port>] [-s, --secure-port <port>] [--secure-channels <ch0, ch1...>] [--unsecure-chan-
nels <ch0, ch1...>] [-w, --password <password>] [-f, --full-screen[=auto-conf]] [--canvas-type <type1, type2...>] [--enable-chan-
nels <ch0, ch1...>] [--disable-channels <ch0, ch1...>] [--help]
DESCRIPTION
spicec is a Spice client, it can be used to connect to Spice server, such as spice compatible QEMU
OPTIONS -h, --host <host>
Spice server address.
-p, --port <port>
Spice server port
-s, --secure-port <port>
Spice server secure port
--secure-channels <ch0, ch1...>
Force secure connection on the specified channels Channels are: main, display, inputs, cursor, playback and record By default, any
channel can be secured, depending on the --secure-port availability.
--unsecure-channels <ch0, ch1...>
Force unsecure connection on the specified channels Channels are: main, display, inputs, cursor, playback and record. By default,
any channel can be unsecured, depending on the --port availability.
-w, --password <password>
Set a ticketing password (default is none)
-s, --secure-port <port>
Spice server secure port
-f, --full-screen[=auto-conf]
Open in a full screen mode. Optional automatic configuration of the remote display settings according to the client display set-
tings. A guest agent must be installed and started for this option.
--canvas-type <type1, type2...>
Select the available renderer. The order determines precedence For Linux client : only "cairo" canvas type is available. For Win-
dows client : available types are "gdi" and "cairo". The default is "gdi".
--enable-channels <ch0, ch1...>
Enable the specified channels. Use "all" for enabling all possible channels. Use the following names for enabling only the selected
channels: "display", "inputs", "cursor", "playback" and "record". By default all channels are enabled.
--disable-channels <ch0, ch1...>
Disable the specified channels. Use "all" for disabling all possible channels. Use the following names for enabling only the
selected channels: "display", "inputs", "cursor", "playback" and "record." By default all channels are enabled.
--help Show command help.
CONTROL HOT KEYS
Shift + F11 Toggle full-screen / window mode
Shift + F12
Release the cursor if captured in window
On debug mode, these are available as well:
Shift + F5
Connect to the server
Shift + F6
Disconnect from the server
SEE ALSO
Spice related documents can be found at http://www.spice-space.org/documentation.html
AUTHOR
Spice project
This manual page was written by Liang Guo <bluestonechina@gmail.com>, for the Debian project (and may be used by others). Permission is
granted to copy, distribute and/or modify this document under the terms of the Creative Commons Attribution-Share Alike 3.0 United States
License. (See http://creativecommons.org/licenses/by-sa/3.0/us/legalcode)
November 29, 2010 SPICEC(1)