09-04-2014
Provide us the input, expected output and other details
10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
I've done quite a bit of searching on this but cannot seem to find exactly what I'm looking for. Say I have a | delimited input file with 6 columns and I need to change the value of a few columns and create an output file. With my limited knowledge I can do this with many lines of code but want... (5 Replies)
Discussion started by: 1superdork
5 Replies
2. Shell Programming and Scripting
Im very new to programming. But I would like to write a script which extracts and multiply values from 2 txt and output as a new file. Can someone please teach me how to write it? Thank you so much
for example
File A File B
1 34 1 2
2 13 2 2
3 8 3 3
File C output
1 68
2... (2 Replies)
Discussion started by: crunchichichi
2 Replies
3. Shell Programming and Scripting
Hi,
I have a file which looks like this:
.I 1
some text
.A
this is the first line
.I 2
some text again
.B
this is the second line
.I 3
again some text
.C
this is the third line
I want to have my output like this in separate files: (7 Replies)
Discussion started by: shoaibjameel123
7 Replies
4. Programming
i wanna make modification in two or more identifiers,using a method in JAVA , but the only way to do this is by returning a value ,then also only one variable value can be modified .. one way 2 do do this is by use of array and passing its name in method ,, please suggest a different way of doing... (2 Replies)
Discussion started by: upvan111
2 Replies
5. Homework & Coursework Questions
Use and complete the template provided. The entire template must be completed. If you don't, your post may be deleted!
1. The problem statement, all variables and given/known data:
Write a template main.c file via shell script to make it easier for yourself later.
The issue here isn't writing... (2 Replies)
Discussion started by: george3isme
2 Replies
6. Shell Programming and Scripting
Hi,
I am trying to populate an array with data from a text file. I have a working method using awk but it is too slow and inefficent. See below.
The text file has 70,000 lines. As awk is a line editor it reads each line of the file until it gets to the required line and then processes it.... (3 Replies)
Discussion started by: carlr
3 Replies
7. Shell Programming and Scripting
Hi,
I was hoping someone could suggest an alternative to code I currently have as mine takes up far too much processor time and it to slow.
The situation:
I have a programme that runs on some files just before they are zipped up and archived, the program appends a one line summary of the... (4 Replies)
Discussion started by: RECrerar
4 Replies
8. Shell Programming and Scripting
I have some files containing the following data
# RESIDUE AA STRUCTURE BP1 BP2 ACC N-H-->O O-->H-N N-H-->O O-->H-N TCO KAPPA ALPHA PHI PSI X-CA Y-CA Z-CA
1 196 A M 0 0 230 0, 0.0 2,-0.2 0, 0.0 0, 0.0 0.000 360.0 360.0 360.0 76.4 21.7 -6.8 11.3
2 197 A D + 0 0 175 1,-0.1 2,-0.1 0, 0.0 0, 0.0... (10 Replies)
Discussion started by: edweena
10 Replies
9. UNIX for Dummies Questions & Answers
Hello,
Through the process of a executing a shell script, I extract the values for a number of variables (arbitrarily declared as a through i) and towards the end I print them out like shown below:
#!bin/sh
# bits of code to get values for the variables
......
......
# print the values... (4 Replies)
Discussion started by: Gussifinknottle
4 Replies
10. Shell Programming and Scripting
Shell: sh/bash
OS: Linux (all unix flavors)
Suppose i have a variable with this content:
ArgZ='
import os
import sys
MySpecialpath = os.path.abspath(sys.argv)
#
'
ArgZB='#REGEN
#REGEN
#REGEN
'
I want to add this text to a file/script, only under the following conditions:
1. ... (1 Reply)
Discussion started by: SkySmart
1 Replies
LEARN ABOUT OSF1
kas_list
KAS_LIST(8) AFS Command Reference KAS_LIST(8)
NAME
kas_list - Displays all entries in the Authentication Database
SYNOPSIS
kas list [-long] [-showadmin] [-showkey]
[-admin_username <admin principal to use for authentication>]
[-password_for_admin <admin password>] [-cell <cell name>]
[-servers <explicit list of authentication servers>+]
[-noauth] [-help]
kas ls [-l] [-showa] [-showk]
[-a <admin principal to use for authentication>]
[-p <admin password>] [-c <cell name>]
[-se <explicit list of authentication servers>+] [-n] [-h]
DESCRIPTION
The kas list command either displays all entries from the Authentication Database by name, or displays the full database entry for a
defined set of entries, as determined by the flag provided:
o To display every entry in the Authentication Database in full, include the -long flag.
o To display only those entries in full that have the "ADMIN" flag set, include the -showadmin flag.
o To list only the name of each Authentication Database entry, omit both the -long and -showadmin flags.
By default, full entries include a checksum for the encryption key, rather than the actual octal digits that constitute the key. To display
the octal digits, include the -showkey flag with the -long or -showadmin flag.
OPTIONS
-long
Displays every Authentication Database entry in full. Provide this flag or the -showadmin flag, or omit both to display just the name
of every database entry.
-showadmin
Displays in full only the Authentication Database entries that have the "ADMIN" flag set. Provide this flag or the -long flag, or omit
both to display just the name of every database entry.
-showkey
Displays the octal digits that constitute the key in each full entry. Provide either the -long or -showadmin flag along with this one.
-admin_username <admin principal>
Specifies the user identity under which to authenticate with the Authentication Server for execution of the command. For more details,
see kas(8).
-password_for_admin <admin password>
Specifies the password of the command's issuer. If it is omitted (as recommended), the kas command interpreter prompts for it and does
not echo it visibly. For more details, see kas(8).
-cell <cell name>
Names the cell in which to run the command. For more details, see kas(8).
-servers <authentication servers>+
Names each machine running an Authentication Server with which to establish a connection. For more details, see kas(8).
-noauth
Assigns the unprivileged identity "anonymous" to the issuer. For more details, see kas(8).
-help
Prints the online help for this command. All other valid options are ignored.
OUTPUT
If neither the -long or -showadmin flag is provided, the output lists the name of each entry in the Authentication Database on its own
line.
If the -long flag is included, the output includes every Authentication Database entry in full. If the -showadmin flag is included, the
output includes in full only the Authentication Database entries that have the "ADMIN" flag set. If the -showkey is provided along with
either one, the output includes the octal digits that constitute the encryption key in each entry.
A full Authentication Database entry includes the same information displayed by the kas examine command; for details, see that command's
reference page.
PRIVILEGE REQUIRED
The issuer must have the "ADMIN" flag set on his or her Authentication Database entry.
SEE ALSO
kas(8), kas_examine(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_LIST(8)