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 Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Recent content by michaelvv

  1. michaelvv

    HISTFILE setting ignored in AIX 7.1

    export HISTFILE=$HOME/.sh_history_mvv export HISTSIZE=1024 PATH=/usr/bin:/etc:/usr/sbin:/usr/ucb:$HOME/bin:/usr/bin/X11:/sbin:. export PATH typeset -x CDPATH=:~ ENV=.kshrc PS1=$(hostname -s):'$PWD>' PS4='[$LINENO]+ ' VISUAL=vi...
  2. michaelvv

    HISTFILE setting ignored in AIX 7.1

    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?
  3. michaelvv

    Re-formatting a file

    You have made my point!! It only took me a couple of minutes to write the awk program, in only 8 lines. How did the run time compare?
  4. michaelvv

    cat piping awk: filename as variable

    probably what you want is: cat $i |awk -v filename=$i ...
  5. michaelvv

    Re-formatting a file

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

    Re-formatting a file

    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.
  7. michaelvv

    Re-formatting a file

    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
  8. michaelvv

    What happened to mailx -r flag?

    How do I set the "From:" variable since the -r flagg is no longer available?
  9. michaelvv

    datastage on AIX

    Is there an AIX equivalent command that allows me to export a datastage project from the command line like dscmdexport? Thanks, Michael
  10. michaelvv

    OS upgrade

    Thanks Sarfaraz, but that decision is out of my hands, unless I can come up with a good reason not tog to 7.1 directly! Michael
  11. michaelvv

    OS upgrade

    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
  12. michaelvv

    execution statistics

    IBM COBOL II has a compiler option XCOUNT for execution statistics. What is the equivalent option for MicroFocus COBOL?
  13. michaelvv

    missing libcrypt.o

    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
  14. michaelvv

    AIX 5.3 does not boot

    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
  15. michaelvv

    AIX 5.3 does not boot

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

Part and Inventory Search

Back
Top