Sponsored Content
Operating Systems Solaris How to split 10GB file into small Sizes Post 302675519 by zimmyyash on Monday 23rd of July 2012 07:36:07 AM
Old 07-23-2012
supose this is my file

abc.log 10GB

i want this to be
abc1.log 1gb
abc.log 1gb
------ and so one

Please share the command
 

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Split a file into 16 small files

Hi I want to split a file that has 'n' number of records into 16 small files. Can some one suggest me how to do this using Unix script? Thanks rrkk (10 Replies)
Discussion started by: rrkks
10 Replies

2. Shell Programming and Scripting

Split large file and add header and footer to each small files

I have one large file, after every 200 line i have to split the file and the add header and footer to each small file? It is possible to add different header and footer to each file? (7 Replies)
Discussion started by: ashish4422
7 Replies

3. Shell Programming and Scripting

Can I split a 10GB file into 1 GB sizes using my repeating data pattern

I'm not a unix guy so excuses my ignorance... I'm the database ETL guy. I'm trying to be proactive and devise a plan B for a ETL process where I expect a file 10X larger than what I process daily for a recast job. The ETL may handle it but I just don't know. This file may need to be split... (3 Replies)
Discussion started by: john091
3 Replies

4. Shell Programming and Scripting

Help with file sizes

I have 2 big files in the size of gb. They are same with respect to content, both are “,” delimited. Now both of them are created by two different processes but has the same logic. The problem is they are differing only in few bytes for e.g one file is 202195751 bytes other is 202195773. So... (2 Replies)
Discussion started by: dsravan
2 Replies

5. UNIX for Dummies Questions & Answers

How to split a huge file into small pieces (per 2000 columns)?

Dear all, I have a big file:2879(rows)x400,170 (columns) like below. I 'd like to split the file into small pieces:2879(rows)x2000(columns) per file (the last small piece will be 2879x170. So far, I only know how to create one samll piece at one time. But actually I need to repeat this work... (6 Replies)
Discussion started by: forevertl
6 Replies

6. Shell Programming and Scripting

perl cmd to remove the control-Z character at end of 10GB file

In a 10-50GB file , at end of file there is Control-z character tried the below options, 1. perl -p -i -e 's/^Z//g' new.txt 2. perl -0777lwi -032e0 new.txt and Sed command, dos2unix etc it takes more time to remove the control-z. need a command or perl program to GO TO LAST LINE OF FILE ... (7 Replies)
Discussion started by: prsam
7 Replies

7. Shell Programming and Scripting

Split a large array into small chunks

