Sponsored Content
Top Forums UNIX for Dummies Questions & Answers date is not getting the filedate value. Post 80028 by radhika on Tuesday 2nd of August 2005 03:19:33 PM
Old 08-02-2005
In the following command (fdate=`$filedate +%Y%m%d%H%M%S`
) if I put the filedate I get the below error. That's why I was trying to do date=$filedate

Output............................
fdate1:
filesize is: 0
fdate is empty or fdate has spaces
Jul 21 00:54
perf_totals.sh[33]: Jul: not found (errror...........)
date time when file was created is:
 

10 More Discussions You Might Find Interesting

1. Homework & Coursework Questions

Date comparison with 'string date having slashes and time zone' in Bash only

1. The problem statement, all variables and given/known data: I have standard web server log file. It contains different columns (like IP address, request result code, request type etc) including a date column with the format . I have developed a log analysis command line utility that displays... (1 Reply)
Discussion started by: TariqYousaf
1 Replies

2. Shell Programming and Scripting

Date One Week Ago From Given Date, Not From Current Date

Hi all, I've used various scripts in the past to work out the date last week from the current date, however I now have a need to work out the date 1 week from a given date. So for example, if I have a date of the 23rd July 2010, I would like a script that can work out that one week back was... (4 Replies)
Discussion started by: Donkey25
4 Replies

3. UNIX for Dummies Questions & Answers

Delete a row from a file if one column containing a date is greater than the current system date

Hello gurus, I am hoping someone can help me with the required code/script to make this work. I have the following file with records starting at line 4: NETW~US60~000000000013220694~002~~IT~USD~2.24~20110201~99991231~01~01~20101104~... (4 Replies)
Discussion started by: chumsky
4 Replies

4. Shell Programming and Scripting

Check if a date field has date or timestamp or date&timestamp

Hi, In a field, I should receive the date with time stamp in a particular field. But sometimes the vendor sends just the date or the timestamp or correctl the date&timestamp. I have to figure out the the data is a date or time stamp or date&timestamp. If it is date then append "<space>00:00:00"... (1 Reply)
Discussion started by: machomaddy
1 Replies

5. Shell Programming and Scripting

Converting a date to friday date and finding Min/Max date

Dear all, I have 2 questions. I have a file with many rows which has date of the format YYYYMMDD. 1. I need to change the date to that weeks friday date(Ex: 20120716(monday) to 20120720). Satuday/Sunday has to be changed to next week friday date too. 2. After converting the date to... (10 Replies)
Discussion started by: 2001.arun
10 Replies

6. Shell Programming and Scripting

Script to determine Date,TotalFile,total size of file based on date

I have file listed like below -rw-r--r--+ 1 test test 17M Nov 26 14:43 test1.gz -rw-r--r--+ 1 test test 0 Nov 26 14:44 test2.gz -rw-r--r--+ 1 test test 0 Nov 27 10:41 test3.gz -rw-r--r--+ 1 test test 244K Nov 27 10:41 test4.gz -rw-r--r--+ 1 test test 17M Nov 27 10:41 test5.gz I... (5 Replies)
Discussion started by: krish2014
5 Replies

7. Shell Programming and Scripting

File Count Based on FileDate using Shell Script

I have file listed in my directory in following format -rwxrwxr-x+ 1 test test 4.9M Oct 3 16:06 test20141002150108.txt -rwxrwxr-x+ 1 test test 4.9M Oct 4 16:06 test20141003150108.txt -rwxrwxr-x+ 1 test test 4.9M Oct 5 16:06 test20141005150108.txt -rwxrwxr-x+ 1 test ... (2 Replies)
Discussion started by: krish2014
2 Replies

8. Shell Programming and Scripting

Date: invalid date trying to set Linux date in specific format

i try to set linux date & time in specific format but it keep giving me error Example : date "+%d-%m-%C%y %H:%M:%S" -d "19-01-2017 00:05:01" or date +"%d-%m-%C%y %H:%M:%S" -d "19-01-2017 00:05:01" keep giving me this error : date: invalid date ‘19-01-2017 00:05:01' Please use CODE tags... (7 Replies)
Discussion started by: umen
7 Replies

9. UNIX for Beginners Questions & Answers

Compare date in .txt with system date and remove if it's lesser than system date

Can someone help me with the code wherein there is a file f1.txt with different column and 34 column have expiry date and I need to get that and compare with system date and if expiry date is <system date remove those rows and other rows should be moved to new file f2.txt . I don't want to delete... (2 Replies)
Discussion started by: Stuti
2 Replies

10. Answers to Frequently Asked Questions

Compare date in .txt with system date and remove if it's lesser than system date

I m working on shell scripting and I m stuck where in my .txt file there is column as expiry date and I need to compare that date with system date and need to remove all the rows where expiry date is less than system date and create a new .txt with update. (1 Reply)
Discussion started by: Stuti
1 Replies
INTRO(3F)																 INTRO(3F)

