Sponsored Content
Top Forums UNIX for Beginners Questions & Answers Shell script ouput conversion Post 303043755 by sravani25 on Wednesday 5th of February 2020 02:34:31 PM
Old 02-05-2020
Thanks Chubler_XLand Rudi C.


I am able to print the output now.


But when i use lowercase column names like name, version and basedir it's not displaying correct output.
Can someone please help on this issue.

Moderator's Comments:
Mod Comment
Please use code tags when posting data and code samples!



Current output :


Code:
 NAME:  LSI MegaRAID SAS2.0 HBA Driver
   VERSION:  11.11,REV=2009.11.11
   BASEDIR:  /



Required output :



Code:
 name:  LSI MegaRAID SAS2.0 HBA Driver
   version:  11.11,REV=2009.11.11
   basedir:  /


Last edited by vgersh99; 02-05-2020 at 03:45 PM.. Reason: code tags, please!
 

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

shell script conversion to binary

My question is: i have a script called getevent to run i just call ./getevent can i convert this to make it binary executable and not letting my clients open it and see the code.??:( I am using Solaris 8. (3 Replies)
Discussion started by: bcheaib
3 Replies

2. Shell Programming and Scripting

Help me with file conversion [Shell Script]

Hello Group, I request your help with a shell script for filter an ascii file (this is small piece of the file): 09/24/2009,00:00,1.0268,1.0268,1.0249,1.0250,518 09/24/2009,01:00,1.0251,1.0261,1.0249,1.0259,424 09/24/2009,02:00,1.0258,1.0272,1.0258,1.0269,372... (3 Replies)
Discussion started by: csierra
3 Replies

3. AIX

Need timestamp conversion shell script !!

Can anyone provide me with a ksh or bash script which will accept a timestamp (format is YYYY-MM-DD-HH24.Mi.Ss) and time offset (in hours). The output will be (timestamp passed - time offset passed deducted from it) in the same YYYY-MM-DD-HH24.Mi.Ss format. Basically I am trying to convert the... (1 Reply)
Discussion started by: shibajighosh
1 Replies

4. Shell Programming and Scripting

Limit ouput file on a shell script

I have this one::) doing jstack on JVM proccess. #!/bin/ksh # ---------------------------------------------------- # capture_jstack.sh <INTERVAL> <COUNT> # run jstack and capture output to a log file #----------------------------------------------------- # # scripts and logs are stored... (3 Replies)
Discussion started by: pointer
3 Replies

5. Shell Programming and Scripting

Shell script for CSV conversion

thanks for allowing me join your forum i have an output of linux command "who" which provides following details..... CURRENT USER/ACCT INFO 17:31:36 up 4:49, 4 users, load average: 0.03, 0.04, 0.00 USER TTY FROM LOGIN@ IDLE JCPU PCPU WHAT root :0 - 12:59 ?xdm? 4:54 0.02s /bin/sh /usr/bi... (1 Reply)
Discussion started by: ayyappancheta
1 Replies

6. Shell Programming and Scripting

Shell Script for Epoch Time Conversion

Hi there I came across this script online to convert Epoch time to proper date format, but I am receiving the following error Also, I have HISTTIMEFORMAT set in user's .profile so that their history output shows time stamps. Additionally I have changed their .history location to a dedicated... (9 Replies)
Discussion started by: hedkandi
9 Replies

7. Shell Programming and Scripting

Conversion batch shell script

while converting batch file to shell script ...dis command is ther i dunno how to change...can anyone knws how to change into shell script rm !(D:\temp\XX.txt) (3 Replies)
Discussion started by: monisha
3 Replies

8. Shell Programming and Scripting

Batch to shell script conversion

Hi All, I have a small tool which is currently configured in batch scripts only. But my need is to run it on Linux platform, so I have been trying to convert a batch script to shell script. below is the batch script: @echo off IF "%1"== "" GOTO ARGERR REM UPDATE THESE PROPERTIES TO... (2 Replies)
Discussion started by: sukhdip
2 Replies

9. Shell Programming and Scripting

Shell Script has different ouput via cron vs when run Manually

Hello Lads, I deployed a script on my mac to start and stop EC2 instances on AWS console. The script when started manually on the terminal does the expected stop and start. Problem is when i try to schedule it on a cron, it fails to recognize the AWS Keys which i set up as ENV variable by... (2 Replies)
Discussion started by: Irishboy24
2 Replies

10. UNIX for Beginners Questions & Answers

powershell script to unix shell script conversion.

Here is a powershell script to use restful API to create ticket in our ticketing tool. Can anyone please convert it to a shell script sothat, I can run it in Unix servers, below is the code: $body = @{ Customer= ''test' Summary= 'test summary' Impact= '4-Minor/Localized' ... (2 Replies)
Discussion started by: pandeybhavesh18
2 Replies
AMR(4)							   BSD Kernel Interfaces Manual 						    AMR(4)

NAME
amr -- MegaRAID SCSI/ATA/SATA RAID driver SYNOPSIS
To compile this driver into the kernel, place the following lines in your kernel configuration file: device pci device scbus device amr Alternatively, to load the driver as a module at boot time, place the following line in loader.conf(5): amr_load="YES" DESCRIPTION
The amr driver provides support for LSI Logic MegaRAID SCSI, ATA and SATA RAID controllers and legacy American Megatrends MegaRAID SCSI RAID controllers, including models relabeled and sold by Dell and Hewlett-Packard. LSI MegaRAID SAS controllers are supported by mfi(4) and will not work with this driver. HARDWARE
Controllers supported by the amr driver include: o MegaRAID SATA 150-4 o MegaRAID SATA 150-6 o MegaRAID SATA 300-4X o MegaRAID SATA 300-8X o MegaRAID SCSI 320-1E o MegaRAID SCSI 320-2E o MegaRAID SCSI 320-4E o MegaRAID SCSI 320-0X o MegaRAID SCSI 320-2X o MegaRAID SCSI 320-4X o MegaRAID SCSI 320-0 o MegaRAID SCSI 320-1 o MegaRAID SCSI 320-2 o MegaRAID SCSI 320-4 o MegaRAID Series 418 o MegaRAID i4 133 RAID o MegaRAID Elite 1500 (Series 467) o MegaRAID Elite 1600 (Series 493) o MegaRAID Elite 1650 (Series 4xx) o MegaRAID Enterprise 1200 (Series 428) o MegaRAID Enterprise 1300 (Series 434) o MegaRAID Enterprise 1400 (Series 438) o MegaRAID Enterprise 1500 (Series 467) o MegaRAID Enterprise 1600 (Series 471) o MegaRAID Express 100 (Series 466WS) o MegaRAID Express 200 (Series 466) o MegaRAID Express 300 (Series 490) o MegaRAID Express 500 (Series 475) o Dell PERC o Dell PERC 2/SC o Dell PERC 2/DC o Dell PERC 3/DCL o Dell PERC 3/QC o Dell PERC 4/DC o Dell PERC 4/IM o Dell PERC 4/SC o Dell PERC 4/Di o Dell PERC 4e/DC o Dell PERC 4e/Di o Dell PERC 4e/Si o Dell PERC 4ei o HP NetRAID-1/Si o HP NetRAID-3/Si (D4943A) o HP Embedded NetRAID o Intel RAID Controller SRCS16 o Intel RAID Controller SRCU42X DIAGNOSTICS
Driver initialisation/shutdown phase amr%d: memory window not available amr%d: I/O window not available The PCI BIOS did not allocate resources necessary for the correct operation of the controller. The driver cannot attach to this controller. amr%d: busmaster bit not set, enabling The PCI BIOS did not enable busmaster DMA, which is required for the correct operation of the controller. The driver has enabled this bit and initialisation will proceed. amr%d: can't allocate register window amr%d: can't allocate interrupt amr%d: can't set up interrupt amr%d: can't allocate parent DMA tag amr%d: can't allocate buffer DMA tag amr%d: can't allocate scatter/gather DMA tag amr%d: can't allocate s/g table amr%d: can't allocate mailbox tag amr%d: can't allocate mailbox memory A resource allocation error occurred while initialising the driver; initialisation has failed and the driver will not attach to this con- troller. amr%d: can't obtain configuration data from controller amr%d: can't obtain product data from controller The driver was unable to obtain vital configuration data from the controller. Initialisation has failed and the driver will not attach to this controller. amr%d: can't establish configuration hook amr%d: can't scan controller for drives The scan for logical drives managed by the controller failed. No drives will be attached. amr%d: device_add_child failed amr%d: bus_generic_attach returned %d Creation of the logical drive instances failed; attachment of one or more logical drives may have been aborted. amr%d: flushing cache... The controller cache is being flushed prior to shutdown or detach. Operational diagnostics amr%d: I/O beyond end of unit (%u,%d > %u) A partitioning error or disk corruption has caused an I/O request beyond the end of the logical drive. This may also occur if FlexRAID Vir- tual Sizing is enabled and an I/O operation is attempted on a portion of the virtual drive beyond the actual capacity available. amr%d: polled command timeout An initialisation command timed out. The initialisation process may fail as a result. amr%d: bad slot %d completed The controller reported completion of a command that the driver did not issue. This may result in data corruption, and suggests a hardware or firmware problem with the system or controller. amr%d: I/O error - %x An I/O error has occurred. SEE ALSO
cd(4), da(4), mfi(4), sa(4), scsi(4) AUTHORS
The amr driver was written by Mike Smith <msmith@FreeBSD.org>. This manual page was written by Mike Smith <msmith@FreeBSD.org> and Jeroen Ruigrok van der Werven <asmodai@FreeBSD.org>. BSD
March 29, 2006 BSD
All times are GMT -4. The time now is 08:21 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy