sed coding


 
Thread Tools Search this Thread
Top Forums UNIX for Dummies Questions & Answers sed coding
# 1  
Old 01-28-2008
sed coding

What this command sed "/[\t][:0123456789]*$/d" means?
izzit add commas to numeric strings, changing "1234567" to "1,234,567" ?
# 2  
Old 01-29-2008
one simple idea to get a abstract idea about the sed script or command doing
see the command
sed "/[\t][:0123456789]*$/d"

here d is the command and thus it does some delete operation
and since there is no s command it can be sure that it does not do a pattern substitution

here the pattern is
/[\t][:0123456789]*$/

and it says the pattern contains tab then may be : or any digit then anything and then end

please try to give examples to prove what u feel or demand to be true

Rakesh UV
 
Login or Register to Ask a Question

Previous Thread | Next Thread

6 More Discussions You Might Find Interesting

1. What is on Your Mind?

Naive coding...

"Naive coding." (Apologies for any typos.) I came across this phrase a couple of weeks ago and it has made me decide to set off a discussion. I had never heard of it before but I did some research and discovered that I probably fall into this category. My phrase is: "I code to work, not... (10 Replies)
Discussion started by: wisecracker
10 Replies

2. Shell Programming and Scripting

HTTP coding

My company has an in house instant messaging system (like WhatsApp) where users can communicate with each other. I currently have code to email me certain items from my Sparc machine running SunOS 5.10. I want what I am emailing myself to now instant message me. The team that created the messenger... (5 Replies)
Discussion started by: shorty
5 Replies

3. Windows & DOS: Issues & Discussions

Need help with coding

HI, Can some one guide me how to make changes to the script below so that it can load the history of a program to IT server ? Format of data: YYYYMMDD065959.dsk.log YYYYMMDD235959.dsk.log currently both are loaded together. Need to separate them as above format. Thanks in advance. ... (2 Replies)
Discussion started by: crazydude80
2 Replies

4. Shell Programming and Scripting

Need help with coding

HI, Can some one guide me how to make changes to the script below so that it can load the history of a program to IT server ? Format of data: YYYYMMDD065959.dsk.log YYYYMMDD235959.dsk.log currently both are loaded together. Need to separate them as above format. Thanks in advance. ... (1 Reply)
Discussion started by: crazydude80
1 Replies

5. UNIX for Dummies Questions & Answers

pro*c coding

Hi All, I am new to pro*C. I have a select statement as select a.ename,a.sal,a.empno from emp where &n=(select count(distinct(b.sal)) from emp b where a.sal<=b.sal for this query I have to write a pro*C program. So can you please send me the complete code. Then I will foloow the same... (1 Reply)
Discussion started by: user71408
1 Replies

6. UNIX for Advanced & Expert Users

can I use this coding

I apologise because I had pasted this question in the newbies forum first (because i am a bit of a newbie) but thought it might be better suited in here if i have to sepearate parameters can I use this syntax especially the or part (||) and is this correct if (6 Replies)
Discussion started by: w33man
6 Replies
Login or Register to Ask a Question