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 dencom 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 ksdh

  1. ksdh

    no Central Management Server running at port 6400

    Just so you know, i am on a Linux box
  2. ksdh

    no Central Management Server running at port 6400

    Hi All I am getting this message even after having re-initialized the cmsdbsetup process. message i get /opt/bo/bobje/ccm.sh -display Creating session manager... Logging onto CMS... err: Error: Couldn't logon to CMS err: Error description: The system XXXXXX can be contacted, but there is no...
  3. ksdh

    delete files in unix

    Hi I have a directory with hundreds of files. I would like to delete files older than a day. How could i do this? Would mtime work? Thanks
  4. ksdh

    Comparing file contents unix

    thanks elgrandeperro
  5. ksdh

    Comparing file contents unix

    Elgrandeperro Thanks for your post. Your script does the job but could you please explain the logic behind egrep -i "^$line$" B > /dev/null if [ $? -eq 0 ] What does ^$line$ mean and $? -eq 0 Thanks
  6. ksdh

    Comparing file contents unix

    I was trying cat C | while read line; do grep -i $line B ;done | wc -l I dont know if i applied the right logic. Thanks
  7. ksdh

    simple script unix

    HI What i am trying to do is as follows A------> Raw file B------> Whitelist C------> Filtered file Lets say each of them contains only numbers. I want to check , how many numbers in the filtered file (came from raw) are there in the whitelist. Ideally all of them should be in the whitelist...
  8. ksdh

    Comparing file contents unix

    All i want to do here, is run a for or while loop on file C to compare the entries with file B but dont know how to do it. Once thats doen, i want to count the number of entries that matched in both files. The output would just give us a count of the number of entries that matched, a simple...
  9. ksdh

    Comparing file contents unix

    Feherke Sorry but the -f option doesnt work on my solaris? grep -f IMSI2 -x IMSI1 grep: illegal option -- f Also, what i want to do here is A------> Raw file B------> Whitelist C------> Filtered file Lets say each of them contains only numbers. I want to check , how many numbers in the...
  10. ksdh

    Comparing file contents unix

    Feherke Thanks , but the diff command would nt work out here . The files contain thousands of entries. So basically i would have to run a command where if the number or string is in file B and file A the count is incremented and if the content from file B does not match A, the counter stays...
  11. ksdh

    Comparing file contents unix

    HI I have 2 files A and B A 1 1234 986740982 78264182 89264162 9128635 5 6 7 8 B 1 4 5 6 7 As you can see , some of the records in B are in A. What is the best way that we can compare the 2 files? I mean lets say i want to output the comparison of both the files where the entries match (or...
  12. ksdh

    help with perl

    Thanks a million sycootgit. It work as i wanted it to
  13. ksdh

    help with perl

    HI I am using the below script to create a file with 10000 iterations. What i want to do is, use a loop that would create a file with 1000 iterations for the 10000. So basically i would like to break up the file with 10000 iterations using a loop to have 10 files with 1000 iterations each. It...
  14. ksdh

    generate data

    The reason i am asking you that is , the output is as under ': invalid format character 282000272000016810,38129031,982123,0016810 404000016810,38129031,982123,4016810 303000016810,38129031,982123,3016810 -bash: printf: `
  15. ksdh

    generate data

    Thanks Ferheke but is this a bash script?

Part and Inventory Search

Back
Top