I have user input file like below:-
Sometimes input file will look like below.
how to split the record from header.
Note:-Header is fixed length and I have to split record from the header only.
Please give me some suggestions’ .
Thanks advance.
Thanks,
Krupa
Last edited by Scott; 04-09-2014 at 06:43 AM..
Reason: Use code tags, please...
Hi,
I am trying to use awk to split line before the pattern:
abcde 12345 67890 abcde 12345 67890 abcde 12345 67890 abcde 12345 67890 abcde 12345 67890 abcde 12345 67890 abcde 12345 67890
I need it to be like this:
abcde 12345 67890
abcde 12345 67890
abcde 12345 67890
abcde... (7 Replies)
Hi,
I want to split before reading the complete line as the line is very big and its throwing out of memory. can you suggest.
when i say
#cat $inputFile | while read eachLine
and use the eachLine to split its throwing out of memory as the line size is more than 10000000 characters.
Can you... (1 Reply)
Dear All,
I want to split single line into two line or three lines wherever “|” separated values comes using
Input line
test,DEMTEMPUT20100404010012,,,,,,,,|0070086|0070087,
output shoule be
test,DEMTEMPUT20100404010012,,,,,,,,0070086,
test,DEMTEMPUT20100404010012,,,,,,,,0070087, (14 Replies)
I guess this has a simple solution but can't figure out now.
having:
x="H:a:b:c"
to get H:
echo $x|awk -F: {'print $1'}
how can I put REST of line in another one? i.e.
echo $rest
a:b:c
thanks
---------- Post updated at 08:58 PM ---------- Previous update was at... (5 Replies)
Hi,
I have a file that contains multiple lines e.g.
/Plane/Wing/Engine/Rotorblades
I cannot use print $4 as the directories will be different lengths.
All i would like to do is print the very last column in each line in the file i.e. in this case, Rotorblades.
The code i... (4 Replies)
Hi All,
I'm trying to figure out which are the trusted-ips and which are not using a script file.. I have a file named 'ip-list.txt' which contains some ip addresses and another file named 'trusted-ip-list.txt' which also contains some ip addresses. I want to read a line from... (4 Replies)
Hi All,
Hope you guys had a wonderful weekend
I have a scenario where in which I have to read a file line by line
and check for few words before redirecting to a file
I have searched the forum but,either those answers dint work (perhaps because of my wrong under standing of how IFS... (6 Replies)
Hi All
Is there a way to export every line into new txt file where by the title of each txt output are same as the line ?
I have this txt files containing names:
Kandra Vanhooser
Rhona Menefee
Reynaldo Hutt
Houston Rafferty
Charmaine Lord
Albertine Poucher
Juana Maes
Mitch Lobel... (2 Replies)
I have a very long line in a file separated by "|" delimiter like below. Due to the length of the line, I find it very difficult to read to find a match line.
file = temp.txt
word 1| word 2 | word 3|....
I would like to read the file temp.txt and print out all words line by line like... (1 Reply)
WD(4) BSD Kernel Interfaces Manual WD(4)NAME
wd -- WD100x compatible hard disk driver
SYNOPSIS
wd* at atabus? drive ? flags 0x0000
wd* at umass?
options WD_SOFTBADSECT
DESCRIPTION
The wd driver supports hard disks that emulate the Western Digital WD100x. This includes standard MFM, RLL, ESDI, IDE, EIDE, and SATA
drives.
The flags are used only with controllers that support DMA operations and mode settings (like some pciide controllers). The lowest order nib-
ble (rightmost digit) of the flags defines the PIO mode, the next four bits define the DMA mode and the third nibble defines the UltraDMA
mode. For each set of four bits, the 3 lower bits define the mode to use and the last bit must be set to 1 for this setting to be used. For
DMA and UDMA, 0xf (1111) means 'disable'. For example, a flags value of 0x0fac (1111 1010 1100) means 'use PIO mode 4, DMA mode 2, disable
UltraDMA'. 0x0000 means "use whatever the drive claims to support."
The kernel configuration option ``options WD_SOFTBADSECT'' enables a software managed bad-sector list which will prevent further accesses to
sectors where an unrecoverable read error occurred. A user interface is provided by dkctl(8). Unlike the (historical) mechanisms provided
by bad144(8) and badsect(8) the software list does neither support sector replacement nor is it saved across reboots.
SEE ALSO ata(4), intro(4), pciide(4), scsi(4), umass(4), wdc(4), atactl(8), dkctl(8)BUGS
The optional software bad sector list does not interoperate well with sector remapping features of modern disks. To let the disk remap a
sector internally, the software bad sector list must be flushed or disabled before.
BSD August 30, 2004 BSD