Despite setting HISTFILE to something else, all command history goes to .sh_history. I have checked /etc/profile and /etc/environment. Does anyone have any suggestions?
Not sure if awk pulls the entire file into RAM for this type of processing. How long did it take to process? How many input lines?
I doubt that there is something better in terms of risk/reward. A high level language might process in a few seconds faster, but the only high level language I know...
Looks like the awk program was reformatted. My original post has 8 distinct lines. Also, what platform are you running on? I tested my script under AIX.
awk '
NR==1 {LINE=$0
next}
/^IMSI/ {print LINE
LINE=$0
next}
{LINE=LINE "," $0}
END {print LINE}' your-input-file>your-output-file
this assumes that the input file starts with the 'IMSI' record
We are planning an OS upgrade from 5.3 to 7.1. The server in question is a hub for files coming in and going out via sftp, using ssh keys. Do I need to take any precautions regarding authorized_keys and known_hosts?
Thanks,
Michael
My server won't come up in any mode other than booting from CD in maintenance mode. File /usr/lib/libcrypt.o has disappeared. Can I somehow install just this file (possibly the fileset) from the command line, or do I have to reinstall AIX?
Any help is appreciated.
Michael
Hello errqiq,
I am frustrated because I don't get the SMS menu anymore. It appears to start a normal boot, then it hangs at CA00E1DC.
Any ideas?
Thanks,
Michael
Thanks for the help errqiq!
I had already done most of the steps outlined, but instead of rebooting, I just exited from the shell, wich gave me an error in an endless loop complaining that it cannot load /usr/lib/libc.a. I looked up that file on a parallel system, and it is a soft link to...
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.