Sponsored Content
Full Discussion: date question
Top Forums Shell Programming and Scripting date question Post 73435 by rdeschene3 on Wednesday 1st of June 2005 08:55:19 AM
Old 06-01-2005
I'm new to this board and didn't realize the FAQ section wasn't in relation to how the board itself works. So thanks for the link, I'll give it a read.

Rick D.
 

10 More Discussions You Might Find Interesting

1. UNIX for Advanced & Expert Users

date question

hi, how do i get the last day of the current date or a given date using unix. for e.g. if i run the command/script on 1st feb 2002 i should get 28 th feb 2002. thanks !! AnkuR. (3 Replies)
Discussion started by: ankurgupta
3 Replies

2. UNIX for Dummies Questions & Answers

Date function question

hi guys! just want to ask if you could help me with the sript i'm working on. i need to automatically generate a summarized report everyday for all transactions the day before and ftp it to another machine. my only problem is that i need to name the file as the date yesterday. for example if i... (12 Replies)
Discussion started by: crpalermo
12 Replies

3. AIX

Date question

I am creating a shell script and have a question about how to determine yesterdays date. In my script, I can determine today by: today=`date '+%Y%m%d'` but I am not sure how to determine yesterday. In other languages, I would just subtract one from today, but I don't know how to do that... (1 Reply)
Discussion started by: dsimpg1
1 Replies

4. Shell Programming and Scripting

Date question

hi guys, i've got a simple one.. date_time="`date '+%Y-%m-%d %H:%M:%S'`" gives me the system's date and time... which my script will use this variable to run the data on this date... my question is... if now, i want to run the script for data's that are like 6 months back... how can i... (1 Reply)
Discussion started by: 12yearold
1 Replies

5. Shell Programming and Scripting

Date Scripting Question

I am trying to append a portion of a file with a date on it that changes daily to a temp file. Here are my commands: set DATE = ('date +%Y%m%d_sum.log') cat $HOME/right/$DATE > /export/home/temp.txt Here is the error I keep receiving: cat: cannot open /temp/usr/nedaniel/right/date... (6 Replies)
Discussion started by: BigDawg32
6 Replies

6. Shell Programming and Scripting

Date Question

How could I get a date's day of the week (ie Sunday) without using the date -d command? So if a date was specified, it would give me the day of the week. The date -d command looks something like this date -d $inputdate | cut -c 1-3 the only problem with that statement is that it won't... (2 Replies)
Discussion started by: DKNUCKLES
2 Replies

7. Shell Programming and Scripting

Date format question

I have a string that looks like this: 2008 04 09 18 45 30 0 I would like to convert it to a date format like this: Wed Apr 09 18:45:30.000 GMT 2008 I have been searching all over and can't find anything to help me. I am using ksh on a sun solaris unix machine. Thank you. Allyson (2 Replies)
Discussion started by: ajgwin
2 Replies

8. UNIX for Dummies Questions & Answers

Another Date Question - Sorry

I have been out of the UNIX World for a number of years and none of my reference books seem to be helping e with this seemingly simple question. How can I manipulate the below command to reflect the previous day and not the current date? the command is: elm -s “SAP prs for `date... (4 Replies)
Discussion started by: McRae
4 Replies

9. UNIX for Advanced & Expert Users

echo date question

Whats the difference between using date in these 2 methods? How exactly does the shell handle the first one different from the second one? $ echo $date $ echo $(date) Tue Aug 16 03:10:25 EDT 2011 (5 Replies)
Discussion started by: cokedude
5 Replies

10. UNIX for Advanced & Expert Users

Regarding question for GNU date

Hello All, Greetings all !! I have a query here, following are the points on same(Adding today's is 31st August 2016 for future reference). 1st Scenario: So while doing some work on GNU date, I wanted to check what was the month(in numbers) by GNU date so I have done following. date... (2 Replies)
Discussion started by: RavinderSingh13
2 Replies
STRUCT 
SPI_BOARD_INF(9) Serial Peripheral Interface (S STRUCT SPI_BOARD_INF(9) NAME
struct_spi_board_info - board-specific template for a SPI device SYNOPSIS
struct spi_board_info { char modalias[SPI_NAME_SIZE]; const void * platform_data; void * controller_data; int irq; u32 max_speed_hz; u16 bus_num; u16 chip_select; u8 mode; }; MEMBERS
modalias[SPI_NAME_SIZE] Initializes spi_device.modalias; identifies the driver. platform_data Initializes spi_device.platform_data; the particular data stored there is driver-specific. controller_data Initializes spi_device.controller_data; some controllers need hints about hardware setup, e.g. for DMA. irq Initializes spi_device.irq; depends on how the board is wired. max_speed_hz Initializes spi_device.max_speed_hz; based on limits from the chip datasheet and board-specific signal quality issues. bus_num Identifies which spi_master parents the spi_device; unused by spi_new_device, and otherwise depends on board wiring. chip_select Initializes spi_device.chip_select; depends on how the board is wired. mode Initializes spi_device.mode; based on the chip datasheet, board wiring (some devices support both 3WIRE and standard modes), and possibly presence of an inverter in the chipselect path. DESCRIPTION
When adding new SPI devices to the device tree, these structures serve as a partial device template. They hold information which can't always be determined by drivers. Information that probe can establish (such as the default transfer wordsize) is not included here. These structures are used in two places. Their primary role is to be stored in tables of board-specific device descriptors, which are declared early in board initialization and then used (much later) to populate a controller's device tree after the that controller's driver initializes. A secondary (and atypical) role is as a parameter to spi_new_device call, which happens after those controller drivers are active in some dynamic board configuration models. COPYRIGHT
Kernel Hackers Manual 2.6. July 2010 STRUCT SPI_BOARD_INF(9)
All times are GMT -4. The time now is 01:09 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy