i want to convert from an integer to a string..in unix...i am writing a C program with embedded SQL...
I remeber using itoa...but for some reason it doesnt work......i cant find it in the manual.....
Maybe that is the wrong command.....
but i have checked Dev Studio.....and it doest exist in the... (6 Replies)
I'm new at scripting but I thought I was getting pretty good at it. I've hit a snag. I try to use expr to compute a fraction say: expr 3 / 4, and I'm getting zero. I guess it's just truncating to the integer, in this case 0, but I need the decimal 0.75. What can I do to compute this value in... (2 Replies)
Hi fellows!!
i'm doing something which is not working out for me properly which i don't understand why
nowdate=`date +%s`
echo $nowdate
now the problem how to convert a date which is stored in a variable
mydate="22/Oct/2011"
mydate=`date -d '$mydate' +%s`
it gives error... (11 Replies)
Hi All,
I want to convert string in format YYYYMMDD(20120607) to date in unix and add 1 day to it and convert back to string in format YYYYMMDD. Please help. (4 Replies)
Hi All,
sessionid_remote=$(echo "select odb_sessionid from sysopendb where odb_dbname='syscdr';" | sudo -u cucluster ssh ucbu-aricent-vm93 "source /opt/cisco/connection/lib/connection.profile; $INFORMIXDIR/bin/dbaccess sysmaster@ciscounity")
for sid in $sessionid_remote;do
if * ]];... (2 Replies)
Hi all,
I am trying to write a script to be able to
Run top command
Pick the PIDs that are taking more than 90% of CPU time
Get more details like what is the script name and location for that PID
Script should run until I manually kill it by ctrl + C
I have come up with following script... (3 Replies)
i have some set of date data inside csv files and need to convert the timezone,
08302016113611861
08302016113623442
08302016113541570
08302016113557732
08302016113548439
08302016112853115
08302016113620684
08302016113432827
08302016113630321
date format is : %m%d%Y%H%M%Smilisec
... (2 Replies)
Hi,
I have a requirement where I am getting date in string format (20161130). I need to add 20 days(not no. 20) to the above string. The o/p should 20161220.
In case of 20170228, it should show 20170320.
Could you please help me with the command to achieve this.
Note: I am using AIX 7.1... (5 Replies)
I have data as below
"ROWS merge process complete. thousand rows changed"
I need to get a variable assigned the value of 1000. I mean convert the string thousand to 1000.
Any help or pointer.
Please use CODE tags as required by forum rules! (6 Replies)
Discussion started by: dsravanam
6 Replies
LEARN ABOUT DEBIAN
tart-custom
tart-custom(5) LinuxTaRT template format tart-custom(5)NAME
tart-custom - Template format for LinuxTaRT
DESCRIPTION
LinuxTaRT can use a user defined template file to generate the signature. The name and location of this file can be specified in
~/.tartrc, but defaults to the following location:
~/.tart-custom
PARAMETERS
LinuxTaRT recognizes the following directives in the template and replaces them with the corresponding values:
%c1 - CustomText1 from .tartrc
%c2 - CustomText2 from .tartrc
%tg - tagline
Randomly selected from the tagline database.
%hr - horizontal line
%dt - todays date
In the format: Monday, February 25, 2002
%12 - current hour
12-hour format
%24 - current hour
24-hour format
%mn - current minutes
%ap - AM / PM
%ut - system uptime
For RiscOS or systems with the sysinfo function.
%ib - time in ibeats
%vi - LinuxTaRT version string
%% - the percent symbol (%)
Any other characters in the template are copied to the signature as is.
EXAMPLES
The following template:
LinuxTaRT - The Automatic Random Tagline
%hr
/dev/random says:
%tg
http://mycompany.com
%hr
Generates the following signature:
LinuxTaRT - The Automatic Random Tagline
-------------------------------------------------------
/dev/random says:
Best way to dispose of the Borg: Give them Windows 3.1.
http://mycompany.com
-------------------------------------------------------
FILES
~/.custom
SEE ALSO tart(1)tartrc(5)tartdates(5)Mark Veinot 1.0.0 tart-custom(5)