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 bkrike 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 crasho2001

  1. crasho2001

    Character replace

    Thank you for response. But I have problem. I am using Solaris. e10>awk '{ORS=/,$/?"":"\n"}1' bulk2 awk: syntax error near line 1 awk: illegal statement near line 1 awk: syntax error near line 1 awk: bailing out near line 1 e10> e10> e10>sed -r ':b;/,$/{N;bb;};s/\n//g' bulk2 sed: illegal option...
  2. crasho2001

    Character replace

    If the line ends with ,\n , it should be replace to ,. If the line ends with \n, no change should be done. How can I do?
  3. crasho2001

    Different routes

    Hi, I am trying to reach 10.68.49.50. I can reach through nxge2 interface. When I down the nxge2, I am waiting to reach 10.68.49.50 via nxge0. But this is not happening. System tries to reach 10.68.49.50 via e1000g0. Any suggestion? Regards, root@xxb>ifconfig -a lo0...
  4. crasho2001

    Date reset

    At Sun Fire v440 system, time reset occured suddenly. Date was 1.1.1970. Have you seen this behaviour before? What can be the problem?
  5. crasho2001

    matching two big files

    Feherke, Awk does not work. The result is 0. And which grep is it? >cat l1 1 1 2 2 3 3 4 4 5 5 6 7 >cat l2 1 3 5 6 7
  6. crasho2001

    matching two big files

    Hi, I have two big files. File1 has 2 columns. (id,num). It has all ids. File2 has 1 column.(id). It has some ids. If File2 id matches File1 id than count num. I used the script below. But it takes too much time. How can make it faster? count=0 for list in `cat File2` do count1=`grep $list...
  7. crasho2001

    Deleting lines from a file

    Hi, "cat /dev/null" is an option but it will delete also unread lines. While I am reading the file, a new lines can be added. For example I need to delete lines from 1 to 99. Not the other ones. Thank you.
  8. crasho2001

    audit files

    Hi, Audit is activated on some tables. A session is opened and produces 30g audit file during its work. File system is not big enough to handle 30g file. When file system is full, oracle stops working. - Is there any way to stop audit when file system is reached a limit? -Opened session is...
  9. crasho2001

    Deleting lines from a file

    Hi, I am reading a log file regularly. I want to delete lines after reading. Size of log file will not increase any more. How can I delete lines from a file without changing log file name?
  10. crasho2001

    How To Disable DayLight Saving

    Hi, According to /usr/share/lib/zoneinfo/src/asia file or zdump -v Asia/Karachi, it seems there is no day light saving for Karachi. My solaris release is Solaris 9 9/04 s9s_u7wos_09 SPARC. Below example was taken from rule EU. We changed the lines below from europe file to fix DST time...
  11. crasho2001

    Restore Database onto another server

    As I know important point is size of devices and order of devices. Look the example below. 1> select * from sysusages where dbid = 12 2> go dbid segmap lstart size vstart pad unreservedpgs crdate ------ ----------- -----------...
  12. crasho2001

    kern.warning

    Hi, Check the /etc/syslog.conf file. There should be *.warning or kern.warning entry in the file. Just comment out the entry and send kill -HUP to syslogd pid.
  13. crasho2001

    /usr/bin/logger -f option gives multiple entries per line in the file

    Hi, I can give one idea. please check /etc/syslog.conf file. probably info or local0.info messages routed twice to /var/adm/messages file. if this is true, reconfigure your syslog.conf file and send kill -HUP to pid of syslog process.
  14. crasho2001

    crontab automation

    Hi, if you do not use crontab command, you should restart cron manually. /etc/init.d/cron stop /etc/init.d/cron start however you can still use crontab command with filename option. First you should allow root to login as newuser echo "<server name> root" /export/home/newuser/.rhosts or...
  15. crasho2001

    Veritas Volume Manager

    Hi, I searched one more time veritas pages. They are very helpful. 1. To find the total amount of Volume Manager disk space in a particular disk group: # vxprint -g testdg1 -dF "%publen" | awk 'BEGIN {s = 0} {s += $1} END {print s}' 2. To find the total amount of Volume Manager disk space for...

Part and Inventory Search

Back
Top