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

    script help preparing an ldif file

    I have an ldif file that I am cleaning up in order to import in into Oracle OID which is Oracles LDAP. It has to be in a specific format in order to load. Another problem I am getting stuck at is there is an LDAP attribute the I need to add to each of the 100,000 employees. I need to add cn...
  2. rhoover

    Looking for help with sed/regex

    I am new to scripting and I have an ldif file that I am cleaning up in order to import in into Oracle OID which is Oracles LDAP. It has to be in a specific format in order to load. The problem I am getting stuck at is there are some instances where there is more than one mail address listed for...
  3. rhoover

    Trying to use awk with a $variable

    OldEd, You are the man. I tried to find a BOW Smiley but there are none. Thanks - Ron
  4. rhoover

    Trying to use awk with a $variable

    Here is an example of post_record_counts: 462374 zmm01.in 45779 bkpf.in 202700 bseg.in 61862 eban.in 61706 ebkn.in 183445 ekbe.in 1121484 eket.in 205775 ekkn.in 29970 ekko.in The first field is Word Count and the Second Field is File name. I am trying to loop through that file using the second...
  5. rhoover

    Trying to use awk with a $variable

    Thanks Ed, You can probably tell I'm new at this. The FAQ definately got me much closer. This is what I used for the variable now: for SAPfile in `cut -f 2 -d ' ' post_record_counts` do preCNT=`awk '/{print"'"$SAPfile"'"}/' pre_record_counts|cut -f 1 -d ' '`;export preFile done Here is an...
  6. rhoover

    Trying to use awk with a $variable

    I am attempting to compare wc -l in multiple files to validate todays wc -l is greater than yesterdays. Here is what I was experimenting with: #!/bin/ksh --------------- # Compare the record count file by file to make sure we did not receive less ---------------# if [[ -a...

Part and Inventory Search

Back
Top