Sponsored Content
Special Forums UNIX Desktop Questions & Answers Aggregate title to an archive.log Post 302224527 by enkei17 on Wednesday 13th of August 2008 10:49:29 AM
Old 08-13-2008
Aggregate title to an archive.log

Hello how are you, i have a question i have a file ale.log and i want to agregate a title and later a space when the text is over and put another title (when the text is over) how can i do this? thank you
Example

Last ------>(Title) i want to agregate
pupu pupu pupu pupu
pupu pupu pupu pupu

------> (space) i want to agregate
Su ------>(Title) i want to agregate
popo popor popo popo
popo popo popo popo
 

10 More Discussions You Might Find Interesting

1. 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

2. Shell Programming and Scripting

Script to archive log files:Urgent Help required

I have no prior knowledge of Unix shell scripting,but my requriment demands to wrie a script that do fallowing things. 1.Delete older than one year log files 2.Moves files in to the directories as YYYYMM wise. 3.If files in $LOGDIR older than n=2 months tar and move them to $ARCHIVEDIR... (5 Replies)
Discussion started by: vamsx
5 Replies

3. IP Networking

Aggregate two internet connections

Hi I have a question related to load balancing.I have two separate internet connections with 2Mbps speed and i would like to aggregate this two connections intro one connection with 4Mbps.Is it possible to do that, to put a Linux or Unix machine as a gateway?I read some stuff to split the... (3 Replies)
Discussion started by: tafil
3 Replies

4. Shell Programming and Scripting

moving log file into Archive directory

Hi All, I'm trying to write a script which will do following : - For any old log under trace directory, if found move it to Archive - Check for a process “process-A” if it is running abort from the script - Else start it up (start_process-A.sh this case) - If it fails to start the... (1 Reply)
Discussion started by: mohullah
1 Replies

5. Shell Programming and Scripting

Log archive script

I need a log archival script which will delete files older than 3 days in a given JBOSS log directory which has files as follows server.log.2011-08-25 server.log.2011-08-26 server.log.2011-08-27 server.log.2011-08-28 server.log I only want to save server.log and 3 days before server.log... (1 Reply)
Discussion started by: gubbu
1 Replies

6. Shell Programming and Scripting

Bash Script to decrypt encrypt log and archive

Hi Please see if you have come across any aprts of this. I can read, integrate and syntehsixe. Any help you could offer me would be super. thanks in advance! Good day. Thank you for your response in this matter. Here are some further details: 1) scripting is to be in BASH... (1 Reply)
Discussion started by: cdc01
1 Replies

7. Homework & Coursework Questions

Archive and purge the log file

Hi Unix Experts, I am new in this filed. I have assignment to Archive and purge the log file using shell scripts I tried I could not get the result please help me this. Ex: test.log requirement : using shell script I need to archive the log file and nil and the content of (test.log)... (1 Reply)
Discussion started by: johney1981
1 Replies

8. Shell Programming and Scripting

Log archive

Hi, I am trying to move old file to archive folder. find /sourcedirectory/logs/* -type f -mtime +30 -exec mv "{}" /sourcedirectory/logs/archive \; The above command not only search for old file in /sourcedirectory/logs/ folder but also searchs in /sourcedirectory/logs/archive ( what... (3 Replies)
Discussion started by: lpprasad321
3 Replies

9. Shell Programming and Scripting

Aggregate data within the file

Guys, I need to roll up data within the file and build a new file with the output and the same format as the original file. The data should be rolled up for each unique combination of ord,line,date and hour.. The last column appr is always " " Below is the format Original File: ... (8 Replies)
Discussion started by: venky338
8 Replies

10. Shell Programming and Scripting

Script to archive logs and sftp to another archive server

Requirement: Under fuse application we have placeholders called containers; Every container has their logs under: <container1>/data/log/fuse.log <container1>/data/log/fuse.log.1 <container1>/data/log/fuse.log.XX <container2>/data/log/fuse.log... (6 Replies)
Discussion started by: Arjun Goswami
6 Replies
mccs(1) 						       Debian User's Manual							   mccs(1)

NAME
mccs - package dependency solver SYNOPSIS
mccs [options] DESCRIPTION
mccs (which stands for Multi Criteria CUDF Solver) is a solver for package dependency problems expressed in the CUDF format. By default, mccs reads a problem specification from standard input, and writes the solution to standard output. OPTIONS FOR CONTROLLING INPUT
/OUTPUT -i file Read input from file file instead of standard input. -o file Write the solution to file instead of standard output. -fo full solution output -v n set verbosity level to n. -h print this help OPTIONS FOR SELECTING THE SOLVER ENGINE
By default, mccs uses the cbc solving engine. -lpsolve use lpsolve solver -lp lpsolver specify a solving engine that takes the cplex input format. lpsolver is the path of a script that takes as input the file name con- taining the cplex input, and that produces the solution on standard output (an example for scip is given in /usr/share/doc/mccs/engines/sciplp). -pblib pbsolver use pseudo-Boolean solver pbsolver as solving engine. -nosolve do not solve the problem (for debugging) OPTIONS FOR CONTROLLING CONSTRAINT GENERATION
-noreduce do not reduce the initial problem -only-agregate-constraints generate only agregate constraints -only-desagregate-constraints generate only deagregate constraints (default) -all-constraints generate all kind of constraints (ensure redundancy) OPTIONS FOR CONTROLLING OPTIMIZATION
See the file /usr/share/doc/mccs/README.optimization-criteria for a full grammar of optimization criteria. EXAMPLES
An example input file can be found at /usr/share/doc/mccs/examples/legacy.cudf. mccs -i legacy.cudf calls mccs on examples/legacy.cudf and prints the solution on stdout. With such a call mccs will resort to the default underlying solver cbc and use a default criterion to solve the problem. mccs -i legacy.cudf -o sol -lexagregate[-removed,-changed] -lpsolve Here, mccs puts the solution into the file "sol" and solves the problem using the lpsolve solver with the paranoid criterion, which con- sists of first minimizing the number of removed packaged, and then the number of packages that change installation status or installed ver- sion. mccs -i legacy.cudf -o sol -lexsemiagregate[-removed,-notuptodate, -nunsat[recommends:,true],-new] The criterion used here is the trendy criterion, which consists of first minimizing the number of package removals, then to minimize the number of installed packages that are installed in a version older the most recent available version, then to minimize the number of recom- mendations of installed packages that are not satisfied, and finally the number of newly installed packages. AUTHOR
mccs has been written by Claude Michel <cpjm@polytech.unice.fr>. The development of mccs has been partly supported by the European research project Mancoosi. 9 May 2011 mccs(1)
All times are GMT -4. The time now is 04:04 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy