Hi Friends,
Following is an output of a script
OPWQERIUTYKLSADFJHGXZNMCVBWQOPERIUTYKLSADFJHGXZNMCVB
I want to replace above string's 11 to 17 character by ******* (7 stars)
How can it be done?
Please somebody guide me. (6 Replies)
This is the code:
while test 1 -eq 1
do
read a
$a
if test $a = stop
then
break
fi
done
I read a command on every loop an execute it.
I check if the string equals the word stop to end the loop,but it say that I gave too many arguments to test.
For example echo hello.
Now the... (1 Reply)
Hey,
I'm currently getting into some kernel module progamming. As a little exercise I want to read the headers out of an ELF file. My code is very simple, here is the important part:
struct file *fp;
/* ... */
fp = filp_open("some/file/on/my/pc", O_RDONLY, 0);
if(fp == NULL) {
... (15 Replies)
Hello, Unix-forums!
My problem:
read -p "Enter any number, please" number
sleep 1
echo $number | tr -d 0-9
test -z $number && echo "Thank you" || echo "This is not a number"Test always displays "This is not a number". It doesn't matter if I entered a or 1.
But if I order
echo... (2 Replies)
sed -e "s// /g" old.txt > new.txt
While I do know some control characters need to be escaped, can normal characters also be escaped and still work the same way? Basically I do not know all control characters that have a special meaning, for example, ?, ., % have a meaning and have to be escaped... (11 Replies)
I am trying to find a specific set of characters in a long file. I only want to find the characters in column 265 for 4 bytes.
Is there a search for that? I tried cut but couldn't get it to work.
Ex. I want to find '9999' in column 265 for 4 bytes. If it is in there, I want it to print... (12 Replies)
Hi all, I need help.
I have an input text file (input.txt) like this:
21 GTGCAACACCGTCTTGAGAGG 50
21 GACCGAGACAGAATGAAAATC 73
21 CGGGTCTGTAGTAGCAAACGC 108
21 CGAAAAATGAACCCCTTTATC 220
21 CGTGATCCTGTTGAAGGGTCG 259
Now I need to count A/T/G/C numbers at each character location in column... (2 Replies)
Good afternoon,
I am tearing hair out over this. It should be so simple. I have an if statement to evaluate whether or not replication is working. I am testing variables from mysql to see if they are both "Yes". I have put some echo statements in to see how far the code proceeds. It always... (6 Replies)
Hi,
I want to do caseless string comparision using test command
for eg: Ind_f="y"
test "$Ind_f" == "y|Y"
i tried , ** , nothing worked.
any thoughts on how to do case insensitive string comparison using test command without converting to any particular case using typeset or tr? (8 Replies)
Discussion started by: Kulasekar
8 Replies
LEARN ABOUT DEBIAN
gstreamer::caps
GStreamer::Caps(3pm) User Contributed Perl Documentation GStreamer::Caps(3pm)NAME
GStreamer::Caps - Structure describing sets of media formats
SYNOPSIS
my $empty = GStreamer::Caps::Empty -> new();
my $any = GStreamer::Caps::Any -> new();
my $structure = {
name => "urgs",
fields => [
[field_one => "Glib::String" => "urgs"],
[field_two => "Glib::Int" => 23]
]
};
my $full = GStreamer::Caps::Full -> new($structure);
my $simple = GStreamer::Caps::Simple -> new(
"audio/mpeg",
field_one => "Glib::String" => "urgs",
field_two => "Glib::Int" => 23);
DESCRIPTION
To create a GStreamer::Caps object, you call one of the following constructors:
GStreamer::Caps::Any->new
GStreamer::Caps::Empty->new
GStreamer::Caps::Full->new
GStreamer::Caps::Simple->new
HIERARCHY
Glib::Boxed
+----GStreamer::Caps
METHODS
$caps1->append ($caps2)
o $caps2 (GStreamer::Caps)
$caps->append_structure ($structure)
o $structure (GStreamer::Structure)
boolean = $caps->do_simplify
caps = GStreamer::Caps->from_string ($string)
o $string (string)
caps = $caps1->intersect ($caps2)
o $caps2 (GStreamer::Caps)
boolean = $caps1->is_always_compatible ($caps2)
o $caps2 (GStreamer::Caps)
boolean = $caps->is_any
boolean = $caps->is_empty
boolean = $caps1->is_equal ($caps2)
o $caps2 (GStreamer::Caps)
boolean = $caps1->is_equal_fixed ($caps2)
o $caps2 (GStreamer::Caps)
boolean = $caps->is_fixed
boolean = $subset->is_subset ($superset)
o $superset (GStreamer::Caps)
caps = $caps->make_writable
caps = $caps->normalize
$caps->set_simple ($field, $type, $value, ...)
o $field (string)
o $type (string)
o $value (scalar)
o ... (list)
integer = $caps->get_size
structure = $caps->get_structure ($index)
o $index (integer)
caps = $minuend->subtract ($subtrahend)
o $subtrahend (GStreamer::Caps)
string = $caps->to_string
$caps->truncate
caps = $caps1->union ($caps2)
o $caps2 (GStreamer::Caps)
SEE ALSO
GStreamer, Glib::Boxed
COPYRIGHT
Copyright (C) 2005-2011 by the gtk2-perl team.
This software is licensed under the LGPL. See GStreamer for a full notice.
perl v5.14.2 2012-03-01 GStreamer::Caps(3pm)