| UNIX/Linux Forum Archives · Rules and Guidelines · Disclaimer |
Help
Search
Members
Calendar
|
| Welcome Guest ( Log In | Register ) | Resend Validation Email |
![]() ![]() ![]() |
| gilead29 |
Posted: May 30 2005, 07:12 AM
|
|
Newbie ![]() Group: Members Posts: 1 Member No.: 1021 Joined: 30-May 05 |
Hello,
I have a file like this: BBR 0029011 090 L $$ap. lea BBR 0030170 090 L $$aEJOURNAL-ACADEMIC SEARCH BBR 0030170 090 L $$aEJOURNAL-PROQUEST BBR 0030453 090 L $$ap. jou BBR 0030453 090 L $$aEJOURNAL-ACADEMIC SEARCH BBR 0030453 090 L $$aEJOURNAL-PROQUEST BBR 0030577 090 L $$ap. cri I would like to delete lines (gradually) first, line1,4,7 then lines 2, 5 Is there any script or command to do il globally , the file is huge. Many thanks |
| vibhor_agarwalin |
Posted: May 30 2005, 10:21 AM
|
|
User Level: 3 ![]() ![]() ![]() Group: Members Posts: 34 Member No.: 788 Joined: 1-February 05 |
you can write a small script like:
cat nos 1 4 7 2 5 for i in `cat nos`; do sed -e "$i/d/" done; Not sure of the syntax. |
![]() |
![]() ![]() ![]() |