Sponsored Content
Top Forums Shell Programming and Scripting << Filter and Format the ouput >> Post 302882442 by kamauv234 on Tuesday 7th of January 2014 02:43:02 AM
Old 01-07-2014
<< Filter and Format the ouput >>

Hi All,

I have a output like below

Code:
$ cat aa.lst
  
  Value of output parameters
  ---------------------------------------
  Parameter Name  : SNAPSHOTTIMESTAMP
  Parameter Value : 2014-01-07-15.21.50.022423

  Parameter Name  : DATABASESIZE
  Parameter Value : 96178176

  Parameter Name  : DATABASECAPACITY
  Parameter Value : 206153830400

  Return Status = 0
DB20000I  The SQL command completed successfully.

I want to filter it out and format it as a below one. Pls help. Thanks !
Code:
DATABASESIZE --> 96178176 Bytes

Regards
Kamal

Last edited by DukeNuke2; 01-07-2014 at 04:39 AM..
 

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

capture the ouput!

Hi, my perl script is calling another external java program. The Java in turn prints out a string. how can I capture the string. ------------------ #!/usr/bin/perl print "Content-type:text/html\n\n"; use CGI; $query = new CGI; $theCookie = $query->cookie('someCookie'); $user =... (0 Replies)
Discussion started by: azmathshaikh
0 Replies

2. Shell Programming and Scripting

Identifying same character and ouput the sum

Hi all, I have a list of data below. As long as there are same character in the 1st column (eg xxx ), i would want to add all the numbers in the 3rd column and display as the output below so the total would be 10+20+30 = 60. Can anybody help to do this using nawk? Using solaris by the way. ... (12 Replies)
Discussion started by: Raynon
12 Replies

3. Windows & DOS: Issues & Discussions

Wrong Ouput when using printf under SFU

I used printf to print the following under SFU, lrs=`cat lrs` hrs=`cat hrs` tp=`cat tp` printf “\n\n%5sM = $lrs Ohms%5sX = $hrs Ohms%5sT = $tp %%\n\n\n” > file cat file With the above script, I used %% after $tp only as a percentage sign and I get only the following output: % T =... (5 Replies)
Discussion started by: ilak1008
5 Replies

4. Shell Programming and Scripting

Cannot redirect ouput?????

Hello experts, I'm testing a program that prints error message to the screen. I want to redirect the output to a file using >. but the message only prints on screen and not writing to the file, Any suggestion on what I might try? (3 Replies)
Discussion started by: minifish
3 Replies

5. Shell Programming and Scripting

View ouput as a file

Hi all , I have a view in teradata , the ouput of that view have to be stored as a file with delimitere as '|'.Is there any possibility of doing this in unix ? Thanks in advance , Vinoth (6 Replies)
Discussion started by: vino.paal
6 Replies

6. Shell Programming and Scripting

Format Ouput

I have this input file Switch 0; Sun Sep 11 12:40:53 2011 EDT (GMT+4:00) 12:40:53.159984 SCN Port Offline;g=0x1e4b6 A2,P0 A2,P0 379 NA 12:40:53.159991 *Removing all nodes from port A2,P0 A2,P0 379 NA 18:45:31.326604 Port Elp engaged ... (1 Reply)
Discussion started by: greycells
1 Replies

7. Shell Programming and Scripting

how to filter files with given format

Hi, all, I have files like: nameserver 216.66.22.2 ; tserv1.ash1.ipv6.he.net. tserv13.ash1.ipv6.he.net. nameserver 216.66.38.58 ; tserv1.tor1.ipv6.he.net. tserv21.tor1.ipv6.he.net. nameserver 216.218.221.6 ;... (3 Replies)
Discussion started by: esolvepolito
3 Replies

8. Shell Programming and Scripting

Use of awk or sed to filter out the ouput

Hi, i am trying to get the system model with the help of awk : $ prtconf | awk '/^System Model/' System Model: IBM,8408-E8D but i want just the below outout that is command should chk for pattern <IBM,> and remove it from the final output : System Model:8408-E8D Can... (2 Replies)
Discussion started by: omkar.jadhav
2 Replies

