Sponsored Content
Top Forums Shell Programming and Scripting Need to convert output.txt into html file Post 302841757 by vijay_rajni on Thursday 8th of August 2013 01:39:11 AM
Old 08-08-2013
Space delimits the Description and Name...I have a file Namelist which contain all the names.....can we compare output.txt file with Namelist to distinguish Description and Name column..
Code:
cat Namelist
Sharma,Vijay Kumar
Soni,Amit Kumar
Rajput,Anupam 
chadda,Deepak kumar
Thakral,Raj Singhalese
Sahu,chanchal ram
Reddy,Ajay rao


Last edited by Franklin52; 08-08-2013 at 03:24 AM.. Reason: Please use code tags
 

10 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

How to convert PS files to txt file?

Hi, I need to convert PS files to txt file. I thought of using ps2ascii, but its not installed in my AIX box, any other option? (2 Replies)
Discussion started by: redlotus72
2 Replies

2. Shell Programming and Scripting

Format txt file as html table

I have a short time to solve a problem, so I need some help. I've searched the forum, but I couldn't find a solution to my problem. I made a script to filter some text and now I have a new requirement to make it available as html table. Problem is that I more than one files with different set... (2 Replies)
Discussion started by: tetreb
2 Replies

3. Shell Programming and Scripting

Convert shell script output txt file to html table

Hi, I have script which generates the output as below: Jobname Date Time Status abc 12/9/11 17:00 Completed xyz 13/9/11 21:00 Running I have the output as a text file. I need to convert it into a HTML Table and sent it thru email ... (6 Replies)
Discussion started by: a12ka4
6 Replies

4. Shell Programming and Scripting

SQL query output convert to HTML & send as email body

Hi , I have a sql query in the unix script ,whose output is shown below.I want to convert this output to HTML table format & send email from unix with this table as email body. p_id src_system amount 1 A 100 2 B 200 3 C ... (3 Replies)
Discussion started by: jagadeeshn04
3 Replies

5. Shell Programming and Scripting

Desired output.txt for reading txt file using awk?

Dear all, I have a huge txt file (DATA.txt) with the following content . From this txt file, I want the following output using some shell script. Any help is greatly appreciated. Greetings, emily DATA.txt (snippet of the huge text file) 407202849... (2 Replies)
Discussion started by: emily
2 Replies

6. Shell Programming and Scripting

Loop to convert text output in the HTML format

Hello Everyone, I have a sample file raw.txt as shown below : Drive Bays Bay Name : SD-2C Number of Standby Power Supplies : 4 Number of Drive Enclosures : 12 Summary Status of Contained Modules All... (6 Replies)
Discussion started by: rahul2662
6 Replies

7. UNIX for Dummies Questions & Answers

Convert Txt file to HTML table and email

Hi all I need help converting a text file into a html table in bash and I need to email this table. The text file looks like the below. Two columns with multiple rows. Top row being header. Application Name Application Status Application 1 Open Application 2 ... (2 Replies)
Discussion started by: hitmanjd
2 Replies

8. Solaris

How to convert pdf file to txt?

Hello Unix gurus, I am learning unix. I have lots pdf data files. I need to convert them into txt files. Can you please guide me how to do that? Thanks in advance. Rao (1 Reply)
Discussion started by: raopatwari
1 Replies

9. Shell Programming and Scripting

Convert shell script output txt file to html table

My concnern related to the post -Convert shell script output txt file to html table, in this how to print the heading as color. awk 'BEGIN{print "<table>"} {print "<tr>";for(i=1;i<=NF;i++)print "<td>" $i"</td>";print "</tr>"} END{print "</table>"}' <filename> (8 Replies)
Discussion started by: sarajobmai
8 Replies

10. UNIX for Beginners Questions & Answers

Copy the content from txt file and create a html file

I have a txt file with a list of error messages in a xml tag format, and each error message is separated with a identifier(endresult).Need to split that and copy and create a new html file.Error message has some special character. how to escape the special character and insert my data into the... (7 Replies)
Discussion started by: DevAakash
7 Replies
pfstat(8)						      System Manager's Manual							 pfstat(8)

