Sponsored Content
Top Forums Shell Programming and Scripting Automatic Copy of File Contents to Clipboard Post 302090925 by ilak1008 on Thursday 28th of September 2006 06:36:44 AM
Old 09-28-2006
Automatic Copy of File Contents to Clipboard

Could someone show me how to copy the contents of a file to the clipboard automatically without manually selecting its contents? I just want to press the "Paste Key" to show the results. I wish to use this in a ksh script.

I'm using Solaris.

Thanks!
 

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Copy selected contents from file

I want to capture contents of a file between 2 strings into another file for eg all lines in between the keywords "start log" and "end log" should be copied into another file (4 Replies)
Discussion started by: misenkiser
4 Replies

2. UNIX for Dummies Questions & Answers

Copy text from a file from VI editor to Windows clipboard

Copy text from a file from VI editor to Windows clipboard, I mean copy entire file in vi editor to notepad. (13 Replies)
Discussion started by: zhshqzyc
13 Replies

3. Shell Programming and Scripting

copy the contents between two keywords to a new file.

Hi All, I want to edit my gate level netlists by searching for the content between two patterns eg: ff1 \test/a0 ( .CLK(\test/ClkInt0_acb_00x1 ),.D(\test/Rakicc ), .QB(\test/X ), .VDD(1'b1), .VSS(1'b0)); ff1 \test/a1 ( .CLK(\test/medis0_acb_00x1 ),.D(\test/hedwc ), .QB(\test/X ),... (6 Replies)
Discussion started by: naveen@
6 Replies

4. UNIX for Dummies Questions & Answers

Copy entire contents of file to clipboard

Hi, I am trying to figure out how to copy the contents of a file to the clipboard, then paste into a command. i.e copy contents of file /path/filename.txt to <command> <paste text> Hope that makes sense. Basically tryting to copy the text for use in a command without having to open the... (8 Replies)
Discussion started by: JCA70
8 Replies

5. Shell Programming and Scripting

Script to manipulate contents of clipboard

Hi there, I'm a total newbie and would like some help. I'd like to have a script to - load the contents of the clipboard into a variable - manipulate the variable by adding the characters /* to the beginning of every line and */ to the end of every line - load the variable back into the... (3 Replies)
Discussion started by: js8765
3 Replies

6. UNIX for Advanced & Expert Users

Xterm configuration : how to copy/paste in the CLIPBOARD

Hi, I can paste what is in the CLIPBOARD but I can't get xterm copy. and in fact I think I'm not able to select well with the cursor (I don't want to use the mouse)... here is my ~/.Xresources file : XTerm*highlightSelection: true XTerm*VT100.translations: #override \n\ None ... (5 Replies)
Discussion started by: xib.be
5 Replies

7. Shell Programming and Scripting

Need help to copy contents of a file

Hi, I am stuck up with a problem of copying the contents of a directory where one of the folder name is changed daily. Problem: I have the folder structure as: RefWorlds2/LINGCC4_X64/odsdev/odessy/UTI/621GA_build_xxx/.../.. In the above path the build number (xxx) will be changed... (3 Replies)
Discussion started by: SathaKarni
3 Replies

8. UNIX for Dummies Questions & Answers

How do I copy from windows clipboard into VI session?

trying to add my Google analytics code to every page on my site. I want to paste in into every file. I have it in Notepad++. If I open a file in VI, using Putty to connect is it easy to just paste into the VI session? (3 Replies)
Discussion started by: waynehazle
3 Replies

9. Shell Programming and Scripting

Copy contents of one file to another

I need to write a script (in bash) that copies the content of the first file in each folder of a directory to the second file in the same folder. I tried this and it didn't work - it just came back with errors and I'm not sure how to fix it. Help is very much appreciated! for mpdir in... (4 Replies)
Discussion started by: LeftoverStew
4 Replies

10. Solaris

Solaris 10 : command to copy text to the clipboard.

I'm searching a command to copy text to the clipboard. xclip and xsel are commands which are available on several kind Linux and Unix OS, but is unfortenuately not available on solaris 10. REF : xpt.sourceforge.net/techdocs/nix/x/general/xwin12-Xclipboard/single/ clipboard of openSolaris is... (9 Replies)
Discussion started by: droopy4u
9 Replies
Gtk2::Clipboard(3pm)					User Contributed Perl Documentation				      Gtk2::Clipboard(3pm)

NAME
Gtk2::Clipboard - wrapper for GtkClipboard HIERARCHY
Glib::Object +----Gtk2::Clipboard METHODS
$clipboard->set_can_store (...) o ... (list) of Gtk2::TargetEntry's Since: gtk+ 2.6 $clipboard->clear display = $clipboard->get_display Since: gtk+ 2.2 clipboard = Gtk2::Clipboard->get_for_display ($display, $selection) o $display (Gtk2::Gdk::Display) o $selection (Gtk2::Gdk::Atom) Since: gtk+ 2.2 clipboard = Gtk2::Clipboard->get ($selection) o $selection (Gtk2::Gdk::Atom) $clipboard->set_image ($pixbuf) o $pixbuf (Gtk2::Gdk::Pixbuf) Since: gtk+ 2.6 object = $clipboard->get_owner $clipboard->request_contents ($target, $callback, $user_data=undef) o $target (Gtk2::Gdk::Atom) o $callback (scalar) o $user_data (scalar) $clipboard->request_image ($callback, $user_data=undef) o $callback (scalar) o $user_data (scalar) Since: gtk+ 2.6 $clipboard->request_rich_text ($buffer, $callback, $user_data=undef) o $buffer (Gtk2::TextBuffer) o $callback (scalar) o $user_data (scalar) Since: gtk+ 2.10 $clipboard->request_targets ($callback, $user_data=undef) o $callback (scalar) o $user_data (scalar) Since: gtk+ 2.4 $clipboard->request_text ($callback, $user_data=undef) o $callback (scalar) o $user_data (scalar) $clipboard->request_uris ($func, $data=undef) o $func (scalar) o $data (scalar) Since: gtk+ 2.14 $clipboard->store Since: gtk+ 2.6 $clipboard->set_text ($text) o $text (string) selectiondata or undef = $clipboard->wait_for_contents ($target) o $target (Gtk2::Gdk::Atom) pixbuf or undef = $clipboard->wait_for_image Since: gtk+ 2.6 list = $clipboard->wait_for_rich_text ($buffer) o $buffer (Gtk2::TextBuffer) Since: gtk+ 2.10 list = $clipboard->wait_for_targets Returns a list of GdkAtom's. Since: gtk+ 2.4 string = $clipboard->wait_for_text scalar = $clipboard->wait_for_uris Since: gtk+ 2.14 boolean = $clipboard->wait_is_image_available Since: gtk+ 2.6 boolean = $clipboard->wait_is_rich_text_available ($buffer) o $buffer (Gtk2::TextBuffer) Since: gtk+ 2.10 boolean = $clipboard->wait_is_target_available ($target) o $target (Gtk2::Gdk::Atom) Since: gtk+ 2.6 boolean = $clipboard->wait_is_text_available boolean = $clipboard->wait_is_uris_available Since: gtk+ 2.14 boolean = $clipboard->set_with_data ($get_func, $clear_func, $user_data, ...) o $get_func (scalar) o $clear_func (scalar) o $user_data (scalar) o ... (list) of Gtk2::TargetEntry's boolean = $clipboard->set_with_owner ($get_func, $clear_func, $owner, ...) o $get_func (scalar) o $clear_func (scalar) o $owner (Glib::Object) o ... (list) of Gtk2::TargetEntry's SIGNALS
owner-change (Gtk2::Clipboard, Gtk2::Gdk::Event) 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::Clipboard(3pm)
All times are GMT -4. The time now is 04:34 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy