09-23-2014
thanks
Quote:
Originally Posted by
gandolf989
In Unix/Linux if you want output from one command to go into something else you just redirect the output. For example if I want to create and environment vaiable with the timestamp I can just do the following:
export CURR_TIME=`/bin/date +%Y%m%d_%H%M%S`
Why don't you just redirect the output that you want in the text file into the text file?
Because it is the idea to copy that (special) format of text in a application GUI ... so putting it in a variable is not helping me to solve the problem.
9 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
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! (5 Replies)
Discussion started by: ilak1008
5 Replies
2. Solaris
I m not able to copy the text present on the tree's node to terminal or other text editor in solaris. I m using <Shift><control> C and V comaand for the same but the text is not being copied and pasted on the text pad or the terminal window.
While the same is possible in windows OS using ctrl+c... (3 Replies)
Discussion started by: friendanoop
3 Replies
3. UNIX for Dummies Questions & Answers
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
4. UNIX for Dummies Questions & Answers
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. 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
6. Shell Programming and Scripting
Hello all,
I've done a bit of clipboard transformation scripting using xclip before, piping contents with " xclip -o -selection clipboard " to grep, sed, awk, then back into the clipboard with " xclip -i -selection clipboard " ... but I am not a fantastically skilled user of either of the three... (4 Replies)
Discussion started by: la2ar0
4 Replies
7. 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
8. UNIX for Dummies Questions & Answers
I mainly use Max/MSP for my audio programming, but today I am working on a project that requires the use of shell. Is it possible to do this?
Retrieve the contents of the clipboard.
Send a keystroke to an application without loosing focus, for example, I want to initiate a paste command (with... (0 Replies)
Discussion started by: fhill2
0 Replies
9. UNIX for Dummies Questions & Answers
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
LEARN ABOUT DEBIAN
slmseg
SLMSEG(1) User Contributed Perl Documentation SLMSEG(1)
NAME
slmseg - maximum matching segment Chinese text.
SYNOPSIS
slmseg -d dict_file [option]... [corpus_file]...
DESCRIPTION
slmseg is a tool for segmenting Chinese text into words using maximum matching algorithm. slmseg segments corpus_file, or standard input if
no filename is specified, and write the segmented result to standard output.
OPTIONS
-d dict_file
Use dict_file as lexicon. A default lexicon can be found at /usr/share/sunpinyin-slm/dict.utf8.
-f,--format (text|bin)
Output Format, can be 'text' or 'bin'. default 'bin'. Normally, in text mode, word text are output, while in binary mode, binary short
integer of the word-ids are written to stdout.
-s, --stok STOK_ID
Sentence token id. Default 10. It will be written to output in binary mode after every sentence.
-i, --show-id
Show Id info. Under text output format mode, attach id after known words. If under binary mode, print id(s) in text.
-m, --model language-model-file Speficy the language model file. This file is always generated by slmthread.
NOTES
Under binary mode, consecutive id of 0 are merged into one 0. Under text mode, no space are inserted between unknown-words.
AUTHOR
Originally written by Phill.Zhang <phill.zhang@sun.com>. Currently maintained by Kov.Chai <tchaikov@gmail.com>.
SEE ALSO
mmseg(1), ids2ngram (1).
perl v5.14.2 2012-06-09 SLMSEG(1)