In bash - when used interactively - you need to turn off history expansion/substitution:
to keep the shell from interpreting the ! character within double quotes
This User Gave Thanks to Scrutinizer For This Post:
Hi,
One of our application is producing log files. But if we open the log file in vi or less or view mode, it shows all the special characters in it. The 'cat' shows correctly but it shows only last page. If I do 'cat' <file_name> | more, then again it shows special characters.
... (1 Reply)
Hi,
I need some advise on treating non printable chars over ascii value 126
Case 1 :
On some fields in the text , I need to retiain then 'as-is' and load to a database.I understand it also depends on database codepage.
but i just wanna know how do i ensure it do not change while loading... (1 Reply)
here is my simple script to show process and owners except me:
ps `-ef |grep xterm |grep -v aucar` | while read a1 a2 a3 a4 a5 a6 a7 a8
do
echo KILL..\($a1\).. $a2 |more
done
how can I pass values from command "ps -ef |grep xterm|grep -v aucar" to ?
because above command... (2 Replies)
I was using the following bash command inside the emacs compile command to search C++ source code:
grep -inr --include='*.h' --include='*.cpp' '"' * | sed "/include/d" | sed "/_T/d" | sed '/^ *\/\//d' | sed '/extern/d'
Emacs will then position me in the correct file and at the correct line... (0 Replies)
I know this should be simple, but I've been manning sed awk grep and find and am stupidly stumped :(
I'm trying to use sed (or awk, find, etc) to find 4 characters on the second line of a file.txt 44-47 characters in. I can find lots of sed things for lines, but not characters. (4 Replies)
I was trying to run a code to check if a fax number is empty or not.
for that, I've written the following code which is throwing an error.
#!/bin/ksh
fax= "999-999-9999"
if ; then
fax_no="000-000-0000"
else
fax_no=$fax
fi
echo $fax_no
And I get the... (7 Replies)
I have a file with multiple lines. From each line I want to get all strings that starts with '+' and ends with '/'. Then I want the strings to be separated by ' + '
Example input:
+$A$/NOUN+At/NSUFF_FEM_PL+K/CASE_INDEF_ACC
Sample output:
$A$ + At + K (20 Replies)
Hi,
I have file
#cat drivers.txt
fcs0
fcs1
vscsi1
vscsi2
In this i need to check the availabality of "fcs" or "vscsi" alone not vscsi0,fcs1
I tried with "if condition" but it is not working.
cat drivers.txt| while read ADAP
do
echo "Checking for $ADAP"
if ;then
echo "FC... (9 Replies)
Hello guys,
I have a problem where I need to add a delimiter, that can be | for example, after each 28000 chars.
The problem is that sometimes 1 row, which should contain 28000 chars is split in 2, so I want to put the delimiter after each 28000 so I will know the end of each row.
Please... (2 Replies)
Hi,
I need all your help to achieve the below functionality.
I have a big 2 GB file and inside the file we need to identify, whether having a comma(,) or pipe(|) or tab or fixed position or semicolon(;) delimiter. If any of those delimiter found need to replace the file with pipe(|)... (1 Reply)
Discussion started by: lkeswar
1 Replies
LEARN ABOUT DEBIAN
gtk2::entrybuffer
Gtk2::EntryBuffer(3pm) User Contributed Perl Documentation Gtk2::EntryBuffer(3pm)NAME
Gtk2::EntryBuffer - wrapper for GtkEntryBuffer
HIERARCHY
Glib::Object
+----Gtk2::EntryBuffer
The Gtk2::EntryBuffer class contains the actual text displayed in a Gtk2::Entry widget.
A single Gtk2::EntryBuffer object can be shared by multiple Gtk2::Entry widgets which will then share the same text content, but not the
cursor position, visibility attributes, icon etc.
Gtk2::EntryBuffer may be derived from. Such a derived class might allow text to be stored in an alternate location, such as non-pageable
memory, useful in the case of important passwords. Or a derived class could integrate with an application's concept of undo/redo.
METHODS
entrybuffer = Gtk2::EntryBuffer->new ($initial_chars=undef)
o $initial_chars (string)
unsigned = $buffer->get_bytes
integer = $buffer->delete_text ($position=0, $n_chars=-1)
o $position (integer)
o $n_chars (integer)
$buffer->emit_deleted_text ($position, $n_chars)
o $position (integer)
o $n_chars (integer)
$buffer->emit_inserted_text ($position, $chars, $n_chars)
o $position (integer)
o $chars (string)
o $n_chars (integer)
$buffer->insert_text ($position, $chars)
o $position (integer)
o $chars (string)
integer = $buffer->get_length
integer = $buffer->get_max_length
$buffer->set_max_length ($max_length)
o $max_length (integer)
string = $buffer->get_text
$buffer->set_text ($chars)
o $chars (string)
PROPERTIES
'length' (Glib::UInt : default 0 : readable / private)
Length of the text currently in the buffer
'max-length' (integer : default 0 : readable / writable / private)
Maximum number of characters for this entry. Zero if no maximum
'text' (string : default "" : readable / writable / private)
The contents of the buffer
SIGNALS
inserted-text (Gtk2::EntryBuffer, Glib::UInt, string, Glib::UInt)
deleted-text (Gtk2::EntryBuffer, Glib::UInt, Glib::UInt)
SEE ALSO
Gtk2, Glib::Object
COPYRIGHT
Copyright (C) 2003-2011 by the gtk2-perl team.
This software is licensed under the LGPL. See Gtk2 for a full notice.
perl v5.14.2 2012-05-27 Gtk2::EntryBuffer(3pm)