Make file small to view data

Hi,
I have big Unix file aa.0016.s0 which I am unable to open in notepad ++ can make that file small and then open it in notepad

Thanks
sam2929Asked:
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

x
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

JohnBusiness Consultant (Owner)Commented:
If it is just a large text file, use Ultra Edit to open it. Ultra Edit can handle any size of text file. (ultraedit.com).

You can try it as a trial to see if it fits your needs. I have been using it for decades now.
0
sam2929Author Commented:
I can’t load any external software is it possible to do head or tail and just view in notepad ++
0
JohnBusiness Consultant (Owner)Commented:
You would have to write a program to capture the first 64K Bytes of records and then load that.
0
C++ 11 Fundamentals

This course will introduce you to C++ 11 and teach you about syntax fundamentals.

sam2929Author Commented:
K can anyone help with that
0
SujithData ArchitectCommented:
Are you saying that you don't want to see the whole contents of the file?

Then why not

head -<some number of lines> <your file> > test.txt

and open that file in your editor?
0
serialbandCommented:
Unix has all the tools you need to view and manipulate large text files.  You would use head and tail to trim off portions of the file.

If you want lines 1000 to 2000, you would do the following:
head -2000 <your_file> | tail -1000 > New_file.txt

If you want lines 45000 to 49000:
head -49000 <your_file> | tail -45000 > New_file.txt


If you want lines 45000 to 49000 on the screen:
head -49000 <your_file> | tail -45000 |more
or
head -49000 <your_file> | tail -45000 |less


If you're searching for particular lines:
grep <search_string> <your_file>
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Unix OS

From novice to tech pro — start learning today.