Hi,
I have a question on bash. Basically I would like to print a file name using bash. I am actually trying to grep a particular character in sequential files.
I have alot files such that a.txt, b.txt,c.txt...etc.
If I found a certain character, I would print that particular filename.
I... (5 Replies)
Hi,
On AIX 5200-07-00 I have a find command as following to delete files from a certain location that are more than 7 days old. I am being told that I cannot use -exec option to delete files from these directories.
Having said that I am more curious to know how this can be done.
an sample... (3 Replies)
I'm trying to clean up my samba share and need to print the found file or print the path of the image it tried to searched for. So far I have this but can't seem to get the logic right. Can anyone help point me in the right direction?
for FILE in `cat list`; do
if ;
then
... (1 Reply)
Hi,
I have a directory with around 100k files and files with varying sizes(10GB files to as low as 5KB). All the files are having pipe dilimited records.
I need to append 7 pipes to the end of each record, in each file whose name contains _X3_ and need to append 10 pipes to the end of each... (3 Replies)
Hello.
I want to get all modules which are loaded and which name are exactly 2 characters long and not more than 2 characters and begin with "nv"
lsmod | (e)grep '^nv????????????
I want to get all modules which are loaded and which name begin with "nv" and are 2 to 7 characters long
... (1 Reply)
Hi,
Can anyone let me know what is difference between
grep .* foo.c
grep '.*' foo.c
I am not able to understand what is exact difference.
Thanks in advance (2 Replies)
How do I pipe the output of something to a filename that includes the date, in a specific date format?
Here's the goal. Output a script to a file periodically during the day:
./script.sh >>logname_yyyy-mm-dd.logAnd when the next day comes, it starts logging to a new filename because the date... (2 Replies)
I have this filename "RBD_EXTRACT_a3468_d20131118.tar.gz" and I would like print out the "yyyymmdd" only. I use this command below, but if different command like cut or print....etc. Thanks
ls RBD_EXTRACT* | sed 's/.*\(........\).tar.gz$/\1/' > test.txt (9 Replies)
Hello,
Normally below script works, could you please comment out what could be the reason of failure if there are spaces in input filename:
script.sh
#!/bin/bash
cd /home/hts/.hts/tvh/
file="$1 $2 $3 $4"
read -d $'\x04' name < "$file"
/usr/bin/ffmpeg -i ""$name"" -vcodec copy -preset... (1 Reply)
Discussion started by: baris35
1 Replies
LEARN ABOUT DEBIAN
eurephiadm-certs
eurephiadm certs(7) eurephiadm certs(7)NAME
eurephiadm-certs - Certificate management for eurephia
DESCRIPTION
Available modes for the certificate command are:
-A | --add
Register a new certificate
-D | --delete
Delete a registered certificate
-l | --list
List all registered certificates
-h | --help <mode>
Help about a specific mode
LIST MODE
The list mode will list all registered certificates. It accepts one parameter:
-S | --sort <sort key>
Decide the sort order of the certificate list
Available sort keys are:
certid
Numeric certificate ID
depth
Certificate depth
digest
Certificate SHA1 digest
cname
Certificate Common Name field
org
Certificate organisation field
email
Certificate e-mail address field
registered
When the certificate was registered in eurephia.
ADD MODE
The add mode will register a new certificate.
-d | --depth
Certificate depth, required.
-D | --digest
SHA1 fingerprint/digest of the new certificate
-C | --common-name
Common name (CN) field of the certificate
-O | --organisation
Organisation (O) field of the certificate
-E | --email
e-mail address (emailAddress) of the certificate
Usually the certificate depth value needs to be 0, if you are registering user account certificates. CA certificates usually have a value
bigger than 0.
If you have the certificate file available, you can use the following options to retrieve the needed information directly from a certifi-
cate file.
-f | --certfile
File name of the certificate file.
-p | --pkcs12
If the file is in PKCS#12 format.
The default format is PEM format, unless --pkcs12 is given. These two options cannot be used together with -D, -C, -O or -E. But the cer-
tificate depth must be given to indicate the certificate depth.
DELETE MODE
The delete mode will remove a certificate from the certificate database.
-i | --certid
Indicates a unique certificate ID
-d | --digest
A unique SHA1 fingerprint/digest value
-C | --common-name
Common Name (CN) field of a certificate
-O | --organisation
Organisation (O) field of a certificate
-E | --email
e-mail address (emailAddress) of a certificate
You can use any of these parameters to indicate a search criteria for the certificate (or certificates) you want to delete. You will be
provided with a list over certificates which matches your search criteria and you will need to approve the deletion of the matching cer-
tificate(s).
SEE ALSO eurephiadm-users(7), eurephiadm-usercerts(7)AUTHOR
Copyright (C) 2008-2010 David Sommerseth <dazo@users.sourceforge.net>
David Sommerseth July 2010 eurephiadm certs(7)