To make it easier, let assume xyz=2
So, I want look for the PIN line, then move it next xyz line (meaning: move it to next 2 lines)
The output should be like this:
Note that there are 2 actions:
- remove old PIN line
- add new PIN line to the right position
Hi Friends,
Can any of you explain me about the below line of code?
mn_code=`env|grep "..mn"|awk -F"=" '{print $2}'`
Im not able to understand, what exactly it is doing :confused:
Any help would be useful for me.
Lokesha (4 Replies)
i have an ip file like
121
1213412
34345353
long file
want to made each line as 20digit long append zero "0" in front
as 121
become
00000000000000000121 (1 Reply)
I know it sounds simple, but I want to e-mail the last 6 lines of a log file, which I have tailed into logresults.txt. I'm using
echo -e "Subject:server results\nFrom:server log <user@domain.com>\n"`cat logresults.txt` | sendmail -t user@domain.com
which works, but the body of the e-mail has... (4 Replies)
Hi,
I need a command in UNIX KSH below is the description...
MAPPING DESCRIPTION ="Test Mapping for the calid inputs" ISVALID ="YES" NAME ="m_test_xml" OBJECTVERSION ="1" VERSIONNUMBER ="1"
unix ksh command to read the DESCRIPTION and write to a file
Test Mapping for the calid inputs... (3 Replies)
Hello All,
I am trying to figure out how to use the read command. I have a txt file that has rows looking something like this:
1 2 3 4 5 6 7 8 9
where each number represents an entry of various characters deliminated by tabs.
My goal is to set entries 2-7 as a variable/string that I... (3 Replies)
Hi,
How can I remove the line beak in the following case if the line begin with the special char “;”?
TEXT
Text;text
;text
Text;text;text
I want to convert the text to:
Text;text;text
Text;text;text
I have already tried to use... (31 Replies)
Hi,
I have line in input file as below:
3G_CENTRAL;INDONESIA_(M)_TELKOMSEL;SPECIAL_WORLD_GRP_7_FA_2_TELKOMSEL
My expected output for line in the file must be :
"1-Radon1-cMOC_deg"|"LDIndex"|"3G_CENTRAL|INDONESIA_(M)_TELKOMSEL"|LAST|"SPECIAL_WORLD_GRP_7_FA_2_TELKOMSEL"
Can someone... (7 Replies)
Okay, so I have a rather large text file and will have to process many more and this will save me hours of work.
I'm not very good at scripting, so bear with me please.
Working on Linux RHEL
I've been able to filter and edit and clean up using sed, but I have a problem with moving lines.
... (9 Replies)
Hi everybody,
I am new at Unix/Bourne shell scripting and with my youngest experiences, I will not become very old with it :o
My code:
#!/bin/sh
set -e
set -u
export IFS=
optl="Optl"
LOCSTORCLI="/opt/lsi/storcli/storcli"
($LOCSTORCLI /c0 /vall show | grep RAID | cut -d " "... (5 Replies)
Discussion started by: Subsonic66
5 Replies
LEARN ABOUT CENTOS
westcos-tool
WESTCOS-TOOL(1) OpenSC Tools WESTCOS-TOOL(1)NAME
westcos-tool - utility for manipulating data structures on westcos smart cards
SYNOPSIS
westcos-tool [OPTIONS]
DESCRIPTION
The westcos-tool utility is used to manipulate the westcos data structures on 2 Ko smart cards / tokens. Users can create PINs, keys and
certificates stored on the card / token. User PIN authentication is performed for those operations that require it.
OPTIONS --change-pin, -n
Changes a PIN stored on the card. User authentication is required for this operation.
--certificate file, -t file
Write certificate file file in PEM format to the card. User authentication is required for this operation.
--finalize, -f
Finalize the card. Once finalized the default key is invalidated, so PIN and PUK cannot be changed anymore without user authentication.
Warning, un-finalized are insecure because PIN can be changed without user authentication (knowledge of default key is enough).
--generate-key, -g
Generate a private key on the card. The card must not have been finalized and a PIN must be installed (ie. the file for ithe PIN must
havei been created, see option -i). By default the key length is 1536 bits. User authentication is required for this operation.
--help, -h
Print help message on screen.
--install-pin, -i
Install PIN file in on the card. You must provide a PIN value with -x.
--key-length length, -l length
Change the length of private key. Use with -g.
--overwrite-key, -o
Overwrite the key if there is already a key on the card.
--pin-value value, -x value
Set value of PIN.
--puk-value value, -y value
set value of PUK (or value of new PIN for change PIN command see -n).
--read-file path, -j path
Read the file path from the card. The file is written on disk with name path. User authentication is required for this operation.
--reader num, -r num
Use the given reader. The default is the first reader with a card.
--unblock-pin, -u
Unblocks a PIN stored on the card. Knowledge of the PIN Unblock Key (PUK) is required for this operation.
-v
Causes westcos-tool to be more verbose. Specify this flag several times to enable debug output in the OpenSC library.
--wait, -w
Wait for a card to be inserted.
--write-file path, -k path
Put the file with name path from disk to card. On the card the file is written in path. User authentication is required for this
operation.
AUTHORS
westcos-tool was written by Francois Leblanc <francois.leblanc@cev-sa.com>.
opensc 06/17/2014 WESTCOS-TOOL(1)