9 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
how to print first line of each repeated 2 fields only if i got files like :
USA|Tony|12:25:22:431
USA|John|14:22:42:981
USA|John|08:22:12:349
France|Adam|14:22:42:981
Italy|Tony|18:22:42:212
Italy|Tony|04:22:42:212
Italy|Tony|08:22:42:212
to make output like :
... (9 Replies)
Discussion started by: teefa
9 Replies
2. Cybersecurity
Hey guys, new geek here, sorry I didnt see a intro section. But I do have a question and hope to make my stay here perma. I am interested in IT security, ands I really want to learn, I was hoping for whatever questions I had you guys could lead me through the narrowest path with a broad selection... (1 Reply)
Discussion started by: abeja
1 Replies
3. Shell Programming and Scripting
Hi All!
I need to write a script which reads a file and tries to insert into the DB using those values...
file format:
var1 var2 var3
var4 var5 var6
Now I want to read from the above file and trying to insert like...
insert into table1 values( var1, var2, var3 );
in a loop to... (2 Replies)
Discussion started by: games_icon
2 Replies
4. UNIX for Advanced & Expert Users
Dear All
I have an important request:
I have a pattern which look like this:
2 20080219_21:43:22.194 ISC-Libya Belgium1 24 IAM 20115139248 218913265641 b 11672 ACM b 20614 CPG b 20619 CPG b 20626 CPG f 33925 REL b 34215 RLC :COMMA: NCI=00,FCI=6001,CPC=0A,TMR=00,USI: :COMMB: BCI=0201:... (15 Replies)
Discussion started by: zanetti321
15 Replies
5. UNIX for Advanced & Expert Users
Dear All
I have a pattern which look like this :
2 20080226_18:02:09.749 ISC-Libya Egypt-Cairo2 111 IAM 2913258040 218927157966 b 61 REL f 143 RLC :COMMA:NCI=10,FCI=6101,CPC=0A,TMR=00,OFI=80,USI: :COMMB:: :RELCAUSE:15:
2 20080226_18:02:11.629 ISC-Libya Egypt-Cairo2 170 IAM 93572641... (8 Replies)
Discussion started by: zanetti321
8 Replies
6. UNIX for Advanced & Expert Users
I want a Bash Shell Script for taking backup of all files created to day and killing all the Process still active of mine at evening every day (1 Reply)
Discussion started by: vinayraj
1 Replies
7. Shell Programming and Scripting
Hello Guys,
I have written the following script to do certain job. I have more than 300 files, all are .pdb & .out files. and the files are (1,3,5,7,11,13,15,17,21,.......787,791,793,795).pdb /.out . But the way I created the for loop in my script works only one file at a time. But that is not... (2 Replies)
Discussion started by: chuchu
2 Replies
8. AIX
Hi guys,
I would like to inform you that I have cleared ....
IBM Certified Specialist - p5 and pSeries Administration and Support for AIX 5L V5.3 with 89%
thanks to you all.
Manu (0 Replies)
Discussion started by: b_manu78
0 Replies
9. UNIX for Dummies Questions & Answers
actually i have important question about unix / linux
i'm working on visuall basic and visuall c++
i heared from someone that i can't open them while i useing unix / linux
is that right?
if yes .......... what's the solution
if no ............. thanks :) :D :D
thanks my friends (1 Reply)
Discussion started by: M_Hafez
1 Replies
SD(4) Linux Programmer's Manual SD(4)
NAME
sd - driver for SCSI disk drives
SYNOPSIS
#include <linux/hdreg.h> /* for HDIO_GETGEO */
#include <linux/fs.h> /* for BLKGETSIZE and BLKRRPART */
CONFIGURATION
The block device name has the following form: sdlp, where l is a letter denoting the physical drive, and p is a number denoting the parti-
tion on that physical drive. Often, the partition number, p, will be left off when the device corresponds to the whole drive.
SCSI disks have a major device number of 8, and a minor device number of the form (16 * drive_number) + partition_number, where drive_num-
ber is the number of the physical drive in order of detection, and partition_number is as follows:
+3 partition 0 is the whole drive
partitions 1-4 are the DOS "primary" partitions
partitions 5-8 are the DOS "extended" (or "logical") partitions
For example, /dev/sda will have major 8, minor 0, and will refer to all of the first SCSI drive in the system; and /dev/sdb3 will have
major 8, minor 19, and will refer to the third DOS "primary" partition on the second SCSI drive in the system.
At this time, only block devices are provided. Raw devices have not yet been implemented.
DESCRIPTION
The following ioctls are provided:
HDIO_GETGEO
Returns the BIOS disk parameters in the following structure:
struct hd_geometry {
unsigned char heads;
unsigned char sectors;
unsigned short cylinders;
unsigned long start;
};
A pointer to this structure is passed as the ioctl(2) parameter.
The information returned in the parameter is the disk geometry of the drive as understood by DOS! This geometry is not the physical
geometry of the drive. It is used when constructing the drive's partition table, however, and is needed for convenient operation of
fdisk(1), efdisk(1), and lilo(1). If the geometry information is not available, zero will be returned for all of the parameters.
BLKGETSIZE
Returns the device size in sectors. The ioctl(2) parameter should be a pointer to a long.
BLKRRPART
Forces a reread of the SCSI disk partition tables. No parameter is needed.
The SCSI ioctl(2) operations are also supported. If the ioctl(2) parameter is required, and it is NULL, then ioctl(2) fails with
the error EINVAL.
FILES
/dev/sd[a-h]
the whole device
/dev/sd[a-h][0-8]
individual block partitions
COLOPHON
This page is part of release 4.15 of the Linux man-pages project. A description of the project, information about reporting bugs, and the
latest version of this page, can be found at https://www.kernel.org/doc/man-pages/.
Linux 2017-09-15 SD(4)