hello
I have a number of lines that need to be added at the end of a file each time I add a field in another file (let's name it file2)
file2 has this format:
filed1:field2:path1:path2:path3:path...
Whenever I add a path field, I should add to file1 these lines:
<Location path1>... (0 Replies)
Hi,
I've one requirement. I have to split one comma delimited file into multiple files based on one of the column values.
How can I achieve this Unix
Here is the sample data. In this case I have split the files based on date column(c4)
Input file
c1,c2,c3,c4,c5... (1 Reply)
I can't decide if I should use AWK or PERL after pouring over these forums for hours today I decided I'd post something and see if I couldn't get some advice.
I've got a text file full of hundreds of events in this format:
Record Number : 1
Records in Seq : ... (3 Replies)
Hi All,
I'm having a hard time finding a starting point for my issue. I have a 30k line file (fspsec.txt) that I would like to parse into smaller files based on any character existing in field 1.
ACCOUNTANT LEVEL 1 (ACCT.ACCOUNTANT)
OPERATORS: DOEJO (418)
TOOLS: Branch Maintenance
... (2 Replies)
If a file has following kind of data, comma delimited
1,2,3,4
1
1
1,2,3,4
1,2
2
2,3,4
My required output must have only 4 columns with comma delimited
1,2,3,4
111,2,3,4
1,222,3,4
I have tried many awk command using ORS="" but couldnt progress (10 Replies)
Hi,
I have a requirement where I need to combine two lines in a file based on first character of each line in a file.
Please find the sample content of the file below:
Code:
_______________________
5, jaya, male, 4-5-90, single
smart
6, prakash, male, 5-4-84, married
fair
7, raghavi,... (1 Reply)
Hi,
I have a requirement where I need to combine two lines in a file based on first character of each line in a file.
Please find the sample content of the file below:
Code:
_______________________
5, jaya, male, 4-5-90, single
smart
6, prakash, male, 5-4-84, married
fair
7, raghavi,... (1 Reply)
I am trying to remove lines in the target.txt file if $5 before the - in that file matches sorted_list. I have tried grep and awk. Thank you :).
grep
grep -v -F -f targets.bed sort_list
grep -vFf sort_list targets
awk
awk -F, '
> FILENAME == ARGV {to_remove=1; next}
> ! ($5 in... (2 Replies)
Hi Folks,
I have a file with fields as follows which has last field in multiple lines. I would like to combine a line which has three fields with single field line for as shown in expected output. Please help.
INPUT
hname01 windows appnamec1eda_p1, ... (5 Replies)
I have an input file with
A=xyz
B=pqr
I would want the value in Second Field (xyz or pqr) updated with a value present in Shell Variable based on the value passed in the first field. (A or B )
while read line
do
NEW_VALUE = `some functionality done on $line`
If $line=First Field-... (1 Reply)
Discussion started by: infernalhell
1 Replies
LEARN ABOUT REDHAT
kas_stringtokey
KAS_STRINGTOKEY(8) AFS Command Reference KAS_STRINGTOKEY(8)NAME
kas_stringtokey - Converts a character string into an octal key
SYNOPSIS
kas stringtokey -string <password string>
[-cell <cell name>] [-help]
kas str -s <password string> [-c <cell name>] [-h]
DESCRIPTION
The kas stringtokey command converts the character string specified with the -string argument into an octal string suitable for use as an
encryption key.
The kas command interpreter generates the octal key by using an encryption algorithm on the combination of the specified string and the
name of the local cell (as recorded in the local /etc/openafs/ThisCell file). Use the -cell argument to convert a string into a key
appropriate for a cell other than the local one.
CAUTIONS
This command writes the key to the standard output stream, on which it can possibly be intercepted by third parties. It is not very secure
to use the key in an actual Authentication Database entry.
OPTIONS -string <password string>
Specifies the character string to convert into an octal key.
-cell <cell name>
Specifies the complete Internet domain name of the cell to combine with the password string while generating the key. If this argument
is omitted, the kas command interpreter determines the name of the local cell by consulting:
o First, the value of the environment variable AFSCELL.
o Second, the cellname in the /etc/openafs/ThisCell file on the local machine.
-help
Prints the online help for this command. All other valid options are ignored.
OUTPUT
The output is of the following form:
Converting I<password string> in realm 'I<cell_name>' yields key='I<key>'.
EXAMPLES
The following example shows the octal key equivalent of the string "new_pswd" in the ABC Corporation cell.
% kas stringtokey new_pswd
Converting new_pswd in realm 'ABC.COM' yields
key='346307364320263233342354'.
PRIVILEGE REQUIRED
None, and no password is required.
SEE ALSO ThisCell(5), kas(8)COPYRIGHT
IBM Corporation 2000. <http://www.ibm.com/> All Rights Reserved.
This documentation is covered by the IBM Public License Version 1.0. It was converted from HTML to POD by software written by Chas
Williams and Russ Allbery, based on work by Alf Wachsmann and Elizabeth Cassell.
OpenAFS 2012-03-26 KAS_STRINGTOKEY(8)