Sponsored Content
Top Forums UNIX for Beginners Questions & Answers Single line archive log files command if exceed certain limit in Linux Post 303042225 by rbatte1 on Thursday 19th of December 2019 08:13:52 AM
Old 12-19-2019
You might discover that sizes considered by find are based on blocks and might not exactly match what you want.

If this is the case and you need it to be perfect, consider running find to get all the possible files then reading each with stat -c '%s' "${filename}" to get the size of the file in bytes.





Robin
 

9 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

Command line buffer limit?

Is there a limit (255 chars?) on the command line?? I'm trying to copy some generated java & class files from one dir to another and ID the old & new versions by: find . -name FFSFIXADminCallbackBean.java I then do a copy and paste of the source and target - $ cp -p source target It... (7 Replies)
Discussion started by: kornshellmaven
7 Replies

2. Shell Programming and Scripting

script to archive all the log files

is there a way to write a script and run with a cron job which archives all the *.log files into .tar.gz. :eek: (0 Replies)
Discussion started by: tintedwindow
0 Replies

3. UNIX for Dummies Questions & Answers

upper limit of accessible memory space for a single process in Unix/Linux

Hellp all, if there is 3G memory in my Unix server I want to know if all the 3G space can be used by ong sigle process. As i know, in Windows, one process can only access at most 1G memory despite there is probably more than 1G memory is equipped. (1 Reply)
Discussion started by: cy163
1 Replies

4. Shell Programming and Scripting

Stress testing php files at Unix/Linux Command line

Hi, Your great help is very appreciated. I am looking for any Unix command or tool for doing Stress/Load test of php files at command prompt. I tried torture.pl but it is not working after20 concurrent threads/users. as it is very urgent for me..please suggest ur ideas asap. thanks (5 Replies)
Discussion started by: Malleswari
5 Replies

5. Shell Programming and Scripting

Ignore the 255 character limit of command line

Hi I would just like to ask if there is a way for UNIX to ignore/overcome the 255 character limit of the command line? My problem is that I have a really long line of text from a file (300+ bytes) which i have to "echo" and process by adding commands like "sed" to the end of the line, like... (5 Replies)
Discussion started by: agentgrecko
5 Replies

6. Shell Programming and Scripting

sed command to grep multiple pattern present in single line and delete that line

here is what i want to achieve.. i have a file with below contents cat fileName blah blah blah . .DROP this REJECT that . --sport 7800 -j REJECT --reject-with icmp-port-unreachable --dport 7800 -j REJECT --reject-with icmp-port-unreachable . . . more blah blah blah --dport 3306... (14 Replies)
Discussion started by: vivek d r
14 Replies

7. UNIX for Dummies Questions & Answers

To find and display the middle line in a file using single line command.

Hi all, How can i display the middle line of a file using a single line command? (6 Replies)
Discussion started by: Lakme Pemmaiah
6 Replies

8. Shell Programming and Scripting

Multi line log files to single line format

I want to read the log file which was generate from other command . And the output was having multi line in log files for job name and server name. But i need to make all the logs on one line Source file 07/15/2018 17:02:00 TRANSLOG_1700 Server0005_SQL ... (2 Replies)
Discussion started by: ranjancom2000
2 Replies

9. UNIX for Beginners Questions & Answers

Merge multi-lines into one single line using shell script or Linux command

Hi, Can anyone help me for merge the following multi-line log which beginning with a " and line ending with ": into one line. *****Original Log***** 087;2008-12-06;084403;"mc;;SYHLR6AP1D\LNZW;AD-703;1;12475;SYHLR6AP1B;1.1.1.1;0000000062;HGPDI:MSISDN=12345678,APNID=1,EQOSID=365;... (3 Replies)
Discussion started by: rajeshlinux2010
3 Replies
REARJ(1)							   Arj Software 							  REARJ(1)

NAME
rearj - Converts other archive formats to .arj files SYNOPSIS
rearj [options] <!listfile(s)|filespec(s)|wildname(s)> DESCRIPTION
The rearj command can repackage other archive formats to arj. OPTIONS
-+ Ignore REARJ_SW variable. -a[suffix] Convert archives within archives ("*" for all formats). -bcommand Execute command before extracting files. -ccommand Execute command on extracted files before counting them. -d Delete original archives. -e No error switch. -f Convert diskette archives. -g Skip creation of output archive. -i[name] Check integrity of rearj program. -j Skip if output archive size is larger than the original. -k Skip archive timestamping. -l[name] Write append log file (default name is rearj.log). -m[date] Select archives before date in YYMMDDHHMMSS format. -n[date] Select archives on or after date in YYMMDDHHMMSS format. -o Allow overwrite of existing target archive. -p Ignore long filenames under Windows 95. -q Query for each archive to convert. -r Recurse through subdirectories. -s Skip verify of file count and total size. -tsuffix Create suffix type archives. -u[bak] Allow update of archive with backup (default is BAK). -v Execute configured command on extracted files. -wdir Assign work directory. -x[!]file Exclude by filename, wildname, or listfile. -y[text] Delete output archive and write text to log (testing mode). -z Simulate operation. ENVIRONMENT
REARJ_SW If set, its value will be used as command line options. EXIT STATUS
0 Success. 1 File not found. 2 File is not a configured archive type. 3 Target archive already exists. 4 Not enough disk space. 5 User skipped or user did not select update option. 6 UNPACK command error. 7 PACK command error. 8 Target cannot support directories. 9 Wrong file count. 10 Wrong total size. 11 Internal archive REARJ error. 12 Rename archive error. 13 Invoked -v command error (found a virus?). 14 Output archive is larger. EXAMPLE
rearj * -r -d Convert all archives to ARJ format, searching all subdirectories, deleting original archives. SEE ALSO
arj(1). AUTHOR
This manual page was written by Ola Lundqvist <opal@debian.org> in pod format, then converted by Guillem Jover <guillem@debian.org> to nroff format. 3.10 2003-03-10 REARJ(1)
All times are GMT -4. The time now is 02:18 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy