Solved

Unix Command to extract part of file (stating from 6 line thru 15th line

Posted on 2007-03-19
1
2,685 Views
Last Modified: 2013-12-06
How can I copy part of the text from unix file. I know the beginning start line and how many line to extract. I need a UNIX command
0
Comment
Question by:vish3210
1 Comment
 
LVL 58

Accepted Solution

by:
amit_g earned 500 total points
ID: 18752448
sed -n '6,15p' YourFileName
0

Featured Post

Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Move nodes from one TSM to another. 3 95
NTP Server in VMware 5 377
awk sed 8 102
UNIX Script. Send email if failure 8 55
When you do backups in the Solaris Operating System, the file system must be inactive. Otherwise, the output may be inconsistent. A file system is inactive when it's unmounted or it's write-locked by the operating system. Although the fssnap utility…
In tuning file systems on the Solaris Operating System, changing some parameters of a file system usually destroys the data on it. For instance, changing the cache segment block size in the volume of a T3 requires that you delete the existing volu…
Learn how to find files with the shell using the find and locate commands. Use locate to find a needle in a haystack.: With locate, check if the file still exists.: Use find to get the actual location of the file.:
This video shows how to set up a shell script to accept a positional parameter when called, pass that to a SQL script, accept the output from the statement back and then manipulate it in the Shell.

685 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question