I know that this my be really simple, but I'm having a hard time accomplishing it. I am trying to add a new line of text after finding a particular string of text in a file. Here's what I'm getting:
sed: command garbled: N/search_string/\\new_text/
I was using "N" to add a line after the... (3 Replies)
I need your help,
I want to add a text every 2nd line and also a blank line after 3 line
(In the output 2nd line is "changetype: modify" and every 4th line is blank line)
Input file format
dn: abc
orclsourceobjectdn: abcd
dn: bcd
orclsourceobjectdn: bcda
dn: cba
orclsourceobjectdn:... (7 Replies)
Hi,
I want to write a sed script which from
batiato:
batiato/giubbe:
pip_b.2.txt
pip_b.3.txt
pip_b.3mmm.txt
bennato:
bennato/peterpan:
123.txt
consoli:
pip_a.12.txt
daniele: (2 Replies)
Hi,
Can anyone help me with the text editing I need here. I have a file that contains the following lines for example: (line numbers are for illustration only)
1 Hello world fantasy.
2 Hello worldfuntastic.
3 Hello world wonderful.
I would like to get all those lines of text that... (5 Replies)
I have my data something like this
SERIAL FIRSTOCCURRENCE
NETPROTOCOL
1947430693 07/01/2009 05:16:40
FR
SERIAL FIRSTOCCURRENCE
NETPROTOCOL
1947430746 07/01/2009 05:18:05
FR
I want the output as follows.... (1 Reply)
Problem: I have a lot of files, the files first line should always have 4 spaces before any text. Occasionally some of the files will miss the leading spaces and it's a problem. This is only in the first line.
So if there are 4 spaces then text, do nothing. If there are not 4 spaces, add 4... (2 Replies)
I've been playing with sed, trying to get it to insert the contents of somefile.txt after line 13 on anotherfile.txt. I tried searching for a line with regex and attempting to insert something on the next line with:
find ./anotherfile.txt -type f -exec sed -i -e '/^dog/cat/' {} \;
but it... (2 Replies)
help
i need to add a "nfsd" in new line after cron
ex:
cron
rpcbind
output:
cron
nfsd
rpcbind
i use
sed -e "/cron/G; s/$/nfsd/" myfile
output:
cron
nfsd
rpcbindnfsd (5 Replies)
hi guys,
im trying to add the following line in my xml file
<dbrollbacksegs <oa_var="s_db_rollback_segs">NOROLLBACK</dbrollbacksegs>
when ever i find the following line
<dbsharedpool oa_var="s_dbsharedpool_size">300000000</dbsharedpool>
I have succedded till adding a new line... (1 Reply)
Hello.
I have a config file (/etc/my_config_file) which may content :
#
# port for HTTP (descriptions, SOAP, media transfer) traffic
port=8200
# network interfaces to serve, comma delimited
network_interface=eth0
# set this to the directory you want scanned.
# * if have multiple... (6 Replies)
Discussion started by: jcdole
6 Replies
LEARN ABOUT CENTOS
pkcs11_inspect
pkcs11_inspect(1) PAM PKCS#11 pkcs11_inspect(1)NAME
pkcs11_inspect - print certificate contents
SYNOPSIS
pkcs11_inspect [debug] [config_file=<filename>]
DESCRIPTION
pkcs11_inspect uses the pam_pkcs11 library infrastructure to get the content of a certificate and display it.
pkcs11_inspect uses the same configuration file and arguments than pam_pkcs11(8) PAM module. It loads defined mapper modules, and use them
to look into the certificate for required entries (ie: ms_mapper looks for ms UPN entries, and so on).
When a mapper module finds a proper entry in the certificate, it converts to UTF-8 and print it to stdout.
OPTIONS
debug Enable debugging output.
config_file=<filename>
Sets the configuration file to use. Default value is /etc/pam_pkcs11/pam_pkcs11.conf.
As it uses the same configuration file as pam_pkcs11, all pam_pkcs11 options are also available. Note that some of them have no sense in a
non-PAM environment, so they will be ignored. Some mapper options (mapfile, ignorecase) have no effect on certificate contents, so they
will be ignored too.
RETURN VALUE
On success pkcs11_inspect prints on stdout all certificate contents that are found for mappers and returns 0.
On error it returns 1.
FILES
/etc/pam_pkcs11/pam_pkcs11.conf
EXAMPLES
To run this program the standard way, insert a smart card in the reader and type:
pkcs11_inspect
Alternatively you can specify options:
pkcs11_inspect debug config_file=${HOME}/.pam_pkcs11.conf
AUTHORS
Juan Antonio Martinez <jonsito@teleline.es>
SEE ALSO pam_pkcs11(8), pklogin_finder(1)
PAM-PKCS11 User Manual
Juan Antonio Martinez Aug 2005 pkcs11_inspect(1)