Sponsored Content
Full Discussion: How to append a text file?
Top Forums Shell Programming and Scripting How to append a text file? Post 302865569 by Don Cragun on Friday 18th of October 2013 08:12:55 PM
Old 10-18-2013
Try:
Code:
sed '/^policyserver="something.com Hello World /s/^/#/' file

 

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

how to append text into a file.

I have a command stream that will parse down an ftp DIR listing of a remote directory and return the name of the newest file that I am interested in. The command is sed -e '/^d/d' sppay.listing |sed -n -e '/SPPAY/p'|sort -r -k 43M,45 -k 47,48 -k 50,54|sed -n -e '1p'|cut -c 56-99 and what it... (2 Replies)
Discussion started by: beilstwh
2 Replies

2. UNIX for Dummies Questions & Answers

append a text to a file every month

i have something like below in my SAS code and every month i need to append a text say 'ext.hlc_sum0906' near ext.hlc_sum0905 and next month after ext.hlc_sum0906 i need to append this 'ext.hlc_sum0907' and so on like that.. is it possible using SED or some other command in unix? %let... (1 Reply)
Discussion started by: depakjan
1 Replies

3. Shell Programming and Scripting

append some text message at the end of the file

Hi All, Please tell me how to append some text message at the end of the file. "File too large to view" example: xyz.log contains hhhhhhhhhhh hhhhhhjjjjjjjjj jjjjjjjjjjjjjjjjjjjjjj "File too large to view" Please advice (3 Replies)
Discussion started by: rajeshorpu
3 Replies

4. Shell Programming and Scripting

Script to append text from one file into another

Hello all. I was wondering if it possible to write a bash script that would do the following: I perform molecular modelling calculations and the output files are all text files with various different extensions. For example, I submit the input file "job_name.inp" and when it is done or the... (18 Replies)
Discussion started by: marcozd
18 Replies

5. Shell Programming and Scripting

Append some text to a file multiple times

Hi, I have a text file like Version=abc Tab=1 URL GOTO=www.abc.com/board=1 some text... I want to run a loop x no of times and append to the text file above text but URL GOTO should be www.abc.com/board=2 then 3,4...etc till x. Kindly help (2 Replies)
Discussion started by: krabu
2 Replies

6. Shell Programming and Scripting

How to append text to the second line of a file

Say I have a text file like: 1 3 4 How would I use ksh to put the number '2' into the second line of that file? I'm using OpenBSD so the sed syntax might be a bit different (I have no idea how to use sed, though) (4 Replies)
Discussion started by: guitarscn
4 Replies

7. Shell Programming and Scripting

Append Text in Result File Name

Hi Below command is returning the list of files which having this string "MTL_SYSTEM_ITEMS". find . -name "*"|xargs grep -il MTL_SYSTEM_ITEMS Ex: Above command is returing 2 files (Out of 10 files 2 files having this string). ./file1.txt and ./file2.txt Here I want to append... (3 Replies)
Discussion started by: balajiora
3 Replies

8. Shell Programming and Scripting

Open the file and edit/append the text

Hi i have a file like this mailboxnum 20 filename <to subsitute> fileloaction /home/dd234/ filetype txt in a directory i have set of files for ex: TT45.1.2 TT45.1.3 TT45.1.4 . . in for loop i have to take this files and subsitute one by one ex: (1 Reply)
Discussion started by: greenworld123
1 Replies

9. UNIX for Dummies Questions & Answers

Append command and strings to a text file

hi gurus, I'm executing some commands and I want to append both the command and output to a text file. Example: echo "strings -a wicmex.o|grep '$Header'" >> tmp.txt strings -a wicmex.o|grep '$Header' >> tmp.txt echo "strings -a libwip.a|grep '$Header'" >> tmp.txt strings -a libwip.a|grep... (1 Reply)
Discussion started by: donisback
1 Replies

10. UNIX for Beginners Questions & Answers

awk to update file with partial matching line in another file and append text

In the awk below I am trying to cp and paste each matching line in f2 to $3 in f1 if $2 of f1 is in the line in f2 somewhere. There will always be a match (usually more then 1) and my actual data is much larger (several hundreds of lines) in both f1 and f2. When the line in f2 is pasted to $3 in... (4 Replies)
Discussion started by: cmccabe
4 Replies
Gnome2::Canvas::RichText(3pm)				User Contributed Perl Documentation			     Gnome2::Canvas::RichText(3pm)

