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...
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,
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...
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...
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...
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...
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
#...
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...
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.