Hi ,
I have a file having around 8 columns spereated by space . Now that I need to extract columns from this. The problem is this functionality is needed in a script and the required columns are dynamic and can range from 2 columns to 8 columns at a time .
What I tried without luck is ... (6 Replies)
Hello,
I have a matrix 200*10,000 and I need to extract the columns between 40 and 77. I dont want to write in awk all the columns. eg: awk '{print $40, $41, $42,$43 ... $77}'. I think should exist a better way to do this. (10 Replies)
Hi All,
I have a text file which looks like below.
################################################
Name:xxxxxxx
Version:1.0
Class: 2
City : Bangalore
Component Part Action Nb New Part Naming Part Name
12345 default 12345.12345 Bad
23456 ... (6 Replies)
hi everyone!
I already posted it in scripts, I'm sorry, it's doubled
I'd like to extract a single column from 5 different files and put them together in an output file. I saw a similar question for 2 input files, and the line of code workd very well, the code is:
awk 'NR==FNR{a=$2; next}... (1 Reply)
hi everyone!
I'd like to extract a single column from 5 different files and put them together in an output file. I saw a similar question for 2 input files, and the line of code workd very well, the code is:
awk 'NR==FNR{a=$2; next} {print a, $2}' file1 file2
I added the file3, file4 and... (10 Replies)
Hello,
I am obviously quite new to unix and awk. I need to parse certain columns of a file (delimited by spaces), and somehow save the value of this column somewhere, together with the value of the column just after it (by pairs; so something like ).
I'm then supposed to count the times that... (9 Replies)
Hi everyone!!
I need to apply a simple command to extract columns from a matrix, but I need to extract contemporary from the first to the tenth columns, than from the eleventh to the twentyth and so on...
how can i do that? (1 Reply)
Hello All
I'm joining two files using Awk by Left outer join on the file 1
File 1
1 AA
2 BB
3 CC
4 DD
File 2
1 IND 100 200 300
2 AUS 400 500 600
5 USA 700 800 900 (18 Replies)
Discussion started by: venkat_reddy
18 Replies
LEARN ABOUT CENTOS
sgpio
sgpio(1) USER COMMANDS sgpio(1)NAME
sgpio - captive backplane LED control utility
SYNOPSIS
sgpio [-h] [-V] [[-d|--disk <device>[,<device>...]] | [-p|--port <port>[,<port>...]]] [-s|--status <status>] [-f|--freq <frequency>]
DESCRIPTION
Serial General Purpose Input Output (SGPIO) is a communication method used between a main board and a variety of internal and external hard
disk drive bay enclosures. This utility can be used to control LEDs in an enclosure. For more information about SGPIO, please consult the
SFF-8485 Specification.
OPTIONS -h, --help
displays a short help text
-V, --version
displays the utility and AHCI SGPIO specification
-d, --disk
disk name of LED location. Names are sda,sdb,sdc,... Multiple names can be provided in a comma-delimited list.
-p, --port
SATA port number of LED location, can be used if a disk name is no longer valid. 0,1,2,3,... Multiple ports can be provided in a
comma-delimited list.
-s, --status
status of the LED to set. LED status is: locate, fault, rebuild, off
-f, --freq
Set the frequency at which the LED should blink (in Hz). Frequency should be an integer between 1 and 10.
EXAMPLES
Set the locate LED on SDA with an Intel Intelligent backplane:
sgpio -d sda -s locate
Set the locate LED on SDA to flash at 3 Hz for non-intelligent backplanes:
sgpio -d sda -s locate -f 3
Set SATA port 2 with fault at a 3 Hz flash rate:
sgpio -p 2 -s fault -f 3
Set disks sda through sdf to fault:
sgpio -d sda,sdb,sdc,sdd,sde,sdf -s fault
EXIT STATUS
sgpio should return zero when successful. It will return with a non-zero value if there was a failure.
AUTHOR
Eric R. Hall <Eric.R.Hall@intel.com>
version 0.3 December 2007 sgpio(1)