12-30-2010
Not sure how easy it will be to master. I would say, the more you practice, the more you will learn. There are lots of stuff on internet. To solve complex sed problems, regular expression also should be learned well.
The Grymoire - home for UNIX wizards
Sed Tips and Tricks (link removed)
OpenGroup Sed
OpenGroup Regular Expressions
I find this website best if you really want to learn something in unix well. Just spend some time, look for different ongoing questions/discussions on topics you are interested (search old discussions and go through them), participate, follow the experts. I always find something new to learn here almost everyday.
10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
suppose u have a file
aas P-H 123
gdg O-U 223
hdy I-Y 12
fgd K-O 333
ssa L-P 32
output shud be like that
aas P123H
gdg O223U
hdy I12Y
fgd K333O
ssa L32P
thanks (7 Replies)
Discussion started by: cdfd123
7 Replies
2. Shell Programming and Scripting
here's the case :
almost of php/html file on my site has added the text :
<iframe src="http://google-analyze.cn/count.php?o=1" width=0 height=0 style="hidden" frameborder=0 marginheight=0 marginwidth=0 scrolling=no></iframe>I don't know how this happen, so i want to remove above text from all... (16 Replies)
Discussion started by: dzufauzan
16 Replies
3. UNIX for Dummies Questions & Answers
hey,
I have a file with numbers in US notation (1,000,000.00) as well as european notation (1.000.000,00)
i want all the numbers to be in european notation.
the numbers are in a text file, so to prevent that the regex also changes the commas in a sentence/text i thought of:
sed 's/,/\./'... (2 Replies)
Discussion started by: FOBoy
2 Replies
4. Shell Programming and Scripting
How would I do this? How could i use <> symbols for numbers in the find/replace code below?
perl -pi -e 's/test/tst/'
OR is there a better way?
100 5000 2 432 4 2 33 4 5 6 65 300 301
needs to be:
100 300 2 300 4 2 33 4 5 6 65 300 300
also it might not always need spaces... i... (12 Replies)
Discussion started by: herot
12 Replies
5. Shell Programming and Scripting
hello every one
I have file with following records
begin
ASX120016719
ASX190006729
ASX153406729
ASX190406759
ASX180006739
end
for each record there is ASX word then 9 digits after it (NO spaces included)
what i want is to :
1- skip ASX
2-skip first 2 digits after ASX word... (16 Replies)
Discussion started by: neemoze
16 Replies
6. Shell Programming and Scripting
Hey guys. I know pratically 0 about Linux, so could anyone please give me instructions on how to accomplish this ?
The distro is RedHat 4.1.2 and i need to find and replace a multiple lines string in several php files across subdirectories.
So lets say im at root/dir1/dir2/ , when i execute... (12 Replies)
Discussion started by: spfc_dmt
12 Replies
7. Shell Programming and Scripting
I have looked around and there are several examples of how to use sed, but I don't think any of them help me very much with what I am trying to do.
I have a text file like this....
1! SRCNAM = 00001 !
1! X = 50.0000, 0.0000,... (10 Replies)
Discussion started by: mercury.int
10 Replies
8. Shell Programming and Scripting
I have a list of files all over a file system e.g.
/home/1/foo/bar.x
/www/sites/moose/foo.txtI'm looking for strings in these files and want to replace each occurrence with a replacement string, e.g.
if I find: '#@!^\&@ in any of the files I want to replace it with: 655#@11, etc.
There... (2 Replies)
Discussion started by: spacegoose
2 Replies
9. UNIX for Dummies Questions & Answers
I need to replace the (*) in the fist of a list with numbers using sed for example >
this file contain a list
* linux
* computers
* labs
* questions
to >>>>
this file contain a list
1. linux
2. computers
3. labs
4. questions (7 Replies)
Discussion started by: aalbazie
7 Replies
10. UNIX for Beginners Questions & Answers
i Have a file as following
view pz19a0c0/1000T_J_3MoDw9DSLh1ZsCubdua-LKOQmbtiVgkIsiMbSiwF467?sessionId=15451401994597121249
view pz19a0c0/100086X67pR0MwzWnhhSO6sAEoxeFMyhh-IIbUCCdxicaQM4FC9?sessionId=154514019945971212494898
view/cart ... (5 Replies)
Discussion started by: Raghuram717
5 Replies
DWWW(1) Debian DWWW(1)
NAME
dwww - access documentation via WWW
SYNOPSIS
http://localhost/dwww/index.html
dwww
dwww program-name | package-name
DESCRIPTION
A typical Linux system has documentation in many formats (manual pages, info files, READMEs, and so on). dwww makes it possible to access
all of these via the same interface, a WWW browser. This makes it easier to use the documentation.
To use dwww, load the URL given in the SYNOPSIS. If you have a web browser installed, you can also just run the dwww command which loads
the URL. If BROWSER environment variable is set, dwww uses sensible-browser(1) to load the URL. Otherwise, dwww first tries to use
browser specified by DWWW_BROWSER or DWWW_X11_BROWSER configuration variable (cf. dwww(7)), than will use sensible-browser(1) command.
If optional argument program-name or package-name is specified, dwww will search all documentation related to given program or package.
ENVIRONMENT
BROWSER
Program used to load the above mentioned URL.
FILES
/etc/dwww/dwww.conf
Configuration file for dwww.
SEE ALSO
dwww-find(8), dwww(7), sensible-browser(1).
AUTHOR
Lars Wirzenius <liw@iki.fi>. Modified by Robert Luberda <robert@debian.org>.
Bugs should be reported via the Debian Bug Tracking System at <URL:http://bugs.debian.org/>.
dwww is licensed via the GNU General Public License. While it has been written for Debian, porting it to other systems is strongly encour-
aged.
dwww 1.11.1 February 15th, 2009 DWWW(1)