Hi, I need to split a large array "@sharedArray" into 10 small arrays. The arrays should be like @sharedArray1,@sharedArray2,@sharedArray3...so on.. Can anyone help me with the logic to do so :(:confused: (6 Replies)
Discussion started by: rkrish
6 Replies

8. Shell Programming and Scripting

Is it possible to create 10GB file in Linux and transferring the file to other remote server

Hi folks, Is it possible to create 10GB file in linux and transferring the file to other remote server? Regards, J (3 Replies)
Discussion started by: scriptscript
3 Replies

9. Shell Programming and Scripting

How to split this txt file into small files?

Dear shell experts, I would like to spilt a txt file into small ones. However, I did not know how to program use shell. If someone could help, it is greatly appreciated! Specifically, I supposed there is file named A.txt. The content of the file likes this: Subject run condtion ACC time... (3 Replies)
Discussion started by: psychmyluo
3 Replies

10. UNIX for Beginners Questions & Answers

Split large file into 24 small files on one hour basis

I Have a large file with 24hrs log in the below format.i need to split the large file in to 24 small files on one hour based.i.e ex:from 09:55 to 10:55,10:55-11:55 can any one help me on this.! ... (20 Replies)
Discussion started by: Raghuram717
20 Replies
BOS_GETLOG(8)						       AFS Command Reference						     BOS_GETLOG(8)

NAME
       bos_getlog - Prints a server process's log file

SYNOPSIS
       bos getlog -server <machine name> -file <log file to examine>
	   [-cell <cell name>] [-noauth] [-localauth] [-help]

       bos getl -s <machine name> -f <log file to examine>
	   [-c <cell name>] [-n] [-l] [-h]

DESCRIPTION
       The bos getlog command displays on the standard output stream the specified log file from the machine named by the -server argument. The
       BOS Server fetches the log file from the /var/log/openafs directory unless an alternate pathname is provided as part of the -file argument.

CAUTIONS
       Log files can grow quite large, especially for the database server processes. To keep them to a manageable size, periodically either use
       the UNIX rm command to truncate each log file, or use the bos restart command to restart each process.

       It can take up to five minutes after the file is removed or process restarted for the space occupied by a log file to become available.

OPTIONS
       -server <machine name>
	   Indicates the server machine from which to retrieve the log file.  Identify the machine by IP address or its host name (either fully-
	   qualified or abbreviated unambiguously). For details, see bos(8).

       -file <log file to examine>
	   Names the log file to display. If a filename only is provided, the BOS Server fetches the log file from the /var/log/openafs directory;
	   the standard values are:

	   AuthLog
	       The Authentication Server (kaserver) log file.

	   BackupLog
	       The Backup Server (buserver) log file.

	   BosLog
	       The BOS Server (bosserver) log file.

	   FileLog
	       The File Server (fileserver) log file.

	   SalvageLog
	       The Salvager (salvager) log file.

	   VLLog
	       The Volume Location (VL) Server (vlserver) log file.

	   VolserLog
	       The Volume Server (volserver) log file.

	   If a pathname and filename are provided, the log file is retrieved from the indicated directory. Partial pathnames are interpreted
	   relative to the /var/log/openafs directory.

       -cell <cell name>
	   Names the cell in which to run the command. Do not combine this argument with the -localauth flag. For more details, see bos(8).

       -noauth
	   Assigns the unprivileged identity "anonymous" to the issuer. Do not combine this flag with the -localauth flag. For more details, see
	   bos(8).

       -localauth
	   Constructs a server ticket using a key from the local /etc/openafs/server/KeyFile file. The bos command interpreter presents the ticket
	   to the BOS Server during mutual authentication. Do not combine this flag with the -cell or -noauth options. For more details, see
	   bos(8).

       -help
	   Prints the online help for this command. All other valid options are ignored.

OUTPUT
       The output is preceded by the line

	  Fetching log file '<filename>'...

       The remainder of the output depends on the particular log file.

EXAMPLES
       The following example displays the FileLog file from the machine "fs3.abc.com":

	  % bos getlog -server fs3.abc.com -file FileLog
	  Fetching log file 'FileLog'...
	  Sun Nov 8 04:00:34 1998 File server starting
	  Sun Nov 8 04:00:39 1998 Partition /vicepa:  attached 21 volumes;
				  0 volumes not attached
	  Sun Nov 8 04:00:40 1998 File Server started Sun Nov 8 04:00:40
				  1998
	  Mon Nov 9 21:45:06 1998 CB: RCallBack (zero fid probe in host.c)
				  failed for host 28cf37c0.22811

PRIVILEGE REQUIRED
       The issuer must be listed in the /etc/openafs/server/UserList file on the machine named by the -server argument, or must be logged onto a
       server machine as the local superuser "root" if the -localauth flag is included.

       When a server is in restricted mode, bos getlog can only return the contents of the salvager's log.

SEE ALSO
       bos(8)

COPYRIGHT
       IBM Corporation 2000. <http://www.ibm.com/> All Rights Reserved.

       This documentation is covered by the IBM Public License Version 1.0.  It was converted from HTML to POD by software written by Chas
       Williams and Russ Allbery, based on work by Alf Wachsmann and Elizabeth Cassell.

OpenAFS 							    2012-03-26							     BOS_GETLOG(8)
All times are GMT -4. The time now is 03:50 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy