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 Fri 31 Oct 2014, 17:38
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 [5 Posts]  
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: 11129
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 from previous:   Sort by:   
Page 1 of 1 [5 Posts]  
Post new topic   Reply to topic View previous topic :: View next topic
 Forum index » Off-Topic Area » Programming
Jump to:  

You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Powered by phpBB © 2001, 2005 phpBB Group
[ Time: 0.0495s ][ Queries: 11 (0.0067s) ][ GZIP on ]