Operating System - HP-UX
1833016 Members
2974 Online
110048 Solutions
New Discussion

large files...cat command..

 
SOLVED
Go to solution
amonamon
Regular Advisor

large files...cat command..

Helloo..
I have one small question..I was reading man cat..and there stands..
for files greater than or equal to 2 Gbyte see largefile..

I had before one problem with my script where file was bigger then 2GB so I used split commnad..

so I want to make sure is it really true that cat does not work with files greater or = 2 Gbyte ..

Thanks a lot..
5 REPLIES 5
Peter Godron
Honored Contributor

Re: large files...cat command..

Hi,
have just:
Filesystem enabled for largefile
created file a (nearly 2 Gb)
created file b (1000 bytes)

cat a b > c i.e. create a file > 2Gb
Error 0
cat: Cannot write to output.

So it appears to be correct. cat limited to 2Gb
Peter Godron
Honored Contributor

Re: large files...cat command..

Hi (again),
please ignore my first mail. The largefile system failed to change, so was running test on nolargefile system.

This time:

Filesystem enabled for largefile
created file a (nearly 2 Gb)
created file b (1000 bytes)

cat a b > c i.e. create a file > 2Gb
Worked
cat c > d i.e. process file > 2Gb
Worked

So not a problem ,as long as filesystem is largefile enabled !
Bill Hassell
Honored Contributor
Solution

Re: large files...cat command..

All the standard Unix commands were made largefile capable back in the first releases of HP-UX 10.xx. The only commands that aren't compatible are industry standard backup tools such as tar, cpio, dump and so on. Now the word largefile or large does not appear in the man page for cat on any supported version of HP-UX. What version are you running?


Bill Hassell, sysadmin
Peter Godron
Honored Contributor

Re: large files...cat command..

Hi,
Could you please complete the thread by awarding points to helpful answers and summarising the solution for you.

This will help resolution of similar problems in the future.
amonamon
Regular Advisor

Re: large files...cat command..

Thanks a lot..:)