Hi
I get problems when using the following command :
cat logs | awk -F";" '{ system("date -d "1970-01-01 UTC+0100 $1 seconds""); }'
date: date invalide `1968641199401200'
date: date invalide `1968641199381709'
this is what i have in my log file :
cat logs
1199401200;a... (3 Replies)
i'm facing problems in using system date in a awk script...
it should display the date in a report in mm/dd/yy format..
please help me in this case..
thanks (3 Replies)
I am currently running the following Korn shell script which works fine:
#!/usr/bin/ksh
count=`db2 -x "select count(*) from schema.tablename"`
echo "count"
I would like to add a "where" clause to the 2nd line that would allow me to get a record count of all the records from schema.tablename... (9 Replies)
OK I have a simple awk script:
$ awk '/03\/11\/10/' foofile|awk -f finderrors.awk
I want to use in the ksh script to so that I can do something like this:
#!/bin/ksh
TODAY=`date +"%D"`
awk /$TODAY/ foofile|awk -f finderrors.awk
The problem I am having is (I believe) is with the special... (3 Replies)
Hi,
Anybody knows how to get what date was 28 days ago of the current system date through UNIX script.
Ex : - If today is 28th Mar 2010 then I have to delete the files which arrived on 1st Mar 2010, (15 Replies)
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)
I get the date that's inside a text file and assigned it to a variable. When I grep the date from the file, I get this,
Not After : Jul 28 14:09:57 2017 GMT
So I only crop out the date, with this command
echo $dateFile | cut -d ':' -f 2,4The result would be
Jul 28 14:57 2017 GMT
How do I... (3 Replies)
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)
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
LEARN ABOUT CENTOS
vfs_readonly
VFS_READONLY(8) System Administration tools VFS_READONLY(8)NAME
vfs_readonly - make a Samba share read only for a specified time period
SYNOPSIS
vfs objects = readonly
DESCRIPTION
This VFS module is part of the samba(7) suite.
The vfs_readonly VFS module marks a share as read only for all clients connecting within the configured time period. Clients connecting
during this time will be denied write access to all files in the share, irrespective of their actual access privileges.
This module is stackable.
OPTIONS
readonly:period = BEGIN, END
Only mark the share as read only if the client connection was made between the times marked by the BEGIN and END date specifiers. The
syntax of these date specifiers is the same as that accepted by the -d option of GNU date(1).
EXAMPLES
Mark all shares read only:
[global]
vfs objects = readonly
Mark the [backup] share as read only during business hours:
[backup]
path = /readonly
vfs objects = readonly
readonly:period = readonly:period = "today 9:00","today 17:00"
VERSION
This man page is correct for version 3.0.25 of the Samba suite.
AUTHOR
The original Samba software and related utilities were created by Andrew Tridgell. Samba is now developed by the Samba Team as an Open
Source project similar to the way the Linux kernel is developed.
Samba 4.0 06/17/2014 VFS_READONLY(8)