NAME
intro - introduction to FORTRAN library functions DESCRIPTION
This section describes those functions that are in the Fortran run time library. The functions listed here provide an interface from f77 programs to the system in the same manner as the C library does for C programs. They are automatically loaded as needed by the Fortran compiler f77(1), except for the graphics interface routines. Those must be explicitly requested, see plot(3f). The math intrinsics required by the 1977 Fortran standard are available, although not described here. In addition, the abs, sqrt, exp, log, sin, and cos intrinsics have been extended for double complex values. They may be referenced using the generic names listed above, or they may be referenced using their specific names that consist of the generic names preceded by either cd or z. For example, if zz is dou- ble complex, then sqrt(zz), zsqrt(zz), or cdsqrt(zz) compute the square root of zz. The dcmplx intrinsic forms a double complex value from two double precision variables or expressions, and the name of the specific function for the conjugate of a double complex value is dconjg. Most of these functions are in libU77.a. Some are in libF77.a or libI77.a. A few intrinsic functions are described for the sake of com- pleteness. For efficiency, the SCCS ID strings are not normally included in the a.out file. To include them, simply declare external f77lid in any f77 module. LIST OF FUNCTIONS
Name Appears on Page Description abort abort.3f abnormal termination access access.3f determine accessibility of a file alarm alarm.3f execute a subroutine after a specified time and bit.3f bitwise and arc plot.3f f77 interface to plot(3x) bessel bessel.3f bessel functions of two kinds for integer orders box plot.3f f77 interface to plot(3x) chdir chdir.3f change default directory chmod chmod.3f change mode of a file circle plot.3f f77 interface to plot(3x) clospl plot.3f f77 interface to plot(3x) cont plot.3f f77 interface to plot(3x) ctime time.3f return system time dffrac flmin.3f return extreme values dflmax flmin.3f return extreme values dflmin flmin.3f return extreme values drand rand.3f return random values drandm random.3f better random number generator dtime etime.3f return elapsed execution time erase plot.3f f77 interface to plot(3x) etime etime.3f return elapsed execution time exit exit.3f terminate process with status falloc malloc.3f memory allocator fdate fdate.3f return date and time in an ASCII string ffrac flmin.3f return extreme values fgetc getc.3f get a character from a logical unit flmax flmin.3f return extreme values flmin flmin.3f return extreme values flush flush.3f flush output to a logical unit fork fork.3f create a copy of this process fpecnt trpfpe.3f trap and repair floating point faults fputc putc.3f write a character to a fortran logical unit free malloc.3f memory allocator fseek fseek.3f reposition a file on a logical unit fstat stat.3f get file status ftell fseek.3f reposition a file on a logical unit gerror perror.3f get system error messages getarg getarg.3f return command line arguments getc getc.3f get a character from a logical unit getcwd getcwd.3f get pathname of current working directory getenv getenv.3f get value of environment variables getgid getuid.3f get user or group ID of the caller getlog getlog.3f get user's login name getpid getpid.3f get process id getuid getuid.3f get user or group ID of the caller gmtime time.3f return system time hostnm hostnm.3f get name of current host iargc getarg.3f return command line arguments idate idate.3f return date or time in numerical form ierrno perror.3f get system error messages index index.3f tell about character objects inmax flmin.3f return extreme values ioinit ioinit.3f change f77 I/O initialization irand rand.3f return random values irandm random.3f better random number generator isatty ttynam.3f find name of a terminal port itime idate.3f return date or time in numerical form kill kill.3f send a signal to a process label plot.3f f77 interface to plot(3x) len index.3f tell about character objects line plot.3f f77 interface to plot(3x) linemd plot.3f f77 interface to plot(3x) link link.3f make a link to an existing file lnblnk index.3f tell about character objects loc loc.3f return the address of an object long long.3f integer object conversion lshift bit.3f left shift lstat stat.3f get file status ltime time.3f return system time malloc malloc.3f memory allocator move plot.3f f77 interface to plot(3x) not bit.3f bitwise complement openpl plot.3f f77 interface to plot(3x) or bit.3f bitwise or perror perror.3f get system error messages point plot.3f f77 interface to plot(3x) putc putc.3f write a character to a fortran logical unit qsort qsort.3f quick sort rand rand.3f return random values random random.3f better random number generator rename rename.3f rename a file rindex index.3f tell about character objects rshift bit.3f right shift short long.3f integer object conversion signal signal.3f change the action for a signal sleep sleep.3f suspend execution for an interval space plot.3f f77 interface to plot(3x) stat stat.3f get file status symlnk symlnk.3f make a symbolic link system system.3f execute a UNIX command tclose topen.3f f77 tape I/O time time.3f return system time topen topen.3f f77 tape I/O traper traper.3f trap arithmetic errors trapov trapov.3f trap and repair floating point overflow tread topen.3f f77 tape I/O trewin topen.3f f77 tape I/O trpfpe trpfpe.3f trap and repair floating point faults tskipf topen.3f f77 tape I/O tstate topen.3f f77 tape I/O ttynam ttynam.3f find name of a terminal port twrite topen.3f f77 tape I/O unlink unlink.3f remove a directory entry wait wait.3f wait for a process to terminate xor bit.3f bitwise exclusive or 4.2 Berkeley Distribution May 27, 1986 INTRO(3F)
All times are GMT -4. The time now is 11:32 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy