9 More Discussions You Might Find Interesting
1. Solaris
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
2. Shell Programming and Scripting
Hello. I've made a simple script which asks the user to input a hash and then runs a command that replaces the variable $hash with what the user inserted. The ting is that when the programm asks for input I can't paste anything there..! any clues?? :wall: (8 Replies)
Discussion started by: louboulos
8 Replies
3. UNIX for Dummies Questions & Answers
hi all,
i am newbie to Unix scripting..
I am writing a script which will have a line of commands, which needs to be copied to clipboard.
Any ideas welcome..
Usage::
I am using the script in this way, The script will have some lines (like below)
export TERM=xterm; cd test_env; TMOUT=0
... (1 Reply)
Discussion started by: gkarthik.gk
1 Replies
4. UNIX for Advanced & Expert Users
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
5. UNIX for Dummies Questions & Answers
input1
15 150
input2
x 10 100
input3
y 20 200
z 34 44
cmd
paste -d "\t" input1 input2 input3 >>output
output (1 Reply)
Discussion started by: repinementer
1 Replies
6. Shell Programming and Scripting
Hi.
I have an interesting problem and i couldn't find out the solution.
I have two variables in which there are a lot of lines finished by \n. I would like to concatenate this two variables into one in this format:
var1var2
var1var2
.
.
.
I could do this simply by command paste but it works... (32 Replies)
Discussion started by: samos
32 Replies
7. Shell Programming and Scripting
when I do a df -k for a particular mount i get the result like this
Filesystem 1K-blocks Used Available Use% Mounted on
/dev/ 4128448 3527496 391240 91% /
I need to extract the value 91 from this and use it in my script in an if condition. How will i do it Please advice. (8 Replies)
Discussion started by: codeman007
8 Replies
8. UNIX for Dummies Questions & Answers
For examples, I have typed 4 commands in the command prompt:
ls -la
rm -rf /home/user1
du -k /home
find . -name "abc.out" -print
And now I want to retrieve the command which begin with letter "r" (i.e. rm -rf /home/user1), what can I do? (5 Replies)
Discussion started by: laum
5 Replies
9. UNIX for Advanced & Expert Users
I wonder if any body can help me with a command i am struggling with. I have a file with around 400 lines in, in a program i have it pulls out each line at a time so that data from the line can be cross referenced with another file. If it finds a match it pulls out a ocde from the second file, this... (5 Replies)
Discussion started by: mariner
5 Replies
Clipboard(3) User Contributed Perl Documentation Clipboard(3)
NAME
Tk::clipboard - Manipulate Tk clipboard
SYNOPSIS
$widget->clipboardOption?(args)?
DESCRIPTION
This command provides an interface to the Tk clipboard, which stores data for later retrieval using the selection mechanism. In order to
copy data into the clipboard, clipboardClear must be called, followed by a sequence of one or more calls to clipboardAppend. To ensure
that the clipboard is updated atomically, all appends should be completed before returning to the event loop.
The following methods are currently supported:
$widget->clipboardClear
Claims ownership of the clipboard on $widget's display and removes any previous contents. Returns an empty string.
$widget->clipboardAppend(?-format=>format?,?-type=>type?,?--?,data)
Appends data to the clipboard on $widget's display in the form given by type with the representation given by format and claims
ownership of the clipboard on $widget's display.
Type specifies the form in which the selection is to be returned (the desired ``target'' for conversion, in ICCCM terminology), and
should be an atom name such as STRING or FILE_NAME; see the Inter-Client Communication Conventions Manual for complete details.
Type defaults to STRING.
The format argument specifies the representation that should be used to transmit the selection to the requester (the second column
of Table 2 of the ICCCM), and defaults to STRING. If format is STRING, the selection is transmitted as 8-bit ASCII characters.
See the Tk::Selection documentation for explanation of what happens if format is not STRING. Note that arguments passed to
clipboardAppend are concatenated before conversion, so the caller must take care to ensure appropriate spacing across string
boundaries. All items appended to the clipboard with the same type must have the same format.
A -- argument may be specified to mark the end of options: the next argument will always be used as data. This feature may be
convenient if, for example, data starts with a -.
$widget->clipboardGet( ?-type? );
Retrieve data from the clipboard on widget's display. -type specifies the form in which the data is to be returned and should be an
atom name such as STRING or FILE_NAME. Type defaults to STRING. This command is equivalent to "SelectionGet( -selection =>
'CLIPBOARD' )".
KEYWORDS
clear, format, clipboard, append, selection, type
perl v5.16.3 2014-06-10 Clipboard(3)