10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Hi all,
I have a file with below data
af23b|11-FEB-12|acc7
ad23b|12-JAN-12|acc4
as23b|15-DEC-11|acc5
z123b|18-FEB-12|acc1
I need the output as below:-(date in yyyymmdd format)
af23b|20120211|acc7
ad23b|20120112|acc4
as23b|20111215|acc5
z123b|20120218|acc1
Please help me on this.... (7 Replies)
Discussion started by: gani_85
7 Replies
2. Shell Programming and Scripting
Hi,
I am beginner. have almost one text file which contains 6000 lines. every line is in different format.so need to rearrange in single format.
Ex: .thde.adgtmk.802ati
thde.kghijk..567ati
..thde.kghijk..458ati
thde.ertyui.456.567.789ati
thde.awse.dati
Rules:... (2 Replies)
Discussion started by: kartheek
2 Replies
3. UNIX for Dummies Questions & Answers
I have a list of dates in the following format: mm/dd/yyyy and want to change these to the MySQL standard format: yyyy-mm-dd.
The dates in the original file may or may not be zero padded, so April is sometimes "04" and other times simply "4".
This is what I use to change the format:
sed -i '' -e... (2 Replies)
Discussion started by: figaro
2 Replies
4. Shell Programming and Scripting
I'm having a spot of trouble. I'm trying to test three variables for a NULL value in a bash shell script. If a null value is detected in the variable to set it to set the variable to a default value.
here is what I have:
testResponseA=3
testResponseB=
testResponseC=4
for test in... (5 Replies)
Discussion started by: kaltekar
5 Replies
5. Shell Programming and Scripting
How to change a date stored in a variable to YYYYMMDD.
Variable output is in DD-MON-YY,required format is 'YYYYMMDD'
Thanks,
Sud (1 Reply)
Discussion started by: sud
1 Replies
6. Shell Programming and Scripting
I can't seem to solve this problem. :mad::mad: Please assist. Thanks!
#!/bin/bash
UserDir="$(echo ~$1)"
echo "Changing directory with variables"
cd "$UserDir"
echo "Changing directory without variables"
cd ~pearsn
pwd
Output:
pearsn$ sh -x ./test.bash pearsn
++ echo '~pearsn'
+... (6 Replies)
Discussion started by: twinturbos52
6 Replies
7. Shell Programming and Scripting
i have an variable mydate=2008Nov07
i want o/p as in variable mymonth=11 (i.e nov comes on 11 number month)
i want some command to do this for any month without using any loop.
plz help me (1 Reply)
Discussion started by: RahulJoshi
1 Replies
8. Shell Programming and Scripting
Dear Experts,
Currently my script is gereating the output like this as mentioned below.
8718,8718,0,8777
7450,7450,0,7483
5063,5063,0,5091
3840,3840,0,3855
3129,3129,0,3142
2400,2400,0,2419
2597,2597,0,2604
3055,3055,0,3078
4249,4249,0,4266
4927,4927,0,4957
8920,8920,0,8978... (4 Replies)
Discussion started by: shary
4 Replies
9. UNIX for Dummies Questions & Answers
Hi,
There are lots of threads about how to manipulate the date using date +%m %.......
But how can I change the default format of the commad date?
$ date
Mon Apr 10 10:57:15 BST 2006
This would be on fedora and SunOs.
Cheers,
Neil (4 Replies)
Discussion started by: nhatch
4 Replies
10. Shell Programming and Scripting
hi friends,
i'm new to shell scripting,can i know how to change the environment variables without altering anythng in .bash_profile as the change in it is for a specific user but i want the change to be available to every user who logs in.
bye. (1 Reply)
Discussion started by: amit4g
1 Replies
PBES2BES(1) User Commands PBES2BES(1)
NAME
pbes2bes - Generate a BES from a PBES.
SYNOPSIS
pbes2bes [OPTION]... [INFILE [OUTFILE]]
DESCRIPTION
Reads the PBES from INFILE and writes an equivalent BES to OUTFILE. If INFILE is not present, stdin is used. If OUTFILE is not present,
stdout is used.
OPTIONS
OPTION can be any of the following:
-H, --hashtables
use hashtables when substituting in bes equations, and translate internal expressions to binary decision diagrams (discouraged, due
to performance)
-iFORMAT, --in=FORMAT
use input format FORMAT:
'pbes' PBES in internal format
'bes' BES in internal format
'cwi' BES in CWI format
'pgsolver' max-parity game in PGSolver format
-oFORMAT, --out=FORMAT
use output format FORMAT:
'pbes' PBES in internal format
'bes' BES in internal format (default)
'cwi' BES in CWI format
'pgsolver' max-parity game in PGSolver format
-p[NAME], --pbes-rewriter[=NAME]
use pbes rewrite strategy NAME:
'simplify' for simplification
'quantifier-all' for eliminating all quantifiers
'quantifier-finite' for eliminating finite quantifier variables
'pfnf' for rewriting into PFNF normal form
-rNAME, --rewriter=NAME
use rewrite strategy NAME:
'jitty' for jitty rewriting (default),
'jittyc' for compiled jitty rewriting,
'jittyp' for jitty rewriting with prover
-sSTRAT, --strategy=STRAT
use strategy STRAT (default '0');
0) Compute all boolean equations which can be reached from the initial state,
without optimization (default). This is is the most data efficient option per
generated equation.
1) Optimize by immediately substituting the right hand sides for already
investigated variables that are true or false when generating an expression.
This is as memory efficient as 0.
2) In addition to 1, also substitute variables that are true or false into an
already generated right hand side. This can mean that certain variables become
unreachable (e.g. X0 in X0 and X1, when X1 becomes false, assuming X0 does not
occur elsewhere. It will be maintained which variables have become unreachable
as these do not have to be investigated. Depending on the PBES, this can
reduce the size of the generated BES substantially but requires a larger
memory footprint.
3) In addition to 2, investigate for generated variables whether they occur on
a loop, such that they can be set to true or false, depending on the fixed
point symbol. This can increase the time needed to generate an equation
substantially
--timings[=FILE]
append timing measurements to FILE. Measurements are written to standard error if no FILE is provided
-t, --tree
store state in a tree (for memory efficiency)
-u, --unused_data
do not remove unused parts of the data specification
Standard options:
-q, --quiet
do not display warning messages
-v, --verbose
display short intermediate messages
-d, --debug
display detailed intermediate messages
--log-level=LEVEL
display intermediate messages up to and including level
-h, --help
display help information
--version
display version information
AUTHOR
Written by Jan Friso Groote.
REPORTING BUGS
Report bugs at <http://www.mcrl2.org/issuetracker>.
COPYRIGHT
Copyright (C) 2012 Technische Universiteit Eindhoven.
This is free software. You may redistribute copies of it under the terms of the Boost Software License
<http://www.boost.org/LICENSE_1_0.txt>. There is NO WARRANTY, to the extent permitted by law.
SEE ALSO
See also the manual at <http://www.mcrl2.org/mcrl2/wiki/index.php/User_manual/pbes2bes>.
pbes2bes mCRL2 toolset 201202.0 (Release) April 2012 PBES2BES(1)