06-06-2012
There is a perl solution in the FAQ.
Anybody with Solaris 5.8 cracked this problem before?
9 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
If I have
start = 02282006;
end = 03152006;
How do I get
startdate = 02/28/2006;
enddate = 03/15/2006;
Thanks, (3 Replies)
Discussion started by: britney
3 Replies
2. Shell Programming and Scripting
Hi,
I have script in unix which creates a julian date like 126 or 127
I want convert this julian date into calender date
ex : input 127
output 07/may/2007 or 07/05/2007 or 07/05/07
rgds
srikanth (6 Replies)
Discussion started by: srikanthus2002
6 Replies
3. Shell Programming and Scripting
In KSH, I am pasting 2 almost identical files together and each one has a date and time on each line. I need to determine if the first instance of the date/time is greater than the 2nd instance of the date/time. If the first instance is greater, I just need to echo that line.
I thought I would... (4 Replies)
Discussion started by: right_coaster
4 Replies
4. UNIX for Dummies Questions & Answers
Hi,
I am trying to display future date from the current date but unable to do so in UNIX (not in PERL). For eg: if today is March 5 then I want a variable wherein I can store Mar 7 date, but unable to get the future date from the current date.
I have tried many possible ways as mentioned below... (11 Replies)
Discussion started by: amit.mathur08
11 Replies
5. Shell Programming and Scripting
Hi all,
I have used a bash script which ultimately converts a string into date using date --date option:
DATE=$DATE" "$TIME" "`date +%Y` //concatenating 2 strings
TMRW_DATE=`date --date="$DATE" +"%s"` //applying date command on string and getting the unixtime
Please use code tags... (7 Replies)
Discussion started by: Rashu123
7 Replies
6. Shell Programming and Scripting
Doing a bcp load to sybase and need to convert datearg which comes in as 20130501 to 2013-05-01 which is the best way to do this (4 Replies)
Discussion started by: tasmac
4 Replies
7. Shell Programming and Scripting
Hi,
I have date format in an excel sheet as 07/03/2014 11:21. I need to check this date with current date and need to find whether it is more than 30 days or not.
I know how to current date into days, but someone please help me to change the date in the excel sheet to days, so that i can check... (2 Replies)
Discussion started by: Arasu123
2 Replies
8. Shell Programming and Scripting
I am not able to pass date stored in a variable as an argument to date command. I get current date value for from_date and to_date
#!/usr/bin/ksh
set -x
for s in server ; do
ssh -T $s <<-EOF
from_date="12-Jan-2015 12:02:09"
to_date="24-Jan-2015 13:02:09"
echo \$from_date
echo... (7 Replies)
Discussion started by: raj48
7 Replies
9. UNIX for Dummies Questions & Answers
Dear all,
I have an user passing 2 parameter 31/03/2015 and 02/04/2015 to a ksh script. How to print the start date to end date.
Expected output is :
31/03/2015
01/04/2015
02/04/2015
Note :
1. Im using aix and ksh
2. I have tried to convert the given input into a date, didnt... (0 Replies)
Discussion started by: mr.rajaravi
0 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)