10-01-2018
Thanks both of you for your response and showing the error in the command which I return.
1. I clarified with sed command.
2. For the output with AWK command what is the difference between OFS and vOFS (should we need to use when we pass a variable to the awk script)?
Could you please let me know.
Thanks & regards,
Suresh G
9 More Discussions You Might Find Interesting
1. IP Networking
In my college dorm, there is a file sharing network in the entire building. Problem is, there is only a manual for windows with the settings on how to connect... :mad:
They say that you have to give the following command in cmd in windows:
route add 172.16.71.0 mask 255.255.255.0... (2 Replies)
Discussion started by: Japie89
2 Replies
2. UNIX for Dummies Questions & Answers
I want to add a date to a record which is appended to a file that gets its data from an external source. An explanation:
1. Getting external data: curl http://www.example.com/temperatures.txt
2. Getting the required record: | grep mylocation
3. Appending to file: >> mytemperatures.txt
... (2 Replies)
Discussion started by: figaro
2 Replies
3. Shell Programming and Scripting
HI all
i have this script :
#!/bin/bash
sort /usr/tmp/"REPORT"$1 -o \
/usr/tmp/"SREPORT"$1 -k 1,7 -S 150
end of script
now i'm doing this command :
ls -lsgt *REPORT*
4 -rw-r--r-- 300 Sep 16 REPORT54784
4 -rw-r--r-- 301 Sep 16 SREPORT54784
as you can see the sorted file... (5 Replies)
Discussion started by: naamas03
5 Replies
4. Solaris
Hi Solaris users - I have an Ultra10 SPARC machine, with IIe processor. To prepare for the Solaris10 admin exam PartII I need to set up the metadb/mirroring in my machine, but do not know how to do this properly.
I need this to practice the mirroring tasks.
If anyone could help it would be... (3 Replies)
Discussion started by: patcom
3 Replies
5. Shell Programming and Scripting
I need to add a word from file1 to file2 accordinggly... file1 contains name of servers and file2 version of server
I need that information in a single file so that the format is
server_name : version
I been trying but havent been able to figure out how to search for a file using sed...
... (14 Replies)
Discussion started by: eponcedeleonc
14 Replies
6. Shell Programming and Scripting
Trying in this forum. Not sure if it is permitted.... but in need of help.
Please find the requirements in the below link.
https://www.unix.com/unix-dummies-questions-answers/191503-add-extra-commas-csv-file-2.html#post302665179
Thanks in Advance. (1 Reply)
Discussion started by: chillblue
1 Replies
7. Shell Programming and Scripting
Hi,
I wanted to check whether the x,y,z coordinates of two files are equal or not. At times, when one file is converted to another suitable file extension , there are some chances that the data mismatch would happen during the conversion. In order to avoid the data misfit, i would like to... (6 Replies)
Discussion started by: b@l@ji
6 Replies
8. Shell Programming and Scripting
HI Guys,
I have below input.
Output Base on Below Condition.
1> if forth column is empty and next coming line have same name with \es then add that column name on all rows
2>rest of all are es:vsDataEUtranCellFDD
Input:-
CCL01736 CCL01736_7A_1 es:vsDataEUtranCellFDD ... (3 Replies)
Discussion started by: pareshkp
3 Replies
9. Shell Programming and Scripting
Adding new column data in csv from UNIX
Hi I need to add new column data daily to existing csv file. Please assist
7/11 7/10 7/9 7/8
space 10 GB 20 GB
I was able to generate current day's data in csv but unable to add the previous 30 days data to the same csv
Please use code tags,... (2 Replies)
Discussion started by: archana25
2 Replies
LEARN ABOUT DEBIAN
scsi_readcap
SCSI_READCAP(8) SG3_UTILS SCSI_READCAP(8)
NAME
scsi_readcap - do SCSI READ CAPACITY command on disks
SYNOPSIS
scsi_readcap [--brief] [--help] [--long] [--verbose] DEVICE [DEVICE]*
DESCRIPTION
This Bourne shell script calls the sg_readcap utility on each given DEVICE. This will send a SCSI READ CAPACITY command to each DEVICE.
The default action of this script is to send the 10 byte cdb READ CAPACITY(10) command to each DEVICE. If a response indicates the number
of blocks is greater than or equal to '2**32 - 1' then the READ CAPACITY(16) is sent and its response is output.
OPTIONS
Arguments to long options are mandatory for short options as well.
-b, --brief
shortens the output to two hexadecimal numbers, both prefixed by '0x'. The first number is the number of blocks available and the
second is the size of each blocks in bytes (e.g. '0x12a19eb0 0x200'). If an error is detected '0x0 0x0' is output and the script
continues if there are more DEVICEs.
-h, --help
print out the usage message then exit.
-l, --long
the default is to send the READ CAPACITY(10) command (i.e. the 10 byte cdb variant). When this option is given the READ CAPACITY(16)
command is sent. The latter command yields more information in its response.
-v, --verbose
increase level or verbosity.
EXIT STATUS
The exit status of this script is 0 when it is successful. Otherwise the exit status is that of the last sg_readcap utility called. See the
sg3_utils(8) man page.
AUTHORS
Written by D. Gilbert
COPYRIGHT
Copyright (C) 2009 Douglas Gilbert
This software is distributed under a FreeBSD license. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PUR-
POSE.
SEE ALSO
sg_readcap (sg3_utils)
sg3_utils-1.28 October 2009 SCSI_READCAP(8)