9. Shell Programming and Scripting

How to ouput not in file2 using awk?

Hi All, Seeking for your assistance on how to ouput the file which is not match in file 1 and file 2 using awk. I tried NR=FNR but it's not working, it will only show the match record. Ex. File1 abc def ghi File2 23a gd abc Output: abc (2 Replies)
Discussion started by: znesotomayor
2 Replies

10. Shell Programming and Scripting

Can we filter the below log data into CSV format?

HI , I m looking for help here!!! Can we filter the below log data into CSV format ? timestamp INFO <text > - Some text Drive .. Need a format of separate field such as 1 2 3 4 ... (2 Replies)
Discussion started by: MohSalNiz
2 Replies
isl(1M) 																   isl(1M)

NAME
isl - initial system loader DESCRIPTION
implements the operating system independent portion of the bootstrap process. It is loaded and executed after self-test and initialization have completed successfully. The processor contains special purpose memory for maintaining critical configuration related parameters (e.g. Primary Boot, Alternate Boot, and Console Paths). Two forms of memory are supported: Stable Storage and Non-Volatile Memory (NVM). Typically, when control is transferred to an sequence takes place. An sequence allows a complete bootstrap operation to occur with no intervention from an operator. executes commands from the file in a script-like fashion. is enabled by a flag in Stable Storage. is a mechanism that automatically locates the boot and console devices. For further information, see pdc(1M). During an sequence, displays its revision and the name of any utility it executes. However, if is disabled, after displays its revision, it then prompts for input from the console device. Acceptable input is any command name or the name of any utility available on the sys- tem. If a non-fatal error occurs or the executed utility returns, again prompts for input. Commands There are several commands available in although not all commads are supported on cellular systems . The following is a list with a short description. Parameters may be entered on the command line following the command name. They must be separated by spaces. prompts for any necessary parameters that are not entered on the command line. Help - List commands and available utilities List available utilities Enable or disable the autoboot sequence Parameter - or Enable or disable the sequence Parameter - or Modify the Primary Boot Path Parameter - Primary Boot Path in decimal Modify the Alternate Boot Path Parameter - Alternate Boot Path in decimal Modify the Console Path Parameter - Console Path in decimal List contents of the file Display the Primary Boot, Alternate Boot, and Console Paths Display the contents of one word of NVM in hexadecimal Parameter - NVM address in decimal or standard hexadecimal notation Display the contents of one word of Stable Storage in hexadecimal Parameter - Stable Storage address in decimal or standard hexadecimal notation DIAGNOSTICS
displays diagnostic information through error messages written on the console and display codes on the LED display. For the display codes, are informative only. and indicate errors, some of which are fatal and cause the system to halt. Other errors merely cause to display a message. Non-fatal errors during an sequence cause the sequence to be aborted and to prompt for input. After non-fatal errors during an interactive session, merely prompts for input. Fatal errors cause the system to halt. The problem must be corrected and the system RESET to recover. is executing. is from the file. Cannot find an file. aborted. No console found, can only Directory of utilities is too big, reads only 2K bytes. file is inconsistent. aborted. Utility file header inconsistent: SOM values invalid. file input string exceeds 2048 characters. aborted. command or utility name exceeds 10 characters. has transferred control to the utility. Internal inconsistency: Volume label - Internal inconsistency: Directory - Error reading file. Error reading from console - Error writing to console - Not an command or utility. Utility file header inconsistent: Invalid System ID. Error reading utility file header. Utility file header inconsistent: Bad magic number. Utility would overlay in memory. Utility requires more memory than is configured. Error reading utility into memory. Incorrect checksum: Reading utility into memory. Console needed - Internal inconsistency: Boot device class - Destination memory address of utility is invalid. Utility file header inconsistent: pdc_cache entry. Internal inconsistency: iodc_entry_init - Internal inconsistency: iodc_entry_init - console - Internal inconsistency: iodc_entry_init - boot device - Utility file header inconsistent: Bad aux_id. Bad utility file type. SEE ALSO
boot(1M), pdc(1M). PA-RISC Systems Only isl(1M)
All times are GMT -4. The time now is 10:16 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy