01-26-2014
You combined file and file system stat queries, which does not work. And you gave a format descriptor without the -c or --printf option (on top of the fact that there's no date/time info for file systems)
This User Gave Thanks to RudiC For This Post:
10 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
Hi!
All!
I am wirting a shell script in which i want to read one line
at a time from the file and write it simultaneouly to other file one line at a time.
Please let me know about some shell utility which can help me out.
Thanx.
If further clarifications are needed then please let me know... (2 Replies)
Discussion started by: s_chopra
2 Replies
2. Shell Programming and Scripting
Hello,
I am a Newbie in ksh Unix Script.
So I must write a ksh/sh script who read character at a position in a File. So also it must read all the lines who belongs at these characters , then write these lines in a another File.
Can you help me , or give little councils to advance with my... (5 Replies)
Discussion started by: steiner
5 Replies
3. UNIX for Dummies Questions & Answers
hi everybody,
i am working in device drivers.As a beginner to this field ,i dont know how to read or write device files. Will copy_to_user and copy_from_user help me?
I have created a device file using mknod command .Can anybody help me in this regard :confused
thanks in advance
sriram (1 Reply)
Discussion started by: sriram.ec
1 Replies
4. Shell Programming and Scripting
Hi
I need some help on SED command
I am writing a shell script which does the following:
1. Read one line at a time from a file abc.txt which has millions of lines
2. Prefix each line read with some text "
3. Post fix each line read with a quote "
4. Write the new modified... (11 Replies)
Discussion started by: gaurav_1711
11 Replies
5. Shell Programming and Scripting
I need to find all the files that have group Read or Write permission or files that have user write permission.
This is what I have so far:
find . -exec ls -l {} \; | awk '/-...rw..w./ {print $1 " " $3 " " $4 " " $9}'
It shows me all files where group read = true, group write = true... (5 Replies)
Discussion started by: shunter63
5 Replies
6. Shell Programming and Scripting
Hi,
I want to modify a filename in AIX by attaching the last modified timestamp. I want the timestamp completely in numerical format (eg:200905081210. yr-2009, mnth - 05, date -08, hr - 12, mins - 10).
For example if the filename is a.log and it was modified on April 6th 2008 at 21.00. I... (16 Replies)
Discussion started by: Ruks
16 Replies
7. Programming
Hi all,
I have a problem with some read/write functions.
I have a .bin file which contains a lot of structures as follows:
struct alumno
{
char id;
char apellido1;
char apellido2;
char nombre;
float nota1p;
float nota2p;
float notamedia;
char photofilename;
};
What I have... (3 Replies)
Discussion started by: Attenea
3 Replies
8. IP Networking
Hi,
We have smb client running on two of the linux boxes and smb server on another linux system. During a backup operation which uses smb, read of a file was allowed while write to the same file was going on.Also simultaneous writes to the same file were allowed.Following are the settings in the... (1 Reply)
Discussion started by: swatidas11
1 Replies
9. UNIX for Dummies Questions & Answers
Version Info
+++++++++++++++
RHEL 5.4
Since ls command lists file sizes in Bytes which can be long I use du command like below.
I have run the du command for the below files as shown below.
But I want pipe this output to ls command just to see the modified timestamp for these files. ... (7 Replies)
Discussion started by: kraljic
7 Replies
10. Shell Programming and Scripting
Dears.
kindly guide !!!
I have data, which is delimited by | .
it should contain 26 columns, but one column data contain | makes few row to 27 columns.
I want to find rows have 27 columns and then concatenate the specific columns to single column to make it 26 columns.
Kindly help, Can... (3 Replies)
Discussion started by: sadique.manzar
3 Replies
LEARN ABOUT DEBIAN
grid-cert-info
GRID-CERT-INFO(1) Globus Commands GRID-CERT-INFO(1)
NAME
grid-cert-info - Display information about a certificate
SYNOPSIS
grid-cert-info [-help] [-usage] [-version] [-versions]
grid-cert-info [-file CERTIFICATE-FILE] [-rfc2253] [-all]
[-subject] | [-s]
[-issuer] | [-i]
[-issuerhash] | [-ih]
[-startdate] | [-sd]
[-endate] | [-ed]
DESCRIPTION
The grid-cert-info program displays information contained within a certificate file. By default it shows a text representation of the
entire certificate. Specific facts about the certificate can be shown instead by using command-line options. If any of those options are
used, then the default display is suppressed. This can be added to the output by using the -all command-line option.
If multiple display options are included on the command-line, the facts related to those will be displayed on separate lines in the order
that they occur. If an option is specified multiple time, that fact will be displayed multiple times.
The full set of command-line options to grid-cert-info are:
-help, -usage
Display the command-line options to grid-cert-info and exit.
-version, -versions
Display the version number of the grid-cert-info command. The second form includes more details.
-file CERTIFICATE-FILE
Display information about the first certificate contained in the file named by CERTIFICATE-FILE instead of the default user
certificate.
-rfc2253
Display X.509 distinguished names using the string representation defined in RFC 2253 instead of the default OpenSSL oneline format.
-all
Display the text representation of the entire certificate in addition to any other facts requested by command-line options. This is the
default if no fact-specific command-line options are used.
-subject, -s
Display the subject name of the X.509 certificate.
-issuer, -i
Display the issuer name of the X.509 certificate.
-issuerhash, -ih
Display the default hash of the issuer name of the X.509 certificate. This can be used to locate which CA certificate in the trusted
certificate directory issued the certifcate being inspected.
-startdate, -sd
Display a string representation of the date and time when the certificate is valid from. This is displayed in the format used by the
OpenSSL x509 command.
-enddate, -dd
Display a string representation of the date and time when the certificate is valid until. This is displayed in the format used by the
OpenSSL x509 command.
EXAMPLES
Display the validity times for the default certificate
% grid-cert-info -sd -ed
Aug 31 12:33:47 2009 GMT
Aug 31 12:33:47 2010 GMT
Display the same information about a different certificate specified on the command-line
% grid-cert-info -sd -ed -f /etc/grid-security/hostcert.pem
Jan 21 12:24:48 2003 GMT
Jul 15 11:30:57 2020 GMT
Display the subject of a certificate in both the default and the RFC 2253 forms.
% grid-cert-info -subject
/DC=org/DC=example/DC=grid/CN=Joe User
% grid-cert-info -subject -rfc2253
CN=Joe User,DC=grid,DC=example,DC=org
ENVIRONMENT VARIABLES
The following environment variables affect the execution of grid-cert-info:
X509_USER_CERT
Path to the default certificate file to inspect.
AUTHOR
University of Chicago
Globus Toolkit 5.0.1 03/22/2010 GRID-CERT-INFO(1)