A legendary performer, Ms. James has taken on blues, jazz, and rock and conquered each genre with her inimitable style. This Los Angeles performance finds her singing some of her best known hits.
Tag Archives: BAND
Problem with substitution in sed??
By nikhil jain
Hi alll
I have a file with this content
Code:
Code:
ale,AAM,id2_1_2_1_1,23,2013-01-30,1,1
ale,BAND,id2_1_1_1_1,31,2013-01-28,1,1
ale,CAI,id2_1_1_1_1,23,2013-01-28,1,1
ale,CAI,id2_1_1_1_4,23,2013-01-28,1,1
ale,CAI,id2_1_2_1_1,23,2013-01-30,2,1
ale,NAST,id2_1_1_1_1,23,2013-01-29,1,1
ale,NAST,id2_1_1_1_1,31,2013-01-29,1,1
ale,NST,id2_1_2_1_1,31,2013-01-28,1,1
ale,PAB,id2_1_1_1_1,31,2013-01-30,2,2
ale,PAB,id2_1_2_2_3,23,2013-01-28,1,1
when I’m using this command
Code:
Code:
sed "/id2_1_*/id2_1_*/g"
It is not replacing all the occurences of id2_1_1 to id2_1_*
required o/p is
Code:
Code:
ale,AAM,id2_1_*,23,2013-01-30,1,1
ale,BIAND,id2_1_*,31,2013-01-28,1,1
ale,CAI,id2_1_*,23,2013-01-28,1,1
ale,CNAI,id2_1_*,23,2013-01-28,1,1
ale,CAI,id2_1_*,23,2013-01-30,2,1
ale,NAST,id2_1_*,23,2013-01-29,1,1
ale,NAST,id2_1_*,31,2013-01-29,1,1
ale,NAST,id2_1_*,31,2013-01-28,1,1
ale,PAB,id2_1_*,31,2013-01-30,2,2
ale,PAB,id2_1_*,23,2013-01-28,1,1
s
…read more
Source: FULL ARTICLE at The UNIX and Linux Forums
Short Biggie

More on the Short Biggie site:
Official Short Biggie Web Site
Join the Short Biggie Fan Club (requires a free registered account – Login or register HERE)
See Short Biggie info and upcoming events (Short Biggie no longer books engagements)
Short Biggie the band