I edited your snippets and rearranged the position of the semicolon so I hope this was correct - if not, you can edit it yourself of course. Please use code tags in future, ty.
Code:
$> sed 's/\([^ ]\) /\1 ;/g' infile
system ; SUNWxwmod ; X Window System kernel modules
system ; SUNWxwoft ; X Window System optional fonts
system ; SUNWxwopt ; X Window System Optional Clients
system ; SUNWxwpft ; X Window System Printer Fonts
please help in making sed singleline command
i need to insert dos new line (CR LF) before
" 34 matching device(s) found on \\cpu1."
" 6 matching device(s) found on \\cpu7."
" 102 matching device(s) found on \\mainserver."
the problem is that sometimes there are both CR LF before strings and... (1 Reply)
Hi !
I'm rather new with sed ... learned a lot already by googling etc ...
The following script should replace all spaces and ends-of-lines with "something (see below).
#!/bin/bash
i=0
while read line
do
fam="H`printf "%06d" $i`"
echo $line | sed -e 's//\t'$fam'\n/g'
i=$(($i+1))... (7 Replies)
Input:
--------------------------
123asd 456sdasda 789a
-------------------------
output wanted:
---------------------
123asd
456sdasda
789a
----------------------
I want this by sed in simple way
please help (I know by: tr ' ' '\n' < inputfile )I want it by sed only (5 Replies)
Hello everyone,
I want to replace all "," (commas) with a blank space
My command thus far is:
cat test.text | sed -e s/\`//g | awk '{print$1" "$2" "$3}'
I'm sure you guys know this, but the SED command that I am using is to get rid of the "`" (tics).
which gives me:
name ... (5 Replies)
Hi,
i have below string -
mynameis arpit
i want output like below -
mynameis\ arpit
that i am getting from below -
temp='mynameis arpit'
echo $temp|sed 's//\\ /g' --> mynameis\ arpit
now i am doing - (2 Replies)
Dear All,
I am new here. Could anyone help to find a sed script for replace the third "," to " "?
input:
abc,def,ghi,jkl,mno,pqr,stu,vxz
output:
abc,def,ghi jkl,mno,pqr,stu,vxz
Many thanks.
Please use code tags next time for your code and data. (2 Replies)
`echo $file | sed 's/ / /g'`
Hey guys I want help in converting the spaces in my file names to '\ ' .
Example:
UK maps --> UK\ maps
Could someone please help me.
I have tried the following sequences already (none of them work):
1)s/ /\ /g
2)s/ /\\ /g
3)s/ /\\\ /g
Can someone... (7 Replies)
Hello
I have a requirement where I need to replace space :61 with !@ :61
Source
:60F:123 :61:151 :61:151 :61:15101
Target
:60F:123 :61:151!@:61:151!@:61:15101
I cant use and command as I don't want the tab to be converted .
commands not working :
sed 's/... (5 Replies)
Discussion started by: kamijia83
5 Replies
LEARN ABOUT X11R4
xorgfoundation
XORGFOUNDATION(7) Miscellaneous Information Manual XORGFOUNDATION(7)NAME
XOrgFoundation - X.Org Foundation information
SYNOPSIS
Release 7.0 of X Version 11 is brought to you by the X.Org Foundation, LLC.
DESCRIPTION
The X.Org Foundation is an independent, not-for-profit 501(c)(3) charity corporation. It was formed in 2004 as the successor to the X.Org
Group at The Open Group. The purpose of the X.Org Foundation is to foster the development, evolution, and maintenance of the X Window Sys-
tem, a comprehensive set of vendor-neutral, system-architecture neutral, network-transparent windowing and user interface standards. Mem-
bership in the X.Org Foundation is free and open to anyone. The X.Org Foundation hosts a public CVS repository of the source code on
Freedesktop.Org.
The X Window System was created in the mid-1980s at the Massachusetts Institute of Technology. In 1988, MIT formed a member-funded consor-
tium to provide the technical and administrative leadership necessary to support further development of the X Window System. In 1992, MIT
and the membership decided it was in their best interests to move the consortium out of MIT and create an independent, stand-alone organi-
zation. All rights to the X Window System were assigned by MIT to X Consortium, Inc. on January 1, 1994. On December 31, 1996 the X Con-
sortium, Inc. closed its doors and all rights to the X Window System were assigned to The Open Group (then known as the Open Software Foun-
dation.)
ADDRESSES
The X.Org Foundation's web site is http://www.x.org/
The X.Org Foundation's public ftp site is ftp://ftp.x.org/
Information about the X.Org Foundation CVS repository is on the Freedesktop.Org web site at http://www.freedesktop.org/Software/xorg
X Version 11 xorg-docs 1.4 XORGFOUNDATION(7)