• Status: Solved
  • Priority: Medium
  • Security: Private
  • Views: 46
  • Last Modified:

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
0
sam2929
Asked:
sam2929
1 Solution
 
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
Upgrade your Question Security!

Your question, your audience. Choose who sees your identity—and your question—with question security.

 
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
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Cloud Class® Course: Microsoft Windows 7 Basic

This introductory course to Windows 7 environment will teach you about working with the Windows operating system. You will learn about basic functions including start menu; the desktop; managing files, folders, and libraries.

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