Sponsored Content
Full Discussion: Decode a file
Top Forums UNIX for Beginners Questions & Answers Decode a file Post 303036444 by Don Cragun on Wednesday 26th of June 2019 07:16:55 PM
Old 06-26-2019
And, especially if you are trying to insert the quoted text in any place other than the start of the target file or the end of the target file, why is using echo a requirement?

Is this a homework assignment?

Are you trying to insert text you showed us in post #1 into some other file, or are you trying to insert some other text into the file you showed us in post #1?
This User Gave Thanks to Don Cragun For This Post:
 

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Please decode in English

Hello: Can anyone please decode this script in English. I have also made some comments which I know.. The actual script does not have one comment also.. #! /bin/ksh . odbmsprd_env.ksh #setting the env.. echo $0 Started at : `date '+%d-%m-%Y %H:%M:%S'` # what's echo $0 ... (4 Replies)
Discussion started by: ST2000
4 Replies

2. Shell Programming and Scripting

Decode email

In pine email, when you receive an email with an attachment, the content of the attachment is incoded (content-transfer-encoding: base64). I am trying to write a shell script that will read the mail file, and it will save the attachment of an email to a directory. I want to do this by reading... (6 Replies)
Discussion started by: mskarica
6 Replies

3. Shell Programming and Scripting

auto decode a value to different value

Okay, This is not something I've tried to do before, but what I want (need) to do is when a value is read in it gets changed to the value needed. I've been given a list of ids that I need to check against the ids I have in my system, but as is the case we don't have the same naming convention... (2 Replies)
Discussion started by: nhatch
2 Replies

4. Shell Programming and Scripting

DECODE file field is required in Bash

Dear All, I want to decode the one of the file field. Input file: 9393939393|999|2009-02-20 00:00:01|2||4587|2007-02-28 00:00:01|0 9393939393|2001|2009-02-20 00:00:01|2||4587|2007-02-28 00:00:01|0 9393939393|1500|2009-02-20 00:00:01|2||4587| 2007-02-28 00:00:01|0... (1 Reply)
Discussion started by: hanu_oracle
1 Replies

5. Programming

How to Decode an image using openGL

Hi, How to decode an image using openGL library libjpeg .. which are the steps needed to do this using C language.. actually my work is to decode the image, store it on the buffer, and place it on cube surface.. please guide me,,any answer will appreciated .. (8 Replies)
Discussion started by: Ravikishore
8 Replies

6. UNIX for Advanced & Expert Users

How to decode nfs file handle in HP-UX?

Hi Experts, Any idea how to decode file handle in HP-UX? I am getting the following error continously in my HP-UX 11.31 box :mad: Apr 26 07:15:00 host62 su: + tty?? root-bb Apr 26 07:15:00 host62 su: + tty?? root-abcadm Apr 26 07:15:01 host62 vmunix: NFS write error on host peq9vs:... (1 Reply)
Discussion started by: vipinable
1 Replies

7. Linux

Decode the statement!!

What will the below statement do ?:confused: && { && {eval `/bin/setup 1`} || && { VAR="/tmp" } export $VAR; } (3 Replies)
Discussion started by: krishnaux
3 Replies

8. Shell Programming and Scripting

How to decode text files?

HI experts....I am trying to decode some text files... I need little help from you people...file is of mixed type...from generated from windows based system my text files looks like this... 2.AUBZ 158 1 11 116204310 6 N 7542 E 18 02846 52833 102821 152815 ... (9 Replies)
Discussion started by: Akshay Hegde
9 Replies

9. UNIX for Dummies Questions & Answers

What does this command do? and how to decode all other lines

Hello, I have an encoded file and I wish to see what is written inside. The first line is given below: eval "$(dd if=$0 bs=1 skip=69 2>/dev/null|gpg -d 2>/dev/null)"; exit PS: When I google above code, it says that command is use for encryption... Following lines include many strange... (2 Replies)
Discussion started by: baris35
2 Replies

10. Windows & DOS: Issues & Discussions

Decode windows .dat file

I have received a file from a Windows server that in Linux hexedit shows the following first few characters. AA 18 3C 2B 60 56 03 00 00 01 01 00 The Windows program may have received this via RS232. I need to "understand" this on a Linux machine. Please suggest where I may start decoding... (4 Replies)
Discussion started by: Alf Stockton
4 Replies
Gtk2::TextBuffer(3)					User Contributed Perl Documentation				       Gtk2::TextBuffer(3)

