| TIP: Click on subject to list as thread! | ANSI |
| echo: | |
|---|---|
| to: | |
| from: | |
| date: | |
| subject: | Some over haching |
* Reply to message originally in area CarbonArea
Hello Janis!
Fri Jan 06 2017, Janis Kracht wrote to Gert Andersen:
JK>I haven't had a problem with the date, Gert..
JK>I use this in my script:
JK>num=`date +%j --date=Friday`
JK>pick=`expr substr $num 2 3`
JK>year=`date +%Y`
JK>lastwk=$(($num -7))
JK>lpick=`expr substr $lastwk 2 3`
JK>Then I use the appropriate var where I need it.
JK>Hope this helps..
I thinking on then too on how I by linux can manage a dos command as
example 'if not then copy else'
if not exist lnxr500.${num} then copy lnxr500.006 to a dir lnxr500.${num}
else copy lnxr500.${num} to dir\
The script get the julian day and then is it on by checking some segment
files and copy them to daily segment files, so latest and newest segment is
there to makenl use the rights segment to the dailylist.
Take care,
Gert
- Get the best with linux -
--- Msged/LNX 6.2.0 (Linux/2.6.39-gentoo-r1 (x86_64))
* Origin: KofoBBS at ftp://fido0.kofobbs.net (2:230/150)SEEN-BY: 18/200 34/999 90/1 116/18 120/302 123/500 128/187 140/1 218/700 222/2 SEEN-BY: 230/150 240/1120 249/303 250/1 261/38 100 266/404 267/155 280/1027 SEEN-BY: 282/1031 1056 292/907 908 320/119 219 340/400 393/68 70 633/267 280 SEEN-BY: 640/384 712/620 848 770/1 801/161 189 2320/100 @PATH: 230/150 261/38 712/848 633/267 |
|
| SOURCE: echomail via fidonet.ozzmosis.com | |
Email questions or comments to sysop@ipingthereforeiam.com
All parts of this website painstakingly hand-crafted in the U.S.A.!
IPTIA BBS/MUD/Terminal/Game Server List, © 2025 IPTIA Consulting™.