Sponsored Content
Top Forums Shell Programming and Scripting Seelct case based on current time Post 302949981 by dunryc on Sunday 19th of July 2015 06:31:34 AM
Old 07-19-2015
Seelct case based on current time

HI Guys im tring to write a bash sccript which will give me the time of the next us from my local stop

i have a list of times as below

Quote:
0735
0805
0835
0905
0935
0950
1020
1050
1120
1150
1220
1250
1320
1350
1420
1450
1520
1550
1620
1650
1650
1720
1800
1840
1922
1942
2002
2022
2102
but have no dea how to do thia using a select case of if then statment can any one give me a heads up ?

any help would be appreciated

Pete
 

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

param as current date+time

Hi All, I need to pass param on aix "errpt -a -s MMDDHHMMYY -e MMDDHHMMYY". How do I read the date+time on the system and pass it as parameter? I need also the -s as previous day and the -e as current day. Thanks, itik (1 Reply)
Discussion started by: itik
1 Replies

2. Shell Programming and Scripting

Conversion from Upper Case to Lower Case Condition based

Hello Unix Gurus : It would be really appreciative if can find a solution for this . I have records in a file . I need to Capitalize the records based on condition . For Example i tried the following Command COMMAND --> fgrep "2000YUYU" /export/home/oracle/TST/data.dat | tr '' ''... (12 Replies)
Discussion started by: tsbiju
12 Replies

3. AIX

crontab 1 hour off from current time

This is a new one on me. We upgraded a system from AIX 5.3 TL 7 to 6.1 TL 7 yesterday. The app people notified us that their cron jobs weren't running at the right time. So I made a test cron entry and here's what I've found: # crontab -l * * * * * /usr/bin/date > /tmp/test.log 2>&1 # cat... (2 Replies)
Discussion started by: homeyjoe
2 Replies

4. Shell Programming and Scripting

How far is given date from current time?

give a date and time: Jun 12 21:05:16 06-12-2012 21:05:16 2012/06/12 21:05:16 How can i subtract these dates and times from the current date and time and get back the difference in seconds? a one liner like: echo "Jun 12 21:05:16" | some perl/awk programming 90900s (2 Replies)
Discussion started by: SkySmart
2 Replies

5. Shell Programming and Scripting

IF statement dealing with current time

Hi Guys, I am trying to put together a script that will search a txt file for a timestamp and select all text after the initial one up to EOF but the timestamp searched for will depend on the current date So if it the current time is between 0600 and 0700 the script will search a text file... (7 Replies)
Discussion started by: martin0852
7 Replies

6. Shell Programming and Scripting

Displaying current date time of EDT in IST time

Hi Folks, My server time is in EDT. And i am sending automated mails from that server in which i need to display the current date time as per IST (GMT+5:30). Please advice how to display the date time as per IST. IST time leads 9:30 mins to EDT. and i wrote something like below. ... (6 Replies)
Discussion started by: Showdown
6 Replies

7. Shell Programming and Scripting

To get the time exactly 24hrs from the current time

Hi guys, I am having file which contains below data. 2012-04-24 08:40:13 10739022730 1027699274PersonInfoShipTO details missing FirstName,LastName, 2012-04-24 08:40:13 10739022730 1027699274PersonInfoShipTO details missing FirstName,LastName, 2012-04-24 08:40:13 ... (2 Replies)
Discussion started by: mohanalakshmi
2 Replies

8. UNIX for Dummies Questions & Answers

Condition based on Timestamp (Date/Time based) from logfile (Epoch seconds)

Below is the sample logfile: Userids Date Time acb Checkout time: 2013-11-20 17:00 axy Checkout time: 2013-11-22 12:00 der Checkout time: 2013-11-17 17:00 xyz Checkout time: 2013-11-19 16:00 ddd Checkout time: 2013-11-21 16:00 aaa Checkout... (9 Replies)
Discussion started by: asjaiswal
9 Replies

9. Shell Programming and Scripting

Convert UTC time into current UNIX sever time zone

Hi guys thanks for the help for my previous posts.Now i have a requirement that i download a XMl file which has UTC time stamp.I need to convert UTC time into Unix server timezone. For ex if the time zone of unix server is CDT then i need to convert into CDT.whatever may be the system time... (5 Replies)
Discussion started by: mohanalakshmi
5 Replies

10. Shell Programming and Scripting

Awk: time intervals based on epoch time

I have a list of epoch times delimited by "-" as follows: 1335078000 - 1335176700 1335340800 - 1335527400 1335771300 - 1335945600 1336201200 - 1336218000 The corresponding dates are: 20120422 1000 - 20120423 1325 20120425 1100 - 20120427 1450 20120430 1035 - 20120502 1100 ... (3 Replies)
Discussion started by: alex2005
3 Replies
PCCBB(4)						   BSD Kernel Interfaces Manual 						  PCCBB(4)

NAME
pccbb -- cardbus bridge driver SYNOPSIS
device cbb device pccard device cardbus device exca DESCRIPTION
The pccbb driver implements the Yenta specification for CardBus bridges. The following PCI cardbus and pcmcia bridges are supported: Cirrus Logic PD6832 Cirrus Logic PD6833 Cirrus Logic PD6834 O2micro OZ6812 O2micro OZ6832 O2micro OZ6833 O2micro OZ6836 O2micro OZ6860 O2micro OZ6872 O2micro OZ6912 O2micro OZ6922 O2micro OZ6933 O2micro OZ6972 O2Micro OZ711E1 O2Micro OZ711M1 Ricoh RL4C475 Ricoh RL4C476 Ricoh RL4C477 Ricoh RL4C478 TI PCI-1031 TI PCI-1130 TI PCI-1131 TI PCI-1210 TI PCI-1211 TI PCI-1220 TI PCI-1221 TI PCI-1225 TI PCI-1250 TI PCI-1251 TI PCI-1251B TI PCI-1260 TI PCI-1260B TI PCI-1410 TI PCI-1420 TI PCI-1450 TI PCI-1451 TI PCI-1510 TI PCI-1515 TI PCI-1520 TI PCI-1530 TI PCI-1620 TI PCI-4410 TI PCI-4450 TI PCI-4451 TI PCI-4510 TI PCI-4520 TI PCI-[67]x[12]1 TI PCI-[67]x20 ENE CB710 ENE CB720 ENE CB1211 ENE CB1255 ENE CB1410 ENE CB1420 Toshiba ToPIC95 Toshiba ToPIC95B Toshiba ToPIC97 Toshiba ToPIC100 TUNABLES
The driver supports the following tunable parameters, which may be added to /boot/loader.conf or set via the sysctl(8) command: hw.cbb.debug Non-zero values cause more verbose information to be printed to aid in debugging problems with the bridge chipset. SEE ALSO
cardbus(4), pccard(4), exca(4) BSD
July 21, 2004 BSD
All times are GMT -4. The time now is 04:37 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy