Explain if a flat file cotains 1000 records how can I get first and last records only?
Answer / Ramesh Bhagat
To get the first and last records from a flat file with 1000 records, you can use the head and tail commands in Unix or Linux. The head command shows the first n lines of a file (by default, it shows the first 10 lines), while the tail command shows the last n lines (by default, it shows the last 10 lines). To get only the first record, you can use head -n 1, and to get only the last record, you can use tail -n +999 (assuming that records are numbered starting from 1).
| Is This Answer Correct ? | 0 Yes | 0 No |
What's a Cube in Rolap?
Hi, Could any one tell me which schema (star and snow flake schema) will take much space? Thanks S.A.K
6 Answers Accenture, IBM, TCS,
What are data validation strategies for data mart validation after loading process?
What are partition points?
When should one use an MD-database (multi-dimensional database) and not a relational one?
Where we use surrogate key explain with example?
What are the advantages of cold fusion?
What are the advantages of raid 1, 1/0, and
What are the reasons to use a chameleon method in data warehousing?
What are the stages that are required in data warehousing?
How can we do data cleaning?
How to create prompts in report net?