LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 02-20-2011, 03:08 AM   #1
Darshini Shetty
LQ Newbie
 
Registered: Jan 2011
Location: Mumbai,India
Posts: 1

Rep: Reputation: 0
Question sed editor in linux


Using sed command
1) display first 3 lines of a file.
2) display last lines of a file.
3) display 3rd and 4th lines of a file.
4) Insert 2 more records and save the new file as "newsed"
5) Delete the last 2 records from the file "newsed"

Last edited by Darshini Shetty; 02-27-2011 at 08:25 AM. Reason: I got all answers except the last one .i couldn't find it anywhere.neither in my book nor in the site recommended by you
 
Old 02-20-2011, 03:15 AM   #2
EricTRA
LQ Guru
 
Registered: May 2009
Location: Gibraltar, Gibraltar
Distribution: Fedora 20 with Awesome WM
Posts: 6,805
Blog Entries: 1

Rep: Reputation: 1295Reputation: 1295Reputation: 1295Reputation: 1295Reputation: 1295Reputation: 1295Reputation: 1295Reputation: 1295Reputation: 1295
Hello and Welcome to LinuxQuestions,

Although LinuxQuestions is all about helping others with Linux problems and questions, it will be very hard for you to find anyone willing to do all the work for you. Besides that, this really sounds like homework. There are a lot of very good Sed tutorials on the web, so put in some work yourself. If you show us what you have come up with yourself and where you have doubts, then we'll be able to help you. You'll learn a lot more if you do it yourself instead of us.

Kind regards,

Eric
 
Old 02-20-2011, 03:16 AM   #3
Nylex
LQ Addict
 
Registered: Jul 2003
Location: London, UK
Distribution: Slackware
Posts: 7,464

Rep: Reputation: Disabled
No thanks.

You're not supposed to ask for people to do your homework for you. Do it yourself! This tutorial will probably be useful to you.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
LXer: Open Movie Editor: Linux Video Editor with Plot Twists LXer Syndicated Linux News 0 10-27-2008 10:50 PM
sed editor ? wolfindark Linux - Newbie 1 07-04-2008 03:44 AM
knowing the stream editor SED yawe_frek Programming 2 12-31-2007 12:18 PM
sed (stream editor) problem igor.R Linux - Newbie 11 12-01-2007 11:44 PM
SED Editor or not? RIG12 Programming 6 06-27-2007 01:25 PM


All times are GMT -5. The time now is 08:22 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration