Given a file:
penguin giraffe zebra green
blue bear puppy duck kitty
orange grape lamb koala purple
Move part of the text on a line to the next line in a specific place.
penguin giraffe zebra green
blue bear duck kitty
orange grape puppy koala purple
In this case puppy is moved from line...
Not sure if these will answer your question or not:
https://www.joyent.com/blog/bruning-questions-zfs-record-size
https://blogs.oracle.com/roch/entry/tuning_zfs_recordsize
While sending a file I am only getting the first line on the receiving end. What do I need to change?
receive.c
#include <stdio.h>
#include <sys/types.h>
#include <string.h>
#include <stdlib.h>
#include <sys/socket.h>
#include <arpa/inet.h>
#include <unistd.h>
#include <errno.h>
#include...
Text file example of about 150,000 lines:
1428590133:157:(scsi_eh_0):root:S:0:20:1:0:0.00:0.00:0.00:0.00:0.00:0.00:0.00:1:0:0:0:0:0:0:0:0:0:0
1428590133:158:(scsi_eh_1):root:S:0:20:1:0:0.00:0.00:0.00:0.00:0.00:0.00:0.00:1:0:0:0:0:0:0:0:0:0:0
I am using the colon as a delimiter.
However, I...
I have iostat output in a file and need a cumulative total for each device (there may be a few or there could be tens of devices).
for example:
sdy 1.0
sdz 1.0
sdy 17.5
sdz 12.1
sdy 5.33
sdz 0.3
This can be done like this in awk using:
awk '{await[$1]+=$10}END{for(j in await)print j"...
I have tried every possible combination and ways to detect a "$" as a prompt and it won't detect it.
expect -re "(\\\$) $"
expect -re "{[$]} $"
expect -re "\\\$"
expect -re "\\$ $"
expect -re "\\\$ $"
expect -re "(\\$)"
Nothing works. Any other combinations?
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.