Hi all,
I want to increment the date which is in the format "YYYYMMDD".
ex: If the date is 20010601
Increment should be: 20010602, 20010603 etc.,
Any help will be much appreciated.
Many Thanks and Regards,
Ganapati (4 Replies)
hi,
for reading a cobol indexed file i need to convert "mmddyy" date format to "ccyyddd" format.
i checked the datecalc and other scripts but couldnt modify them to cater to my need:(...
The datecalc gives an output which i believe is the total days till that date, but i want to convert it... (2 Replies)
I need to increment a date value through shell script.
Input value consist of start date and end date in DATE format of unix.
For eg.
I need increment a date value of 1/1/09 to 31/12/09 i.e for a whole yr.
The output must look like
1/1/09
2/2/09
.
.
.
31/1/09
.
.
1/2/09
.
28/2/09... (1 Reply)
Hello Team ,
I have to extract date section from the below file output. The output of the file is as shown below.
I have to extract the "" this section from the above output of the file. can anyone please let me know how can we acheive this? (4 Replies)
Friends,
Need someone's help in helping me with the below requirement for a script:
> For a list of servers(over 100+), I need to login into each of them(cannot configure password-less ssh) & grab few configuration details <
I know, this is possible through expect programming in a simple... (2 Replies)
Friends,
Need someone's help in helping me with the below requirement for a script:
> For a list of servers(over 100+), I need to login into each of them(cannot configure password-less ssh) & grab few configuration details <
I know, this is possible through expect programming in a simple... (14 Replies)
Hi ,
I am trying to read a list of hosts from a config file and trying to get file list from that host. For this I have used one while loop.
cat "$ARCHIVE_CFG_FILE" | sed '/^$/d' | sed '/^#/d' | while read ARCHIVE_CFG
do
SOURCE_SERVER_NAME=`echo "$ARCHIVE_CFG" | awk -F '|' '{ print... (2 Replies)
Hi there guys!
I was trying to do:
while read line; do
if ; then
read -p "Press Enter to continue..."
cont=0
fi
echo $line
let cont++
done < file.txt
However, I have read that the read -p would not work in a while loop...
I was wondering if there is any other way to... (2 Replies)
Hi everybody,
I am new at Unix/Bourne shell scripting and with my youngest experiences, I will not become very old with it :o
My code:
#!/bin/sh
set -e
set -u
export IFS=
optl="Optl"
LOCSTORCLI="/opt/lsi/storcli/storcli"
($LOCSTORCLI /c0 /vall show | grep RAID | cut -d " "... (5 Replies)
Hello.
System : opensuse leap 42.3
I have a bash script that build a text file.
I would like the last command doing :
print_cmd -o page-left=43 -o page-right=22 -o page-top=28 -o page-bottom=43 -o font=LatinModernMono12:regular:9 some_file.txt
where :
print_cmd ::= some printing... (1 Reply)
Discussion started by: jcdole
1 Replies
LEARN ABOUT MOJAVE
roman
math::roman(1.0) math::roman(1.0)
__________________________________________________________________________________________________________________________________________________NAME
math::roman - Tools for creating and manipulating roman numerals
SYNOPSIS
package require Tcl 8.3
package require math::roman ?1.0?
::math::roman::toroman i
::math::roman::tointeger r
::math::roman::sort list
::math::roman::expr args
_________________________________________________________________DESCRIPTION
::math::roman is a pure-Tcl library for converting between integers and roman numerals. It also provides utility functions for sorting and
performing arithmetic on roman numerals.
This code was originally harvested from the Tcler's wiki at http://wiki.tcl.tk/1823 and as such is free for any use for any purpose. Many
thanks to the ingeneous folk who devised these clever routines and generously contributed them to the Tcl community.
While written and tested under Tcl 8.3, I expect this library will work under all 8.x versions of Tcl.
COMMANDS
::math::roman::toroman i
Convert an integer to roman numerals. The result is always in upper case. The value zero is converted to an empty string.
::math::roman::tointeger r
Convert a roman numeral into an integer.
::math::roman::sort list
Sort a list of roman numerals from smallest to largest.
::math::roman::expr args
Evaluate an expression where the operands are all roman numerals.
Of these commands both toroman and tointeger are exported for easier use. The other two are not, as they could interfer or be confused with
existing Tcl commands.
BUGS, IDEAS, FEEDBACK
This document, and the package it describes, will undoubtedly contain bugs and other problems. Please report such in the category math ::
roman of the Tcllib SF Trackers [http://sourceforge.net/tracker/?group_id=12883]. Please also report any ideas for enhancements you may
have for either package and/or documentation.
KEYWORDS
conversion, integer, roman numeral
CATEGORY
Mathematics
COPYRIGHT
Copyright (c) 2005 Kenneth Green <kenneth.green@gmail.com>
Tcl Math Library math math::roman(1.0)