With the shell in busybox you should be able to do something like:
If that shows you a set of mv commands that do what you need to do, remove the echo and run it again to actually rename the files.
This User Gave Thanks to Don Cragun For This Post:
The GNU date command in full of goodies but not when it comes to calculate a date or time difference. Here is what I came up with after looking to more than one solution.
Code should be self explaining.
#!/bin/bash
date2stamp () {
date --utc --date "$1" +%s
}
stamp2date (){
... (0 Replies)
Hi all!
I'm working on a HPUX system, and I was wondering if there is a simple way to convert a date from seconds (since 1970) to a normal date.
Thanks (2 Replies)
i have a script that grep for today date
a=`date +"%F"`--------greps current/today date
wat if suppose i want to grep a date for yesterday...
how to do that using the above format: i,e 2008-01-20 (4 Replies)
Hi guys,
I have some embedded perl within my shell script to get me the modification time/date of a file which returns me the following string:
Fri May 1 09:52:58 2009
I have managed to get the bits i need such as 1-May-2009, but what i would prefer is 010509 instead...
Here is my... (4 Replies)
Hi all,
i have used the search already before someone shouts at me and i have seen the 'datecalc' program but this is not working correctly for me in the shell and environment i am using.
I am using solaris 10 and bourne shell.
I have two dates '07-04-2009' and '05-05-2009'. I just need to... (2 Replies)
Hi Gurus,
Please help in this shell script.
x=000
y=`expr $x + 1`
echo $y
which gives me the value as 1
How can i get the value as 001 in this shell script. As i am new to scripting stuck up here.
Requesting here help here (2 Replies)
Hello all!
This is my first post and I'm very new to programming. I would like help creating a simple perl or bash script that I will be using in my work as a junior bioinformatician.
Essentially, I would like to take a tab-delimted or .csv text with 3 columns and write them to a "3D" matrix:
... (16 Replies)
There is a closed Thread: <url>Here will be the url to the original post once I have 5 posts in this forum...</url>
But a small bug had found his way into this very cool and simple code.
#!/bin/bash date2stamp () { date --utc --date "$1" +%s } stamp2date (){ date --utc --date... (2 Replies)
Hi ,
Here is the smaller version of the problem.
Working individually as command
************************>echo $SHELL
/bin/bash
************************>TO_DAY=`date`
************************>echo $TO_DAY
Tue Jul 16 02:28:31 EDT 2013
************************>
Not working when... (5 Replies)
Hi,
I'm looking for a way to do a simple math calc during a shell script as a means of logging how long a particular task takes.
For example...
STARTTIME=whenever this script starts
./path/to/command.sh >>logfile.log
TOTALTIME=<time at this stage of the script after above command... (7 Replies)
Discussion started by: nbsparks
7 Replies
LEARN ABOUT DEBIAN
conio
libcaca DOS conio.h compatibility layer(3caca) libcaca libcaca DOS conio.h compatibility layer(3caca)NAME
libcaca DOS conio.h compatibility layer -
Functions
__extern char * caca_conio_cgets (char *str)
DOS conio.h cgets() equivalent.
__extern void caca_conio_clreol (void)
DOS conio.h clreol() equivalent.
__extern void caca_conio_clrscr (void)
DOS conio.h clrscr() equivalent.
__extern int caca_conio_cprintf (const char *format,...)
DOS conio.h cprintf() equivalent.
__extern int caca_conio_cputs (const char *str)
DOS conio.h cputs() equivalent.
__extern int caca_conio_cscanf (char *format,...)
DOS stdio.h cscanf() equivalent.
__extern void caca_conio_delay (unsigned int)
DOS dos.h delay() equivalent.
__extern void caca_conio_delline (void)
DOS conio.h delline() equivalent.
__extern int caca_conio_getch (void)
DOS conio.h getch() equivalent.
__extern int caca_conio_getche (void)
DOS conio.h getche() equivalent.
__extern char * caca_conio_getpass (const char *prompt)
DOS conio.h getpass() equivalent.
__extern int caca_conio_gettext (int left, int top, int right, int bottom, void *destin)
DOS conio.h gettext() equivalent.
__extern void caca_conio_gettextinfo (struct caca_conio_text_info *r)
DOS conio.h gettextinfo() equivalent.
__extern void caca_conio_gotoxy (int x, int y)
DOS conio.h gotoxy() equivalent.
__extern void caca_conio_highvideo (void)
DOS conio.h highvideo() equivalent.
__extern void caca_conio_insline (void)
DOS conio.h insline() equivalent.
__extern int caca_conio_kbhit (void)
DOS conio.h kbhit() equivalent.
__extern void caca_conio_lowvideo (void)
DOS conio.h lowvideo() equivalent.
__extern int caca_conio_movetext (int left, int top, int right, int bottom, int destleft, int desttop)
DOS conio.h movetext() equivalent.
__extern void caca_conio_normvideo (void)
DOS conio.h normvideo() equivalent.
__extern void caca_conio_nosound (void)
DOS dos.h nosound() equivalent.
__extern int caca_conio_printf (const char *format,...)
DOS stdio.h printf() equivalent.
__extern int caca_conio_putch (int ch)
DOS conio.h putch() equivalent.
__extern int caca_conio_puttext (int left, int top, int right, int bottom, void *destin)
DOS conio.h puttext() equivalent.
__extern void caca_conio__setcursortype (int cur_t)
DOS conio.h _setcursortype() equivalent.
__extern void caca_conio_sleep (unsigned int)
DOS dos.h sleep() equivalent.
__extern void caca_conio_sound (unsigned int)
DOS dos.h sound() equivalent.
__extern void caca_conio_textattr (int newattr)
DOS conio.h textattr() equivalent.
__extern void caca_conio_textbackground (int newcolor)
DOS conio.h textbackground() equivalent.
__extern void caca_conio_textcolor (int newcolor)
DOS conio.h textcolor() equivalent.
__extern void caca_conio_textmode (int newmode)
DOS conio.h textmode() equivalent.
__extern int caca_conio_ungetch (int ch)
DOS conio.h ungetch() equivalent.
__extern int caca_conio_wherex (void)
DOS conio.h wherex() equivalent.
__extern int caca_conio_wherey (void)
DOS conio.h wherey() equivalent.
__extern void caca_conio_window (int left, int top, int right, int bottom)
DOS conio.h window() equivalent.
Detailed Description
These functions implement DOS-like functions for high-level text operations.
Author
Generated automatically by Doxygen for libcaca from the source code.
Version 0.99.beta18 Fri Apr 6 2012 libcaca DOS conio.h compatibility layer(3caca)