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 SkipVought 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. DubiousAlliance

    How to add SAN disk being presented to VIO server to LPAR

    IBM P570 - AIX 5.3 (2 Failover) VIO servers The SAN folks are presenting the VIO servers with additional (NetApp)SAN capacity that will be used in new VG's to allow mounting of "SnapDrives". Need documentation (called IBM support - no redbooks that specifically do step-by-step instructions)or...
  2. DubiousAlliance

    AIX 5.3 - How to get the size of a soft-linked file

    p5wizard, Thanks for the clarification. The man page for "ls" and googling around a bit didn't look promising either for "ls -L" ;^) This worked, thank you! Regards,
  3. DubiousAlliance

    AIX 5.3 - How to get the size of a soft-linked file

    Biblio93, Thanks for your response! Not sure if this is a shell difference or not. I'm using stock AIX 5.3 ksh. When I try "ls -L" I only get back the name of the file (without the link) ie. root@MYSRV# ls -al /BACKUP/FILE2 -rw-r--r-- 1 root system 40111 Nov 04 11:42...
  4. DubiousAlliance

    AIX 5.3 - How to get the size of a soft-linked file

    Hello all! Trying to use "ls" or "find" to get the size of the source file in a soft link. ie. root@MYSRV# pwd /BACKUP root@MYSRV# ls -al FILE* -rw-r--r-- 1 root system 24277 Nov 02 15:26 FILE2 root@MYSRV# root@MYSRV# pwd /backup/prev1 root@MYSRV# ln -s /BACKUP/FILE2 ./FILE1...
  5. DubiousAlliance

    Use awk to append lines matching regex to previous line of file

    PHV, That did it! Thanks! Final script looks like this: awk ' # line does not start with 99, # print previous line if there was one, # save new line and skip further processing !/^99/ { if (LINE) print LINE; LINE=$0; next } # remove the 99 from...
  6. DubiousAlliance

    Use awk to append lines matching regex to previous line of file

    Okay - Researching sub & gsub shows that both will return a "1" if a successful substitution occurs. So how can I do the gsub or sub without the return value being inserted into the data? I'm assuming I can't redirect output to /dev/null or something like that? Thanks in advance...
  7. DubiousAlliance

    Use awk to append lines matching regex to previous line of file

    Annihilannic, Thank you! This worked pretty well. I added the following line in order to remove the "99" from the line prior to appending it to the previous line: { LINE=LINE gsub(/^99/, "", $0) } ...So that the awk script looks like: awk ' # line does not start with 99 #...
  8. DubiousAlliance

    Use awk to append lines matching regex to previous line of file

    Need some guidance on how to use awk to append the line(s) that match a regexp to the previous unmatched line within a file. For example, I have a comma delimited file that looks like: 01,123456789,123456789,,1234,1234,,12345 02,12345654321,12345,,,12345,12345 99,00000,00000,000000,,,000...

Part and Inventory Search

Back
Top