pavithra123
IS-IT--Management
In a file i have a line of numbers & I use SED to delete
the un-wanted lines, The problem is when I want to delete
00000000000000066666 these lines I use
/00000000000000066666/d in a file template and to delete
00000000000000006666 I use
/00000000000000006666/d In the same template file (16 zeros ), But by mistake if someone uses
14 zeros in the template file ie
/000000000000006666/d
, it deletes both the ones with 15 zeros and 16 zeros.
This is the normal behaviour of the SED, But I want to
to delete the exact line if it matches, I tried the exact
match expressions like
/0000000000000000\(6\{3\}\)/d
It does not seem to work any help will be greatly appreciated.
Pavithra
the un-wanted lines, The problem is when I want to delete
00000000000000066666 these lines I use
/00000000000000066666/d in a file template and to delete
00000000000000006666 I use
/00000000000000006666/d In the same template file (16 zeros ), But by mistake if someone uses
14 zeros in the template file ie
/000000000000006666/d
, it deletes both the ones with 15 zeros and 16 zeros.
This is the normal behaviour of the SED, But I want to
to delete the exact line if it matches, I tried the exact
match expressions like
/0000000000000000\(6\{3\}\)/d
It does not seem to work any help will be greatly appreciated.
Pavithra