02-04-2019
I need it to pull the filename not <hostname>. Here is the output from your command and an example of one of the filename I'm pulling information from.
<hostname>.Linux.nfslist
<hostname>aix_admin_server:/tools/HourlyProcess nfs 25G 10G 16G 40% /tools/HourlyProcess
<hostname>aix_admin_server:/tools/HourlyProcess nfs 25G 10G 16G 40% /tools/HourlyProcess
<hostname>aix_admin_server:/tools/HourlyProcess nfs 25G 10G 16G 40% /tools/HourlyProcess
<hostname>aix_admin_server:/tools/HourlyProcess nfs 25G 10G 16G 40% /tools/HourlyProcess
<hostname>aix_admin_server:/tools/HourlyProcess nfs 25G 10G 16G 40% /tools/HourlyProcess
<hostname>aix_admin_server:/tools/HourlyProcess nfs 25G 10G 16G 40% /tools/HourlyProcess
<hostname>aix_admin_server:/tools/HourlyProcess nfs 25G 10G 16G 40% /tools/HourlyProcess
10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Being new to this area .I have been assigned a task which i am unable to do . Can any one please help me .
Hi I have requirement where i have input file XYZ_111_999_YYYYMMDD_1.TXT and with header and series of Numbers and Footer.
I want to create a mutiple output files with each file having a... (2 Replies)
Discussion started by: bhargavkr
2 Replies
2. Shell Programming and Scripting
*****************************************
Right now i have this current system.
I have two files say xxx.txt and yyy.txt. xxx.txt is with list of patterns within double quotes. Eg.
"this is the line1"
"this is the line2"
The yyy.txt with lot of lines. eg:
"This is a test message which... (7 Replies)
Discussion started by: abinash
7 Replies
3. UNIX for Dummies Questions & Answers
Hi,
I am new to shell scripting and have a question. I would like to redirect the output of multple commands to single file, From what I read from the bash manpage and from some searching it seems it cannot be done within the shell except setting up a loop. Is it?
I am running all clearcase... (1 Reply)
Discussion started by: saku
1 Replies
4. Shell Programming and Scripting
Hi ,
I have a Data cleansing process which creates different log file for each step , when the process runs it creates following log files in below order:
p1_tranfrmr_log.txt
p1_tranfrmr_stats.txt
p2_globrtr_log.txt
p2_globrtr_stats.txt
p3_cusparse_log.txt
p3_cusparse_stats.txt
'
'... (8 Replies)
Discussion started by: sonu_pal
8 Replies
5. Shell Programming and Scripting
I am trying to combine 4 .dat files into one single Output file
Inputs are:- file123.dat, file256.dat, file378.dat & file490
Expected Output:-
FileName=file1
{text from file1}
EOF
{blank line}
FileName=file2
{text from file2}
EOF
{blank line}
FileName=file3
{text from file3}
EOF... (4 Replies)
Discussion started by: lancesunny
4 Replies
6. Shell Programming and Scripting
Hi,
I have 3 files with one column value as shown
File: a.txt
------------
Data_a1
Data_a2
File2: b.txt
------------
Data_b1
Data_b2
Data_b3
Data_b4
File3: c.txt
------------
Data_c1
Data_c2
Data_c3
Data_c4
Data_c5 (6 Replies)
Discussion started by: vfrg
6 Replies
7. Shell Programming and Scripting
Hi All,
I am new here but I have a scripting question that I can't seem to figure out with the "find" cmd.
What I am trying to do is to only have to run a single find cmd parsing the directories and output the different file types to induvidual files and I have been running into problems.... (3 Replies)
Discussion started by: swaters
3 Replies
8. Shell Programming and Scripting
Hi Friends ,
Please guide me with the code to extract multiple files from one file .
The File Looks like ( Suppose a file has 2 tables list ,column length may vary )
H..- > File Header....
H....- >Table 1 Header....
D....- > Table 1 Data....
T....- >Table 1 Trailer....
H..-> Table 2... (1 Reply)
Discussion started by: AspiringD
1 Replies
9. Shell Programming and Scripting
Hi Experts,
I have created multiple scripts and send the output to new file, getting this output to my mailbox on daily basis.
I would like to send the all outputs to a single file, need to merge all file outputs on a single file.
For example,
Created script for
df -h > df.doc
grep... (7 Replies)
Discussion started by: seenuvasan1985
7 Replies
10. Shell Programming and Scripting
Shell script logic
Hi
I have 2 input files like with file 1 content as (file1)
"BRGTEST-242" a.txt "BRGTEST-240" a.txt "BRGTEST-219" e.txt
File 2 contents as fle(2)
"BRGTEST-244" a.txt "BRGTEST-244" b.txt "BRGTEST-231" c.txt "BRGTEST-231" d.txt "BRGTEST-221" e.txt
I want to get... (22 Replies)
Discussion started by: pottic
22 Replies
AR(1) General Commands Manual AR(1)
NAME
ar - archive and library maintainer
SYNOPSIS
ar key [ posname ] afile [ file ... ]
DESCRIPTION
Ar maintains groups of files combined into a single archive file, afile. The main use of ar is to create and update library files for the
loaders 2l(1), etc. It can be used, though, for any similar purpose.
Key is one character from the set drqtpmx, optionally concatenated with one or more of vuaibclo. The files are constituents of the archive
afile. The meanings of the key characters are:
d Delete files from the archive file.
r Replace files in the archive file, or add them if missing. Optional modifiers are
u Replace only files with modified dates later than that of the archive.
a Place new files after posname in the archive rather than at the end.
b or i Place new files before posname in the archive.
q Quick. Append files to the end of the archive without checking for duplicates. Avoids quadratic behavior in
t List a table of contents of the archive. If names are given, only those files are listed.
p Print the named files in the archive.
m Move the named files to the end or elsewhere, specified as with
o Preserve the access and modification times of files extracted with the x command.
x Extract the named files. If no names are given, all files in the archive are extracted. In neither case does x alter the archive
file.
v Verbose. Give a file-by-file description of the making of a new archive file from the old archive and the constituent files. With
p, precede each file with a name. With t, give a long listing of all information about the files, somewhat like a listing by ls(1),
showing
mode uid/gid size date name
c Create. Normally ar will create a new archive when afile does not exist, and give a warning. Option c discards any old contents
and suppresses the warning.
l Local. Normally ar places its temporary files in the directory /tmp. This option causes them to be placed in the local directory.
When a d, r, or m key is specified and all members of the archive are valid object files for the same architecture, ar inserts a table of
contents, required by the loaders, at the front of the library. The table of contents is rebuilt whenever the archive is modified, except
when the q key is specified or when the table of contents is explicitly moved or deleted.
EXAMPLE
ar cr lib.a *.o
Replace the contents of library with the object files in the current directory.
FILES
/tmp/v*
temporaries
SOURCE
/sys/src/cmd/ar.c
SEE ALSO
2l(1), ar(6)
BUGS
If the same file is mentioned twice in an argument list, it may be put in the archive twice.
This command predates Plan 9 and makes some invalid assumptions, for instance that user id's are numeric.
AR(1)