07-21-2009
format file output
Hi,
I am trying to put a script together that allows for a command to be executed and then the output goes to a .html file. I am running the script on HPUX.
I run:
/var/fl/user/lmutil lmstat -a -c license_lic.dat > /web/results.html
This saves the command to a .html file but the text is all together like:
No such feature exists. (-5,222) Users of GZCT2: Cannot get users of GZCT2: No such feature exists. (-5,222) Users of GZCT1: Cannot get users of GZCT1: No such feature exists. (-5,222) Users of ICPDAH: Cannot get users of ICPDAH: No such feature exists. (-5,222) Users of JNJMELV: Cannot get users of JNJMELV: No such feature exists. (-5,222) Users of Af_xLoadUPrt: Cannot get users of Af_xLoadUPrt: No such feature exists. (-5,222) Users of Af_xLoadStep: Cannot get users of Af_xLoadStep: No such feature exists. (-5,222)
I want to get the text to look like this:
Users of GZCT1: Cannot get users of GZCT1: No such feature exists. (-5,222)
Users of ICPDAH: Cannot get users of ICPDAH: No such feature exists. (-5,222)
Users of JNJMELV: Cannot get users of JNJMELV: No such feature exists. (-5,222)
Users of Af_xLoadUPrt: Cannot get users of Af_xLoadUPrt: No such feature exists. (-5,222)
Users of Af_xLoadStep: Cannot get users of Af_xLoadStep: No such feature exists. (-5,222)
Does anyone have any ideas on how to format the output?
Thanks!
10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
hello all
Script and example of file
#!/bin/sh
#sh gdata.sh /users/testsuite/db/appl/
DATE=`date '+20%y-%m-%d'`
echo $DATE
for i in ${1}/$DATE/* ; do
find $i -name daily -prune -o -name run.log -print -exec grep -c ! {} \; done > test.log.
The test.log contains output like this ... (9 Replies)
Discussion started by: getdpg
9 Replies
2. Shell Programming and Scripting
Hi,
I have a file which contains more than 1 lakh records like following:
a. name, id, city, state, country, phone (Expected I/P file format)
name, id, city,, state, country, phone (Current I/P file format )
I want to achieve following tasks,
a, Remove the extra comma in the... (1 Reply)
Discussion started by: velappangs
1 Replies
3. Shell Programming and Scripting
hi ,
i need to format the output which is availble in a file
file output is
Following are the Process_Scheduler Domains running in the server Ram-pc
VPORCL
Following are the Application Server domains running in the server Ram-pc
VPORCL01
VPORCL02
these value VPORCL,VPORCL01...... (5 Replies)
Discussion started by: becksram123
5 Replies
4. Shell Programming and Scripting
I am sending the output of a file to .csv file.
The output should look like this:
Total Customers Processed:,8
Total Customers Skipped:,0
Total Customers Added:,8
Total Customers Changed:,0
Total Policies Deleted:,0
Total Policies Failed:,0
total:,8
Now i want this output in... (1 Reply)
Discussion started by: Prashant Jain
1 Replies
5. Shell Programming and Scripting
I have a file which has following contents
usmtnz-dinfsi19
62
61
18400
18800
99.7
usmtnz-dinfsi19
62
61
18400
18800
99.7
i want the o/p to be like
date (7 Replies)
Discussion started by: fugitive
7 Replies
6. Shell Programming and Scripting
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)
Discussion started by: hudson03051nh
1 Replies
7. Shell Programming and Scripting
Dear Master.
Help me to command to out put.
Ex log.
"<?xml version=""1.0"" encoding=""UTF-10"" ?><anova-test-bom>
<txid>17251032659</txid>
<authentication>
<user>admin</user>
<password>Amrduoi</password>
</authentication>
<destination>
<msisdn>1111111</msisdn>
... (2 Replies)
Discussion started by: ooilinlove
2 Replies
8. Shell Programming and Scripting
hi
i need some help over here.. please help
i have a log file as per below
---------------------------------------------------------------------------------------------------------
JOB START DATE : 20110510204513
JOB ID : us2cap3ds9... (6 Replies)
Discussion started by: sitaldip
6 Replies
9. Shell Programming and Scripting
Hi Friends,
I'm a great fan of this forum... it has helped me tone my skills in shell scripting. I have a challenge here, which I'm sure you guys would help me in achieving...
File A has a list of job ids and I need to compare this with the File B (*.log) and File C (extend *.log) and copy... (6 Replies)
Discussion started by: asnandhakumar
6 Replies
10. Shell Programming and Scripting
Hi ,
i am generating some data by firing sql query with connecting to the database by my solaris box.
The below one should be the header line of my excel ,here its coming in separate row.
TO_CHAR(C. CURR_EMP_NO
---------- ---------------
LST_NM... (6 Replies)
Discussion started by: dani1234
6 Replies
LEARN ABOUT DEBIAN
users-admin
users-admin(1) General Commands Manual users-admin(1)
NAME
users-admin - Users Administration Tool
SYNOPSIS
users-admin [OPTION...]
DESCRIPTION
users-admin is part of the GNOME system tools, a set of tools to easily access and manage system configuration.
users-admin allows you add, delete and modify the existing users and groups in your system.
OPTIONS
users-admin accepts the standard GNOME and GTK options.
AUTHORS
users-admin was written by Carlos Garnacho Parro <garnacho@tuxerver.net> and others.
This manual page was written by Sven Arvidsson <sa@whiz.se>, for the Debian project (but may be used by others).
SEE ALSO
services-admin(1), network-admin(1), time-admin(1), shares-admin(1), gtk-options(7), gnome-options(7)
The online documentation available through the program's Help menu.
GNOME
2007-05-08 users-admin(1)