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 sometimes they are missing:
in other worlds, if in the middle of string there is "_here_comes_number_ matching device(s)" repace space before_here_comes_number_with CR LF dos newline
Hi, I am working on transforming html code text into the .vert text format. I want to use linux utility sed. I have this regexp which should do the work: s/ \(?!*>\)/\n/g. I use it like this with sed: echo "you <we try> there" | sed 's/ \(?!*>\)/\n/g' ... The demanded output should be:
you
<we... (5 Replies)
Hi,
The following code loops through every file with an error extension and then loops through all XML files in that directory and replaces the target character @ with / . The problem I have is that if there is more than one occurance of @ in each individual file it doesn't replace it. Any... (2 Replies)
I have a large file that looks like the below output:
system SUNWxwmod X Window System kernel modules
system SUNWxwoft X Window System optional fonts
system SUNWxwopt X Window System Optional Clients
system ... (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)
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)
hi I am trying to use SED to replace the line matching a pattern using the command
sed 'pattern c\
new line
' <file1 >file 2
I got two questions
1. how do I insert a blank space at the beginning of new line?
2. how do I use this command to execute multiple command using the -e... (5 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 NETBSD
smsh
SMSH(4) BSD Kernel Interfaces Manual SMSH(4)NAME
smsh -- SMSC LAN9118/LAN9218 Family Ethernet interfaces device driver
SYNOPSIS
smsh0 at gxio? port 0x40000300 gpirq 99
DESCRIPTION
The smsh device driver supports SMSC LAN9118 and LAN9218 Family Ethernet interfaces.
The ISA attachment of the smsh driver supports any LAN9118 Family Ethernet interface on the ISA bus, the on-board LAN9118 Family Ethernet
found in many embedded PCs. However, no ISA attachment has been written yet.
LAN9218 Family supports also HP Auto-MDIX.
MEDIA SELECTION
Media selection done using ifconfig(8) using the standard ifmedia(4) mechanism. Refer to those manual pages for more information.
SEE ALSO ifmedia(4), intro(4), isa(4), mii(4), ifconfig(8)HISTORY
The smsh driver first appeared in NetBSD 6.0.
AUTHORS
The smsh driver was written by KIYOHARA Takashi <kiyohara@kk.iij4u.or.jp>.
BUGS
No ISA attachment yet.
BSD December 2, 2009 BSD