• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 366
  • Last Modified:

unix command to find data

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
shihabf
Asked:
shihabf
1 Solution
 
biraCommented:
to read the 100 first:
    head -100 yourfile

to read the 100 last:

   tail -100 yourfile
0

Featured Post

What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now