Name
       pfstat - print packet filter status information

Syntax
       /usr/bin/pfstat [ -cdfkpqsv01234567 ] [ system [ corefile ] ]

Description
       The  command interprets the data structures of the packet filter driver If system is given, the required namelist is taken from there; oth-
       erwise, it is taken from If corefile is given, the data structures are sought there, otherwise in (If corefile is a core dump,  the  option
       must be given.)

Options
       If no options are given, then all are assumed (except for the verbose option, ).

       c      Counts.	Displays  various  counts (per ethernet unit) including number of packets sent and received, the number of packets dropped
	      due to full input queues, the number of packets not wanted by any filter, and the number of packets missed by the interface.

       d      Descriptors.  Displays OpenDescriptors for each minor device.

       f      Filters.	Displays packet filters for each minor device.

       k      Specifies the corefile is a crash dump, not a running system's

       p      Parameters.  Displays device parameters including device type, header and address lengths, maximum  transmission	units  (MTU),  and
	      interface and broadcast.	addresses.

       q      QueueElements.  Displays the QueueElements.

       s      Scavenger.  Displays the FreeQueue and Scavenger statistics.

       v      Verbose.	Displays information for minor devices not actually in use and complete queue information, only if this flag is given.

       <digit>
	      Limits output to information about specified units. If no digits are given, all units are displayed.

Restrictions
       Some of the output is a bit cramped to fit on an 80-character line.  It should be possible to get a less verbose but more readable listing.

       Since  things  happen quickly, it is not likely that will provide a consistent view of a running system.  It is mostly useful for analyzing
       static or slowly-varying problems, not transient ones.

Output Format
       This section describes the information displayed in the output of the command under the headings and

	      # 	  Minor device number for open descriptor.

	      LOC	  Descriptor location.

	      LINK-QUEUE  Forward link to other descriptors.

	      STATE	  Blank, or one of:

			  wait	  waiting for input, indefinite wait

			  timed   waiting for input, timed wait

			  tout	  has timed out

	      WAIT-QUEUE  Addresses of ``Queue Elements'' for waiting packets.

	      NQ'D	  Number of packets queued for input/maximum for this queue.

	      TOUT	  Timeout duration in clock ticks (if the [Verbose] option is not given, then times may be expressed as  minutes  [with  a
			  trailing ``m''], hours [with a trailing ``h''], or simply ``long'', to keep the columns lined up.)

	      MODE	  Shows which mode bits are set for the minor device; each bit is encoded as a single character:

			  H  ENHOLDSIG

			  B  ENBATCH

			  T  ENTSTAMP

			  P  ENPROMISC

			  N  ENNONEXCL

			  C  ENCOPYALL

			  ?  An unknown mode bit is set.

	      SIG	  Signal number to be delivered when a packet arrives.

	      PROC	  Process to be signaled when a packet arrives.

	      PID	  Process id which enabled the signal.

	      # 	  Minor device number of filter.

	      COUNT	  Count of packets accepted by this filter.

	      DROPS	  Count of ``recent'' drops for this filter.

	      PRI	  Priority of filter.

	      LEN	  Length of filter (in shortwords).

	      FILTER	  See for interpretation of packet filters.

	      LOC	  Location of queue element.

	      LINK-QUEUE  Forward and backward links.

	      COUNT	  Packet size.

	      REF	  Reference count for queue element.

	      FLAGS	  Per-packet flag bits set; each bit is encoded as a single character:

			  P  ENSF_PROMISC

			  B  ENSF_BROADCAST

			  M  ENSF_MULTICAST

			  T  ENSF_TRAILER

			  ?  An unknown flag bit is set.

	      DROP	  Count of packets dropped between the time previous packet was queued and the time this packet was queued.

	      TIME	  Approximate time this packet was received.

Files
       Namelist

       Default source of tables

See Also
       netstat(1), packetfilter(4), pfconfig(8c), pstat(8)

																	 pfstat(8)
All times are GMT -4. The time now is 05:48 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy