Puppy Linux Discussion Forum Forum Index Puppy Linux Discussion Forum
Puppy HOME page : puppylinux.com
"THE" alternative forum : puppylinux.info
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

The time now is Wed 22 Oct 2014, 09:07
All times are UTC - 4
 Forum index » Off-Topic Area » Programming
Writing Text from Clipboard to a Text File
Post_new_topic   Reply_to_topic View_previous_topic :: View_next_topic
Page 1 of 1 Posts_count  
Author Message
RSH


Joined: 05 Sep 2011
Posts: 2420
Location: Germany

PostPosted: Tue 04 Sep 2012, 21:47    Post_subject:  Writing Text from Clipboard to a Text File  

Hi.

If i have selected some text and/or a web address etc.pp. i can copy the text (using strg-c) and paste it into a text file opened in a text editor (using strg-v). I want to write such copied text into a text file - USING BASH.

How could this be done? Is it possible?

RSH

_________________
LazY Puppy
RSH's DNA
SARA B.
Back to top
View user's profile Send_private_message 
seaside

Joined: 11 Apr 2007
Posts: 887

PostPosted: Tue 04 Sep 2012, 23:01    Post_subject:  

RSH,

In puppies you can use-
Code:
 xclip -o >/path/to/your.txt

to copy text on clipboard

Cheers,
s
Back to top
View user's profile Send_private_message 
Flash
Official Dog Handler


Joined: 04 May 2005
Posts: 11118
Location: Arizona USA

PostPosted: Tue 04 Sep 2012, 23:43    Post_subject:  

I've had pretty good luck highlighting (selecting) the text I want to copy (that's all - just select it, no need to "copy"), then, in the window where I want to paste the text, either simultaneously left and right clicking, or, if the mouse has a scroll wheel, clicking the scroll wheel.
Back to top
View user's profile Send_private_message 
RSH


Joined: 05 Sep 2011
Posts: 2420
Location: Germany

PostPosted: Wed 05 Sep 2012, 00:02    Post_subject:  

Thanks, seaside.

I did never hear of xclip, works fine.

This will add a new feature to my 1st-Anniversary-Application - which is the new LazY FReD downloader.

It's now exactly one year ago, as i did join the forum

The LazY FReD (then 1.0.1) will be my 1st-Anniversary-Gift to the members of this forum.

RSH

_________________
LazY Puppy
RSH's DNA
SARA B.
Back to top
View user's profile Send_private_message 
RSH


Joined: 05 Sep 2011
Posts: 2420
Location: Germany

PostPosted: Wed 05 Sep 2012, 00:06    Post_subject:  

Flash wrote:
I've had pretty good luck highlighting (selecting) the text I want to copy (that's all - just select it, no need to "copy"), then, in the window where I want to paste the text, either simultaneously left and right clicking, or, if the mouse has a scroll wheel, clicking the scroll wheel.

Not, what i was asking for, but a very very useful tip. Tested and works - from geany to nicoedit and from nicoedit to geany.

Thanks! Very Happy

EDIT:

Works also in a single text editor window. Cool

_________________
LazY Puppy
RSH's DNA
SARA B.
Back to top
View user's profile Send_private_message 
Display_posts:   Sort by:   
Page 1 of 1 Posts_count  
Post_new_topic   Reply_to_topic View_previous_topic :: View_next_topic
 Forum index » Off-Topic Area » Programming
Jump to:  

Rules_post_cannot
Rules_reply_cannot
Rules_edit_cannot
Rules_delete_cannot
Rules_vote_cannot
You cannot attach files in this forum
You can download files in this forum


Powered by phpBB © 2001, 2005 phpBB Group
[ Time: 0.0474s ][ Queries: 12 (0.0051s) ][ GZIP on ]