10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
I have a file that is about 7 GB in size. The requirement is I should split the file equally in such a way that the size of the split files is less than 2Gb. If the file is less than 2gb, than nothing needs to be done. ( need to done using shell script)
Thanks, (4 Replies)
Discussion started by: rudoraj
I'm trying to look through a series of directories in A folder, lets just call it A:
Etc and I wish to move the files in the folder if they are bigger than a certain size into a structure like below:
A/TooSmall/2... (1 Reply)
Discussion started by: PerlNewbRP
3. Shell Programming and Scripting
I have multiple files in the folder, I want to move those files into the other folder on based of name
Template_server1_02==>To one directory /Server1
Template_server2_02==>To one... (9 Replies)
Discussion started by: sharsour
4. Shell Programming and Scripting
I have a log file that I want to archive out as it reaches 100MB. I am using the following to get the file size into a variable but get the error "line 5:
filesize=$(wc -c < logfile.log)
echo "is greater than 100M"
echo "is less than 100M"
I'm sure there's something... (2 Replies)
Discussion started by: Flakman
5. Shell Programming and Scripting
I have a directory having so many number of files. Now I want to move the files which are older than one month (lets say) from this directory to another directory (say BKP dir).
Simply, if file is olderthan one month move it from source1 dir to BKP1 dir.
My file names doesn't have... (7 Replies)
Discussion started by: karumudi7
6. Shell Programming and Scripting
Below is my requirement. I have a file with the below structure.
the first 4 characters are the sequence numbers for a record, A record will start with A1 and end with L1 with same sequence number. Now the... (2 Replies)
Discussion started by: diva_thilak
7. UNIX for Dummies Questions & Answers
I want to connect to a remote machine using FTP, check for the size of a file there. If it is 0 bytes, then there is no need to ftp else i have to ftp the file. Any help will be highly appreciated. (7 Replies)
Discussion started by: vikas.rao11
8. Shell Programming and Scripting
my scenario is as follows...
I have the following three files in directory alphabet, containing the respective character string...
Filename Character String
based on... (12 Replies)
Discussion started by: melvyn.cochrane
9. Shell Programming and Scripting
Can any one help me to correct following script.
I have 2 directories DropZone and ProcessZone. File pattern is *VEHDESCSUM*.
Finding the 'no of files' in DropZone directory using ls *VEHDESCSUM* |wc -l
If DropZone has more than one file or 0 files then exit 1
If DropZone has one file then... (2 Replies)
Discussion started by: ramanagh
10. UNIX for Dummies Questions & Answers
i am trying to write a shell script which will check for the logfile size.
if the content of the logfile is wc -l >=1 then send mail with log file as attachment.else do nothing.
i'm trying the below code can any one help on this
(echo "`cat... (2 Replies)
Discussion started by: rajendragora
sccs-comb(1) User Commands sccs-comb(1)
sccs-comb, comb - combine SCCS deltas
/usr/ccs/bin/comb [-os] [-csid-list] [-psid] s.filename...
comb generates a shell script (see sh(1)) that you can use to reconstruct the indicated s.files. This script is written to the standard
If a directory name is used in place of the s.filename argument, the comb command applies to all s.files in that directory. Unreadable
s.files produce an error; processing continues with the next file (if any). The use of `-' as the s.filename argument indicates that the
names of files are to be read from the standard input, one s.file per line.
If no options are specified, comb preserves only the most recent (leaf) delta in a branch, and the minimal number of ancestors needed to
preserve the history.
The following options are supported:
-o For each `get -e' generated, access the reconstructed file at the release of the delta to be created. Otherwise, the recon-
structed file is accessed at the most recent ancestor. The use of -o may decrease the size of the reconstructed s.file. It
may also alter the shape of the delta tree of the original file.
-s Generate scripts to gather statistics, rather than combining deltas. When run, the shell scripts report: the file name,
size (in blocks) after combining, original size (also in blocks), and the percentage size change, computed by the formula:
100 * ( original - combined ) / original
This option can be used to calculate the space that will be saved, before actually doing the combining.
-csid-list Include the indicated list of deltas. All other deltas are omitted. sid-list is a comma-separated list of SCCS delta IDs
(SIDs). To specify a range of deltas, use a `-' separator instead of a comma, between two SIDs in the list.
-pSID The SID of the oldest delta to be preserved.
s.COMB reconstructed SCCS file
comb????? temporary file
See attributes(5) for descriptions of the following attributes:
| ATTRIBUTE TYPE | ATTRIBUTE VALUE |
|Availability |SUNWsprot |
sccs(1), sccs-admin(1), sccs-cdc(1), sccs-delta(1), sccs-help(1), sccs-prs(1), sccs-prt(1), sccs-rmdel(1), sccs-sccsdiff(1), what(1), sccs-
Use the SCCS help command for explanations (see sccs-help(1)).
comb may rearrange the shape of the tree of deltas. It may not save any space; in fact, it is possible for the reconstructed file to actu-
ally be larger than the original.
SunOS 5.10 1 Nov 1999 sccs-comb(1)