Solved

unix command to find data

Posted on 2006-07-11
1
359 Views
Last Modified: 2010-04-21
what is the command that you use in unix to  look at first 100 records from a file

and last 100 records from a file.
0
Comment
Question by:shihabf
1 Comment
 
LVL 6

Accepted Solution

by:
bira earned 125 total points
ID: 17084537
to read the 100 first:
    head -100 yourfile

to read the 100 last:

   tail -100 yourfile
0

Featured Post

Live: Real-Time Solutions, Start Here

Receive instant 1:1 support from technology experts, using our real-time conversation and whiteboard interface. Your first 5 minutes are always free.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
how to check for shares on aix 1 79
Linux : adding the new user with password option, 11 107
cron job says it ran, no results 25 118
Unix Script: Loop over all days of a month 17 95
This tech tip describes how to install the Solaris Operating System from a tape backup that was created using the Solaris flash archive utility. I have used this procedure on the Solaris 8 and 9 OS, and it shoudl also work well on the Solaris 10 rel…
Installing FreeBSD… FreeBSD is a darling of an operating system. The stability and usability make it a clear choice for servers and desktops (for the cunning). Savvy?  The Ports collection makes available every popular FOSS application and packag…
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.:
In a previous video, we went over how to export a DynamoDB table into Amazon S3.  In this video, we show how to load the export from S3 into a DynamoDB table.

786 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