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 wOOdy-Soft 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: *

  • Users: PSD
  • Content: Threads
  • Order by date
  1. PSD

    awk matching::

    Hi all, The awk statement below nearly works as I want it to. That is it removes :: if it is on the end or beginning of the PATH variable, but :: anywhere else is not removed - however ::: is. So it is nearly there. Any awk experts able to shed light light on getting the :: removed rather than...
  2. PSD

    Problem listing all files in a script

    I knocked this together today but it is not listing all files in the while true FILE loop. I tried two variations, one with the ultimate endgame matching files which are go+w and one without. The idea is to check the files in each users home directory to ensure nothing is go+r. lsuser -a home...
  3. PSD

    Running a script in a shell pipeline

    Hi guys, I have a script which I would like to run as a shell pipeline, so I copied it all into one line and it does not work. su - root -c "echo /:${PATH}" | tr ':' '\n' | while read DIR ; do ; DIR=${DIR:-$(pwd)} ; print "Checking ${DIR}"; while [[ -d ${DIR} ]]; do; [[ "$(ls -ld ${DIR})" =...
  4. PSD

    Script to work out file permissions (not working!)

    Hi all, I inherited this script which does not work on AIX:- touch a; chmod og-rwx a; ui=($(echo 0027 -n | fold -w1));sys=($(perl -e 'printf "%04o\n",(stat shift)[2] & 07777' a | fold -w1));for (( i=0; i<4; i++ )); do echo -n $(( ${ui[$i]} & ${sys[$i]})); done Basically, it is supposed to...
  5. PSD

    multiple spaces between columns with grep

    Hi all, On AIX I had some problems with \s+ matching spaces so ended up using [[:blank:]]. But if there are multiple spaces between two words in a file, what is the best way of using [[:blank:]] without typing it more than once? Also the number of space varies per line, so there is no fixed...
  6. PSD

    UNIX PATH directory checking

    Hi all, I am trying to come up with the simplest way to parse root's path and then examine whether or not each directory is world writable or not. So far this works fine in listing the PATH names:- for DIR in `su - root -c "echo $PATH"| tr ':' ' '` do ls -lLd $DIR done This lists:-...
  7. PSD

    egrep and IP addresses

    Hi there, This is giving me a bit of headache. Trying to grep out IP addresses from files, so looking for a "xxx.xxx.xxx.xxx" address format:- cat /tmp/test |egrep "[0-9]{1,3}\.[0-9]{1,3}\.([0-9]{1,3}" This is the command I came up with, sort 0-9, 1-3 times followed by a dot. It works but it...
  8. PSD

    AIX 5.2 on Ebay

    Hi, There is a full set of AIX 5.2 Cdroms' available on Ebay for a bargain buy it now price of £40. I know that a number of people are after a copy. Best of luck PSD IBM Certified Specialist - AIX V4.3 Systems Support IBM Certified Specialist - AIX V4 HACMP
  9. PSD

    RE: Norton System Works 2002

    Has anyone installed Norton System Works 2002 on Windows 2000 professional? Everything installs but norton utilties, the error is : _SETUP.DLL and _ISRES.DLL are required from _SYS1.CAB I am not sure of the procedure required to copy these files, and cannot find ISRES.DLL. Any ideas? Thanks...
  10. PSD

    DB2 parallel edition on AIX

    Hi, I am an AIX system administrator and as such my knowledge of DB2 is not great. My company is looking into DB2 parallel edition for our SP nodes, does anyway have any experiences of this? good or bad would be helpful. I suspect that I will use GPFS for data sharing. Thanks PSD IBM...
  11. PSD

    RE: Austin, Texas Study Tour : October 24th

    Just wondering if any other members are going to the IBM study tour in Austin on October 24th. ??

Part and Inventory Search

Back
Top