Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Search results for query: *

  1. AIXSolarisAdmin

    Match part of line and move to replace part of following line

    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...
  2. AIXSolarisAdmin

    host and package on one line

    Perfect! Thanks!
  3. AIXSolarisAdmin

    host and package on one line

    host1 cups-libs-1.4.2-67.el6.x86_64 cups-1.4.2-67.el6.x86_64 host2 cups-libs-1.4.2-67.el6.x86_64 cups-1.4.2-67.el6.x86_64 host3 cups-1.4.2-67.el6.x86_64 host4 cups-libs-1.4.2-67.el6.x86_64 host5 cups-libs-1.4.2-67.el6.x86_64 host6 cups-libs-1.4.2-67.el6.x86_64 cups-1.4.2-67.el6.x86_64 Desired...
  4. AIXSolarisAdmin

    Is ZFS "largefile" Aware?

    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
  5. AIXSolarisAdmin

    While sending a file I am only gett

    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...
  6. AIXSolarisAdmin

    Sun Microsystem sunfire v120

    You do realize this is a SPARC machine, so the operating system you can install is rather limited? What is your choice of OS?
  7. AIXSolarisAdmin

    Delimiting field

    Nevermind, I just used NF to solve it.
  8. AIXSolarisAdmin

    Delimiting field

    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...
  9. AIXSolarisAdmin

    Cumulative total for each device

    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"...
  10. AIXSolarisAdmin

    Dollar sign as prompt

    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?
  11. AIXSolarisAdmin

    Cumulative total for each line

    Example file: sda 0.00 0.99 7.92 55.45 95.05 815.84 14.38 0.06 1.00 0.88 5.54 sdb 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 sdc 0.00 0.00 0.00 0.00 0.00 0.00 0.00...
  12. AIXSolarisAdmin

    Append column two if line one matches

    Sample file: host1 peach host1 cherry host2 pear host3 apple host4 orange host4 banana host4 plum Desired output: host1 peach cherry host2 pear host3 apple host4 orange banana plum Tried this but can't get it to work. awk -F' * *' '{a[$1 " " $2]=a[$1 " " $2] " " $3} END {for (k in a) {print k...
  13. AIXSolarisAdmin

    Uncomment lines after a match

    Example file is /etc/fstab: /dev/mapper/Volume00-usr /usr ext4 defaults 1 2 /dev/mapper/Volume00-var /var ext4 defaults 1 2 /dev/mapper/Volume00-crash /var/crash ext4 defaults 1 2 /dev/mapper/Volume00-swap swap...

Part and Inventory Search

Back
Top