Have below input file and need the output as in output file
Hi Geeks,
Have below input file and need the output
Input File
How to get the output like below which is the highlighted part on Input File
1. Without any spaces and brackets
2.As Gitamo Agencies Depot occured twice in input file so first value is printed as it is but on next time it appers _1 is appended to it and if agin it appears _2 and so on should be appended
Output File
Thanks
Moderator's Comments:
Please wrap all code, files, input & output/errors in CODE tags.
It makes it easier to read and respects white-space for indenting or fixed-width data.
Hi,
I have two files , one file with data file with attributes that need to be sent to another file to generate a predefined format.
Example:
File.txt
AP|{SSHA}VEEg42CNCghUnGhCVg==
APVG3|{SSHA}XK|"password"
AP3|{SSHA}XK|"This is test"
....
etc
---------
test.sh has... (1 Reply)
Hi All,
I am hoping someone can help me with some scripting I need to complete using AWK.
I'm trying to process multiple fixed files to generate one concatenated fixed file in a standard format.
The Input file is:-
aaaa bbbbb ccccc 1 xxxx aaa bbb
aaaa bbbbb ccccc 2 abcd aaa CCC... (9 Replies)
Hi All,
I have two input file and need to generate a CSV file. The existing report just "GREP" the records with the Header and Tailer records with the count of records.
Now i need to split the data into 25 records each in the same CSV file.
id_file (Input file )
227050994
232510151... (4 Replies)
This is my input file like this
03,105581,,015,+00000416418,,,901,+00000000148,,,922,+00000000354,,/
49,+00000000000416920,00002/
03,5313236,,015,+00231036992,,,045,+00231036992,,,901,+00000048428,,/
88,100,+0000000000000,0000000,,400,+0000000000000,0000000,/
88,902,+0000000079077,,/... (0 Replies)
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:
A) Write a script, which will take input from a file and convert the number from Centigrade to Fahrenheit... (5 Replies)
Hello,
I have the following input file:
auditing account: 3DTP (3dtp)
ERROR: S3 bucket "aws-origin-test1.3dstage.com" has policy statement with public grant: {"Sid":"PublicReadGetObject","Effect":"Allow","Principal":{"AWS":"*"},"Action":,"Resource":}
auditing region: eu-west-1
auditing... (5 Replies)
I've got a file that looks like this (spaces before first entries intentional):
12345650-000005000GL140227 ANNUAL HELC FEE EN
22345650-000005000GL140227 ANNUAL HELC FEE EN
32345650-000005000GL140227 ANNUAL HELC FEE EN
I want to read through the file line by line,... (6 Replies)
I have one input file ABC.txt and one output DEF.txt. After the ABC is processed and created output, I want to rename ABC.txt to ABC.orig and DEF to ABC.txt. Currently when I am doing this, it does not process the input file as it cannot read and write to the same file. How can I achieve this?
... (12 Replies)
The below awk improved bu @MadeInGermany, works great as long as the input file has data in it in the below format:
input
chrX 25031028 25031925 chrX:25031028-25031925 ARX 631 18
chrX 25031028 25031925 chrX:25031028-25031925 ARX 632 14... (3 Replies)
Experts,
Need your help for this. Please support
My motive is to create seperate output file for each Input Files(File 1 and File2) in another folder say(/tmp/finaloutput)
Input files
File 1(1.1.1.1.csv)
a,b,c
43,17104773,3
45,17104234,4
File 2(2.2.2.2.csv)
a,b,c
43,17104773,1... (2 Replies)
Discussion started by: as7951
2 Replies
LEARN ABOUT OSF1
vos_listaddrs
VOS_LISTADDRS(1) AFS Command Reference VOS_LISTADDRS(1)NAME
vos_listaddrs - Displays all VLDB server entries
SYNOPSIS
vos listaddrs [-uuid <uuid of server>]
[-host <address of host>] [-printuuid]
[-cell <cell name>] [-noauth] [-localauth]
[-verbose] [-encrypt] [-noresolve] [-help]
vos lista [-u <uuid of server>] >>>
[-h <address of host>] [-p]
[-c <cell name>] [-noa] [-l]
[-v] [-e] [-nor] [-he]
DESCRIPTION
The vos listaddrs command displays all of the server entries from the Volume Location Database (VLDB). An entry is created as the File
Server initializes and registers the contents of its /var/lib/openafs/local/sysid file in the VLDB.
OPTIONS -host <address of host>
Rather than displaying all the server entries, display only server entries for the specified host. This will show all multihomed
addresses registered by that File Server in the VLDB.
-uuid <uuid of server>
Rather than displaying all the server entries, display only server entries for the File Server with the specified UUID. This will show
all multihomed addresses registered by that File Server in the VLDB and also allows mapping a File Server UUID to its address.
-printuuid
Prints the UUID of server entries in addition to the registered addresses. The -printuuid option is available in OpenAFS versions 1.4.5
or later and 1.5.8 or later.
-cell <cell name>
Names the cell in which to run the command. Do not combine this argument with the -localauth flag. For more details, see vos(1).
-noauth
Assigns the unprivileged identity anonymous to the issuer. Do not combine this flag with the -localauth flag. For more details, see
vos(1).
-localauth
Constructs a server ticket using a key from the local /etc/openafs/server/KeyFile file. The vos command interpreter presents it to the
Volume Server and Volume Location Server during mutual authentication. Do not combine this flag with the -cell argument or -noauth
flag. For more details, see vos(1).
-verbose
Produces on the standard output stream a detailed trace of the command's execution. If this argument is omitted, only warnings and
error messages appear.
-encrypt
Encrypts the command so that the operation's results are not transmitted across the network in clear text. This option is available in
OpenAFS versions 1.4.11 or later and 1.5.60 or later.
-noresolve
Shows all servers as IP addresses instead of the DNS name. This is very useful when the server address is registered as 127.0.0.1 or
when dealing with multi-homed servers. This option is available in OpenAFS versions 1.4.8 or later and 1.5.35 or later.
-help
Prints the online help for this command. All other valid options are ignored.
OUTPUT
The output displays all server entries from the VLDB, each on its own line. If a file server machine is multihomed, all of its registered
addresses appear on the line. The first one is the one reported as a volume's site in the output from the vos examine and vos listvldb
commands.
The VLDB records IP addresses, and the command interpreter has the local name service (either a process like the Domain Name Service or a
local host table) translate them to hostnames before displaying them. If an IP address appears in the output, it is not possible to
translate it.
The existence of an entry does not necessarily indicate that the machine that is still an active file server machine. To remove obsolete
server entries, use the vos changeaddr command with the -remove argument.
EXAMPLES
The following command displays the VLDB server entries in the ABC Corporation cell:
% vos listaddrs
sv5.abc.com
sv1.abc.com
sv2.abc.com afs2.abc.com
sv6.abc.com
The following command displays the VLDB server entry and UUID for host sv5.abc.com in the ABC Corporation cell:
% vos listaddrs -p -ho sv5.abc.com
UUID: 000c5aff-8246-1699-96-c4-437b5a45aa77
sv5.abc.com
PRIVILEGE REQUIRED
None
SEE ALSO fs_uuid(1), sysid(5), vos(1), vos_changeaddr(1), vos_examine(1), vos_listvldb(1)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 VOS_LISTADDRS(1)