01-03-2008
but i was hoping for awk or cut
10 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
hi again...need new help guys:p
the file contains following infos...
users/abc/bla1.exe
newusers/defgh/ik/albg2.exe
users2/opww/ertz/qqwertzu/rwerwew.exe
how to get the file content into...
users/abc/
newusers/defgh/ik/
users2/opww/ertz/qqwertzu/
with...
you can erase the... (5 Replies)
Discussion started by: svennie
5 Replies
2. Shell Programming and Scripting
Hi
Can i have an example where i should be able to cut columns
(like for eg cut -c 1-3) in sed or awk.
Regards
Dhana (12 Replies)
Discussion started by: dhanamurthy
12 Replies
3. Shell Programming and Scripting
I have been reading for a few hours trying to educate myself enough to accomplish this task, so please know I have performed some research. Unfortunately, I am not a *NIX scripting expert, or a coder. I come from a network background instead.
SO, here is my desired outcome. I have some Cisco... (5 Replies)
Discussion started by: abbzer0
5 Replies
4. Shell Programming and Scripting
Hi,
sorry for newbie question :confused:
can't find how to cut ?
from
1000 2000 word some text1....
100 200 300 word some text2....
10 20 30 abc word some text3....
to
some text1....
some text2....
some text3.... (7 Replies)
Discussion started by: Trump
7 Replies
5. UNIX for Dummies Questions & Answers
Hi,
From the file "example" with lines like below, I need the int value associated with ENG , i.e, 123
SUB: ENG123, GROUP 1
SUB: HIS124, GROUP 1
..
..
Normally , i do
grep ENG example | cut -d ' ' -f 2 | cut -c 4-6
Is it possible to do it in simpler way using awk/sed ?
... (5 Replies)
Discussion started by: priyam
5 Replies
6. Shell Programming and Scripting
Hi Gurus,I have a seemingly simple problem but struggling with it.It is as follows :
I/p string -
ABCDEFGHIJ20100909.txt
desired o/p -
AB,DEF,20100909,ABCDEFGHIJ20100909.txt
How to achieve it ?Thanks in advance.
Please use code tags, thank you (20 Replies)
Discussion started by: sumoka
20 Replies
7. Shell Programming and Scripting
Hello,
i have a file, i open the file and read the line, i want to get the first item in the csv file and also teh third+6 item and wirte it to a new csv file. only problem is that using echo it takes TOO LONG:
please help a newbie. below is my code:
WorkingDir=$1
FileName=`cut -d ',' -f... (2 Replies)
Discussion started by: limamichelle
2 Replies
8. Shell Programming and Scripting
hyper link- abc:8081/xyz/2.5.6/rtyp-2.5.6.jar
Needs to get "rtyp-2.5.6.jar" i.e character after last backslash "/"
how to do this using sed/awk??
help is highly appreciated. (7 Replies)
Discussion started by: kkscm
7 Replies
9. Shell Programming and Scripting
HI All,
I am new to unix. I have a file would like to do some editing by using awk, cut and sed. Could anyone help?
This file contain 100 lines. There are one line for example:
2,"102343454",5060,"579668","579668","579668","SIP",,,"825922","035885221283026",1,268,"00:59:00.782 APR 17... (2 Replies)
Discussion started by: mimilaw
2 Replies
10. Shell Programming and Scripting
How can I get the following result of the "ping" command?
Example:
root@OpenWrt:~# ping google.com -c1 | sed -n 1p
PING google.com (216.58.210.14): 56 data bytes
How can I get the data only in the range of ()?
The result of what I want to get it:
216.58.210.14
Please use code... (4 Replies)
Discussion started by: andrewxxx
4 Replies
LEARN ABOUT XFREE86
xcutsel
XCUTSEL(1) General Commands Manual XCUTSEL(1)
NAME
xcutsel - interchange between cut buffer and selection
SYNOPSIS
xcutsel [ -toolkitoption ...] [-selection selection] [-cutbuffer number]
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 don't 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:
quit
When this button is pressed, xcutsel exits. Any selections held by xcutsel are automatically released.
copy PRIMARY to 0
When this button is pressed, xcutsel copies the current selection into the cut buffer.
copy 0 to PRIMARY
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.
OPTIONS
Xcutsel accepts all of the standard X Toolkit command line options as well as the following:
-selection name
This option specifies the name of the selection 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.
-cutbuffer number
This option specifies the cut buffer to use. The default is cut buffer 0.
X DEFAULTS
This program accepts all of the standard X Toolkit resource names and classes as well as:
selection (class Selection)
This resource specifies the name of the selection to use. The default is PRIMARY.
cutBuffer (class CutBuffer)
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:
sel-cut (class Command)
This is the ``copy SELECTION to BUFFER'' button.
cut-sel (class Command)
This is the ``copy BUFFER to SELECTION'' button.
quit (class Command)
This is the ``quit'' button.
SEE ALSO
X(7), xclipboard(1), xterm(1), text widget documentation, individual client documentation for how to make a selection.
BUGS
There is no way to change the name of the selection or the number of the cut buffer while the program is running.
AUTHOR
Ralph R. Swick, DEC/MIT Project Athena
XFree86 Version 4.7.0 XCUTSEL(1)