Hi Everybody,
I need a help. I have the follow code and I need read the first line of the hosts file. Each line from the file have the format "hostname;IPAddress", on line 4 I just need of the hostname, ok this works! On line 5 I need the hostname before the ipaddr word and the IPAddress after the ipaddr word, but when I run the script, the ipaddr is read like a argument from cut command. How I make this filter works?
exit
I really apreciate you help!
Last edited by Scrutinizer; 04-04-2016 at 11:06 PM..
Reason: code tags
Hi All,
I have space delimited file similar to the one as shown below.. I need to convert it as a pipe delimited, the values inside the pipe delimited file should be as highlighted...
AA ATIU2345098809 009697 005374
BB ATIU2345097809 005445 006518
CC ATIU9685098809 003215 003571
DD... (7 Replies)
I have a file which was pipe delimited, I need to make it tab delimited. I tried with sed but no use
cat file | sed 's/|//t/g'
The above command substituted "/t" not tab in the place of pipe.
Sample file:
abc|123|2012-01-30|2012-04-28|xyz
have to convert to:
abc 123... (6 Replies)
Hi, I have a question how to cut the column from non delimited file
This is my file
gene_id ENSG00000223972 transcript_id ENST00000456328 exon_number 1 gene_biotype pseudogene gene_name DDX11L1 transcript_name DDX11L1-002 tss_id TSS26614
gene_id ENSG00000223972 transcript_id ENST00000515242... (1 Reply)
Hi All,
I need a unix script to convert .csv files to .skv files (changing a comma delimited file to a semi colon delimited file). I am a unix newbie and so don't know where to start. The script will be scheduled using cron and needs to convert each .csv file in a particular folder to a .skv... (4 Replies)
Hi How to make tab delimited file to space delimited?
in put file:
ABC kgy
jkh ghj
ash kjl
o/p file:
ABC kgy
jkh ghj
ash kjl
Use code tags, thanks. (1 Reply)
Hello ppl
I have a requirement to split (cut in unix) a file (A.txt) which is a pipe delimited file into A1.txt and A2.txt
Now I have to join (paste in unix) this A2.txt with external file A3.txt to form
output file A4.txt which should be CSV (comma separated file) so that third party can... (25 Replies)
Hi, I have a rquirement in unix as below .
I have a text file with me seperated by | symbol and i need to generate a excel file through unix commands/script so that each value will go to each column.
ex:
Input Text file:
1|A|apple
2|B|bottle
excel file to be generated as output as... (9 Replies)
Hi,
I am wanting to create a script that will construct a SQL statement based on a a space delimited string that it read from a config file.
Example of the SQL will be
For example, it will read a string like "AAA BBB CCC" and assign to a variable named IN_STRING.
I then concatenate... (2 Replies)
Discussion started by: newbie_01
2 Replies
LEARN ABOUT OSF1
xcutsel
xcutsel(1X)xcutsel(1X)NAME
xcutsel - interchange between cut buffer and selection
SYNOPSIS
xcutsel [-toolkitoption...] [-selection selection] [-cutbuffer number]
OPTIONS
xcutsel accepts all of the standard X Toolkit command line options as well as the following: This option specifies the name of the selec-
tion to use. The default is PRIMARY. The only supported abbreviations for this option are "-select", "-sel" and "-s", as the standard
toolkit option "-selectionTimeout" has a similar name. This option specifies the cut buffer to use. The default is cut buffer 0.
DESCRIPTION
The xcutsel program is used to copy the current selection into a cut buffer and to make a selection that contains the current contents of
the cut buffer. It acts as a bridge between applications that do not support selections and those that do.
By default, xcutsel will use the selection named PRIMARY and the cut buffer CUT_BUFFER0. Either or both of these can be overridden by com-
mand line arguments or by resources.
An xcutsel window has the following buttons: When this button is pressed, xcutsel exits. Any selections held by xcutsel are automatically
released. When this button is pressed, xcutsel copies the current selection into the cut buffer. When this button is pressed, xcutsel
converts the current contents of the cut buffer into the selection.
The button labels reflect the selection and cutbuffer selected by command line options or through the resource database.
When the "copy 0 to PRIMARY" button is activated, the button will remain inverted as long as xcutsel remains the owner of the selection.
This serves to remind you which client owns the current selection. Note that the value of the selection remains constant; if the cutbuffer
is changed, you must again activate the copy button to retrieve the new value when desired.
X DEFAULTS
This program accepts all of the standard X Toolkit resource names and classes as well as: This resource specifies the name of the selection
to use. The default is PRIMARY. This resource specifies the number of the cut buffer to use. The default is 0.
WIDGET NAMES
The following instance names may be used when user configuration of the labels in them is desired: This is the "copy SELECTION to BUFFER"
button. This is the "copy BUFFER to SELECTION" button. This is the "quit" button.
BUGS
There is no way to change the name of the selection or the number of the cut buffer while the program is running.
SEE ALSO X(1X), xclipboard(1X), xterm(1X), text widget documentation, individual client documentation for how to make a selection.
AUTHOR
Ralph R. Swick, DEC/MIT Project Athena
xcutsel(1X)