NAME
Gnome2::Canvas::RichText - Rich text canvas item HIERARCHY
Glib::Object +----Glib::InitiallyUnowned +----Gtk2::Object +----Gnome2::Canvas::Item +----Gnome2::Canvas::RichText METHODS
textbuffer = $text->get_buffer $text->set_buffer ($buffer) o $buffer (Gtk2::TextBuffer) $text->copy_clipboard $text->cut_clipboard textiter = $text->get_iter_at_location ($x, $y) o $x (integer) o $y (integer) rectangle = $text->get_iter_location ($iter) o $iter (Gtk2::TextIter) $text->paste_clipboard PROPERTIES
'anchor' (Gtk2::AnchorType : default "north-west" : readable / writable) Anchor point for text 'cursor-blink' (boolean : default true : readable / writable) Does the cursor blink in this rich text item? 'cursor-visible' (boolean : default true : readable / writable) Is the cursor visible in this rich text item? 'direction' (Gtk2::DirectionType : default "tab-backward" : readable / writable) Text direction 'editable' (boolean : default true : readable / writable) Is this rich text item editable? 'grow-height' (boolean : default false : readable / writable) Should the text box height grow if the text does not fit? 'height' (double : default 0 : readable / writable) Height for text box 'indent' (integer : default 0 : readable / writable) Number of pixels for indentation 'justification' (Gtk2::Justification : default "left" : readable / writable) Justification mode 'left-margin' (integer : default 0 : readable / writable) Number of pixels in the left margin 'pixels-above-lines' (integer : default 0 : readable / writable) Number of pixels to put above lines 'pixels-below-lines' (integer : default 0 : readable / writable) Number of pixels to put below lines 'pixels-inside-wrap' (integer : default 0 : readable / writable) Number of pixels to put inside the wrap 'right-margin' (integer : default 0 : readable / writable) Number of pixels in the right margin 'text' (string : default undef : readable / writable) Text to display 'visible' (boolean : default true : readable / writable) Is this rich text item visible? 'width' (double : default 0 : readable / writable) Width for text box 'wrap-mode' (Gtk2::WrapMode : default "word" : readable / writable) Wrap mode for multiline text 'x' (double : default 0 : readable / writable) X position 'y' (double : default 0 : readable / writable) Y position SIGNALS
tag-changed (Gnome2::Canvas::RichText, Glib::Object) ENUMS AND FLAGS
enum Gtk2::AnchorType o 'center' / 'GTK_ANCHOR_CENTER' o 'north' / 'GTK_ANCHOR_NORTH' o 'north-west' / 'GTK_ANCHOR_NORTH_WEST' o 'north-east' / 'GTK_ANCHOR_NORTH_EAST' o 'south' / 'GTK_ANCHOR_SOUTH' o 'south-west' / 'GTK_ANCHOR_SOUTH_WEST' o 'south-east' / 'GTK_ANCHOR_SOUTH_EAST' o 'west' / 'GTK_ANCHOR_WEST' o 'east' / 'GTK_ANCHOR_EAST' o 'n' / 'GTK_ANCHOR_N' o 'nw' / 'GTK_ANCHOR_NW' o 'ne' / 'GTK_ANCHOR_NE' o 's' / 'GTK_ANCHOR_S' o 'sw' / 'GTK_ANCHOR_SW' o 'se' / 'GTK_ANCHOR_SE' o 'w' / 'GTK_ANCHOR_W' o 'e' / 'GTK_ANCHOR_E' enum Gtk2::DirectionType o 'tab-forward' / 'GTK_DIR_TAB_FORWARD' o 'tab-backward' / 'GTK_DIR_TAB_BACKWARD' o 'up' / 'GTK_DIR_UP' o 'down' / 'GTK_DIR_DOWN' o 'left' / 'GTK_DIR_LEFT' o 'right' / 'GTK_DIR_RIGHT' enum Gtk2::Justification o 'left' / 'GTK_JUSTIFY_LEFT' o 'right' / 'GTK_JUSTIFY_RIGHT' o 'center' / 'GTK_JUSTIFY_CENTER' o 'fill' / 'GTK_JUSTIFY_FILL' enum Gtk2::WrapMode o 'none' / 'GTK_WRAP_NONE' o 'char' / 'GTK_WRAP_CHAR' o 'word' / 'GTK_WRAP_WORD' o 'word-char' / 'GTK_WRAP_WORD_CHAR' SEE ALSO
Gnome2::Canvas, Glib::Object, Glib::InitiallyUnowned, Gtk2::Object, Gnome2::Canvas::Item COPYRIGHT
Copyright (C) 2003-2004 by the Gtk2-Perl Team. This software is licensed under the LGPL; see Gnome2::Canvas for a full notice. perl v5.14.2 2011-11-16 Gnome2::Canvas::RichText(3pm)
All times are GMT -4. The time now is 04:52 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy