10 More Discussions You Might Find Interesting
1. UNIX for Beginners Questions & Answers
i use the split command to split a one terabyte backup file into 10 chunks of 100 GB each. The files are split one after the other. While the files is being split, I will like to scp the files one after the other as soon as the previous one completes, from server A to Server B. Then on server B ,... (2 Replies)
Discussion started by: malaika
2 Replies
2. UNIX for Beginners Questions & Answers
Hi,
I am trying to removing the old files which were older than 10 days and same g zipping the files using the shell script.
script was return as follows.
find /jboss7_homes/JBOSS7/SKYLIV??/SKYLIV??_CRM/jboss-eap-7.0/standalone/log -mtime +10 -type f | xargs rm -f
find /cer_skyliv??/log... (6 Replies)
Discussion started by: venkat918
6 Replies
3. UNIX for Beginners Questions & Answers
Hello,
I need to split a file by number of records and rename each split file with actual filename pre-pended with 3 digit split number.
What I have tried is the below command with 2 digit numeric value
split -l 3 -d abc.txt F (# Will Produce split Files as F00 F01 F02)
How to produce... (19 Replies)
Discussion started by: techedipro
19 Replies
4. Shell Programming and Scripting
Hi ,
I have 100 records in a.txt file
Need to split the a.txt file in to 5 files
1ST File:
ex: My file name should be a1.txt - line count in file should be 1 to 15
2ND File:
ex: My file name should be a2.txt - line count in file should be 16 to 40
3ND File:
ex: My file name... (1 Reply)
Discussion started by: satish1222
1 Replies
5. UNIX for Dummies Questions & Answers
How would you approach a problem of removing an attached document from an email?
Later I would parse that attachment and put the data into a database. Can do that part.
Unfortunately, I'm not use to the various mail programs - have been looking at sendmail and postfix but haven't... (1 Reply)
Discussion started by: TJ_Green
1 Replies
6. Shell Programming and Scripting
Hi,
I'm using procmail to ingest incoming messages. The goal is to split the message body into chunks and forward those to a different adddress. Here's a sample of the message body:
Group: testgroup
---------------------------------------
Host: test1.local:30200
Type: conf
Alert:... (9 Replies)
Discussion started by: waltari2001
9 Replies
7. Shell Programming and Scripting
I have a huge collection of text files on my computer. These files contain lots of text in them. The files look like this.
Example 1:
This is a test file. This is an email address: abc.yahoo.com. This is another line.
Example 2:
This is another file. The person can be contacted at... (2 Replies)
Discussion started by: shoaibjameel123
2 Replies
8. UNIX for Dummies Questions & Answers
Hi,
I want to know how to split a gz file ( with out uncompressing it )
Eg:- split -b 10m file.gz (2 Replies)
Discussion started by: daptal
2 Replies
9. UNIX for Dummies Questions & Answers
Hi everyone,
I have some large text files that I need to split into a specific number of files of equal size. As far as I know (and I don't really know that much :)) the split command only lets you specify the number of lines or bytes. The files are all of a different size, so the number of... (4 Replies)
Discussion started by: Migrainegirl
4 Replies
10. Shell Programming and Scripting
Dear all,
I want to remove files older than 2 months in the /home/member directory. But except the configuration files (like .bash_profile .config/ .openoffice/ .local/ .kde/ etc..)
I have tried with the command
find . -mtime +60 -wholename './.*' -prune -o -print -exec mv {} \;
but it... (1 Reply)
Discussion started by: jamcalicut
1 Replies