I have a large file that looks like the below output:
I would like to add a ; after the first 2 occurances of space, for example the above would now look like:
How can this be done with sed or can it?Thanks
Last edited by zaxxon; 01-18-2010 at 10:42 AM..
Reason: use codes tags please, ty
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 SUNOS
vice
VICE(1) General Commands Manual VICE(1)NAME
VICE - Versatile Commodore Emulator and Virtual Commodore Environment
DESCRIPTION
VICE is a multi-platform emulator of the Commodore PET, CBM-II (C610), VIC20, C64, C64DTV, C128 and Plus4 8-bit computers. The emulators
run as separate programs, but have the same user interface, share the same settings and support the same file formats. Also some external
utilities are provided.
VICE is made up of the following programs:
x64 a fast Commodore 64 emulator for the X Window System
x64sc an accurate Commodore 64 emulator for the X Window System
x64dtv a C64DTV emulator for the X Window System
x128 a Commodore 128 emulator for the X Window System
xvic a Commodore VIC20 emulator for the X Window System
xpet a Commodore PET emulator for the X Window System
xplus4 a Commodore Plus4 emulator for the X Window System
xcbm2 a Commodore CBM-II (C610) emulator for the X Window System
c1541 a stand-alone disk image maintenance utility;
petcat a Commodore BASIC de-tokenizer;
The whole documentation for these programs is available in HTML format; the main file should be installed on your system as
/usr/share/doc/vice/html/vice_toc.html .
For up to date news about VICE, have a look at the official home page at
http://vice-emu.sourceforge.net/
SEE ALSO petcat(1), c1541(1)AUTHORS
Andreas Boose <boose@linux.rz.fh-hannover.de>
Dag Lem <resid@nimrod.no>
Tibor Biczo <crown@mail.matav.hu>
Andreas Dehmel <zarquon@t-online.de>
Thomas Bretz <tbretz@ph.tum.de>
Andreas Matthies <andreas.matthies@gmx.net>
Martin Pottendorfer <Martin.Pottendorfer@aut.alcatel.at>
Markus Brenner <markus@brenner.de>
Spiro Trikaliotis <Spiro.Trikaliotis@gmx.de>
Marco van den Heuvel <blackystardust68@yahoo.com>
David Hansel <david@hansels.net>
Daniel Sladic <sladic@eecg.toronto.edu>
Ettore Perazzoli
Teemu Rantanen <tvr@cs.hut.fi>
Andre' Fachat <fachat@physik.tu-chemnitz.de>
Jouko Valta <jopi@stekt.oulu.fi>
Jarkko Sonninen <sonninen@lut.fi>
with several contributions from other people around the world; see the HTML documentation for more information.
VICE Feb 2004 VICE(1)