NAME
Gtk2::TextBuffer HIERARCHY
Glib::Object +----Gtk2::TextBuffer METHODS
textbuffer = Gtk2::TextBuffer->new ($tagtable=undef) o $tagtable (Gtk2::TextTagTable or undef) $buffer->add_mark ($mark, $where) o $mark (Gtk2::TextMark) o $where (Gtk2::TextIter) Since: gtk+ 2.12 $buffer->add_selection_clipboard ($clipboard) o $clipboard (Gtk2::Clipboard) Since: gtk+ 2.2 $buffer->apply_tag ($tag, $start, $end) o $tag (Gtk2::TextTag) o $start (Gtk2::TextIter) o $end (Gtk2::TextIter) $buffer->apply_tag_by_name ($name, $start, $end) o $name (string) o $start (Gtk2::TextIter) o $end (Gtk2::TextIter) boolean = $buffer->backspace ($iter, $interactive, $default_editable) o $iter (Gtk2::TextIter) o $interactive (boolean) o $default_editable (boolean) Since: gtk+ 2.6 $buffer->begin_user_action (start, end) = $buffer->get_bounds Retrieves the first and last iterators in the buffer, i.e. the entire buffer lies within the range (start,end). integer = $buffer->get_char_count $buffer->copy_clipboard ($clipboard) o $clipboard (Gtk2::Clipboard) Since: gtk+ 2.2 targetlist = $buffer->get_copy_target_list Since: gtk+ 2.10 textchildanchor = $buffer->create_child_anchor ($iter) o $iter (Gtk2::TextIter) textmark = $buffer->create_mark ($mark_name, $where, $left_gravity) o $mark_name (string or undef) o $where (Gtk2::TextIter) o $left_gravity (boolean) texttag = $buffer->create_tag ($tag_name, $property_name1, $property_value1, ...) o $tag_name (string or undef) o $property_name1 (string) the first property name o $property_value1 (string) the first property value o ... (list) pairs of names and values $buffer->cut_clipboard ($clipboard, $default_editable) o $clipboard (Gtk2::Clipboard) o $default_editable (boolean) Since: gtk+ 2.2 $buffer->delete ($start, $end) o $start (Gtk2::TextIter) o $end (Gtk2::TextIter) boolean = $buffer->delete_interactive ($start_iter, $end_iter, $default_editable) o $start_iter (Gtk2::TextIter) o $end_iter (Gtk2::TextIter) o $default_editable (boolean) $buffer->delete_mark ($mark) o $mark (Gtk2::TextMark) $buffer->delete_mark_by_name ($name) o $name (string) boolean = $buffer->delete_selection ($interactive, $default_editable) o $interactive (boolean) o $default_editable (boolean) $register_buffer->deserialize ($content_buffer, $format, $iter, $data) o $content_buffer (Gtk2::TextBuffer) o $format (Gtk2::Gdk::Atom) o $iter (Gtk2::TextIter) o $data (scalar) May croak with a Glib::Error in $@ on failure. list = $buffer->get_deserialize_formats boolean = $buffer->deserialize_get_can_create_tags ($format) o $format (Gtk2::Gdk::Atom) $buffer->deserialize_set_can_create_tags ($format, $can_create_tags) o $format (Gtk2::Gdk::Atom) o $can_create_tags (boolean) textiter = $buffer->get_end_iter $buffer->end_user_action boolean = $buffer->get_has_selection Since: gtk+ 2.10 $buffer->insert ($iter, $text) o $iter (Gtk2::TextIter) o $text (string) $buffer->insert_at_cursor ($text) o $text (string) $buffer->insert_child_anchor ($iter, $anchor) o $iter (Gtk2::TextIter) o $anchor (Gtk2::TextChildAnchor) textmark = $buffer->get_insert boolean = $buffer->insert_interactive ($iter, $text, $default_editable) o $iter (Gtk2::TextIter) o $text (string) o $default_editable (boolean) boolean = $buffer->insert_interactive_at_cursor ($text, $default_editable) o $text (string) o $default_editable (boolean) $buffer->insert_pixbuf ($iter, $pixbuf) o $iter (Gtk2::TextIter) o $pixbuf (Gtk2::Gdk::Pixbuf) $buffer->insert_range ($iter, $start, $end) o $iter (Gtk2::TextIter) o $start (Gtk2::TextIter) o $end (Gtk2::TextIter) boolean = $buffer->insert_range_interactive ($iter, $start, $end, $default_editable) o $iter (Gtk2::TextIter) o $start (Gtk2::TextIter) o $end (Gtk2::TextIter) o $default_editable (boolean) $buffer->insert_with_tags ($iter, $text, ...) o $iter (Gtk2::TextIter) o $text (string) o ... (list) of Gtk2::TextTag's $buffer->insert_with_tags_by_name ($iter, $text, ...) o $iter (Gtk2::TextIter) o $text (string) o ... (list) of strings, tag names textiter = $buffer->get_iter_at_child_anchor ($anchor) o $anchor (Gtk2::TextChildAnchor) textiter = $buffer->get_iter_at_line ($line_number) o $line_number (integer) textiter = $buffer->get_iter_at_line_index ($line_number, $byte_index) o $line_number (integer) o $byte_index (integer) textiter = $buffer->get_iter_at_line_offset ($line_number, $char_offset) o $line_number (integer) o $char_offset (integer) textiter = $buffer->get_iter_at_mark ($mark) o $mark (Gtk2::TextMark) textiter = $buffer->get_iter_at_offset ($char_offset) o $char_offset (integer) integer = $buffer->get_line_count textmark or undef = $buffer->get_mark ($name) o $name (string) boolean = $buffer->get_modified $buffer->set_modified ($setting) o $setting (boolean) $buffer->move_mark ($mark, $where) o $mark (Gtk2::TextMark) o $where (Gtk2::TextIter) $buffer->move_mark_by_name ($name, $where) o $name (string) o $where (Gtk2::TextIter) $buffer->paste_clipboard ($clipboard, $override_location, $default_editable) o $clipboard (Gtk2::Clipboard) o $override_location (Gtk2::TextIter or undef) o $default_editable (boolean) Since: gtk+ 2.2 targetlist = $buffer->get_paste_target_list Since: gtk+ 2.10 $buffer->place_cursor ($where) o $where (Gtk2::TextIter) atom = $buffer->register_deserialize_format ($mime_type, $function, $user_data=undef) o $mime_type (string) o $function (scalar) o $user_data (scalar) atom = $buffer->register_deserialize_tagset ($tagset_name) o $tagset_name (string or undef) atom = $buffer->register_serialize_format ($mime_type, $function, $user_data=undef) o $mime_type (string) o $function (scalar) o $user_data (scalar) atom = $buffer->register_serialize_tagset ($tagset_name) o $tagset_name (string or undef) $buffer->remove_all_tags ($start, $end) o $start (Gtk2::TextIter) o $end (Gtk2::TextIter) $buffer->remove_selection_clipboard ($clipboard) o $clipboard (Gtk2::Clipboard) Since: gtk+ 2.2 $buffer->remove_tag ($tag, $start, $end) o $tag (Gtk2::TextTag) o $start (Gtk2::TextIter) o $end (Gtk2::TextIter) $buffer->remove_tag_by_name ($name, $start, $end) o $name (string) o $start (Gtk2::TextIter) o $end (Gtk2::TextIter) $buffer->select_range ($ins, $bound) o $ins (Gtk2::TextIter) o $bound (Gtk2::TextIter) Since: gtk+ 2.4 textmark = $buffer->get_selection_bound (start, end) = $buffer->get_selection_bounds Returns start and end if some text is selected, empty otherwise; places the bounds of the selection in start and end (if the selection has length 0, then start and end are filled in with the same value). start and end will be in ascending order. scalar = $register_buffer->serialize ($content_buffer, $format, $start, $end) o $content_buffer (Gtk2::TextBuffer) o $format (Gtk2::Gdk::Atom) o $start (Gtk2::TextIter) o $end (Gtk2::TextIter) list = $buffer->get_serialize_formats string = $buffer->get_slice ($start, $end, $include_hidden_chars) o $start (Gtk2::TextIter) o $end (Gtk2::TextIter) o $include_hidden_chars (boolean) textiter = $buffer->get_start_iter texttagtable = $buffer->get_tag_table string = $buffer->get_text ($start, $end, $include_hidden_chars) o $start (Gtk2::TextIter) o $end (Gtk2::TextIter) o $include_hidden_chars (boolean) $buffer->set_text ($text) o $text (string) $buffer->unregister_deserialize_format ($format) o $format (Gtk2::Gdk::Atom) $buffer->unregister_serialize_format ($format) o $format (Gtk2::Gdk::Atom) PROPERTIES
'copy-target-list' (Gtk2::TargetList : readable / private) The list of targets this buffer supports for clipboard copying and DND source 'cursor-position' (integer : readable / private) The position of the insert mark (as offset from the beginning of the buffer) 'has-selection' (boolean : readable / private) Whether the buffer has some text currently selected 'paste-target-list' (Gtk2::TargetList : readable / private) The list of targets this buffer supports for clipboard pasting and DND destination 'tag-table' (Gtk2::TextTagTable : readable / writable / construct-only / private) Text Tag Table 'text' (string : readable / writable / private) Current text of the buffer SIGNALS
changed (Gtk2::TextBuffer) insert-text (Gtk2::TextBuffer, Gtk2::TextIter, string, integer) insert-pixbuf (Gtk2::TextBuffer, Gtk2::TextIter, Gtk2::Gdk::Pixbuf) insert-child-anchor (Gtk2::TextBuffer, Gtk2::TextIter, Gtk2::TextChildAnchor) delete-range (Gtk2::TextBuffer, Gtk2::TextIter, Gtk2::TextIter) modified-changed (Gtk2::TextBuffer) mark-set (Gtk2::TextBuffer, Gtk2::TextIter, Gtk2::TextMark) mark-deleted (Gtk2::TextBuffer, Gtk2::TextMark) apply-tag (Gtk2::TextBuffer, Gtk2::TextTag, Gtk2::TextIter, Gtk2::TextIter) remove-tag (Gtk2::TextBuffer, Gtk2::TextTag, Gtk2::TextIter, Gtk2::TextIter) begin-user-action (Gtk2::TextBuffer) end-user-action (Gtk2::TextBuffer) paste-done (Gtk2::TextBuffer, Gtk2::Clipboard) SEE ALSO
Gtk2, Glib::Object COPYRIGHT
Copyright (C) 2003-2008 by the gtk2-perl team. This software is licensed under the LGPL. See Gtk2 for a full notice. perl v5.12.1 2010-07-05 Gtk2::TextBuffer(3)
All times are GMT -4. The time now is 10:30 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy