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

    exec to file and screen

    Hi, Anyone know how to use exec to direct standard out to a file and also to the screen. If I do : exec > $LOGFILE It goes to logfile but I get nothing to screen, i've tried exec > $LOGFILE | tee But no luck. It's a long script so i'd rather not have to | tee for every echo statement...
  2. butterfm

    slow select count(*) on partitioned table

    Thanks for the info guys - that's a great help.
  3. butterfm

    slow select count(*) on partitioned table

    It is a well specced system. Is there a way I can tell when the stats were last updated ? I have done an explain and it is table scanning.
  4. butterfm

    slow select count(*) on partitioned table

    Hi, I have a partitioned table in Oracle with no indexes. select count(*) from <tabname> partition (name) takes around 10 mins to count 70,000 rows. It's doing a full scan of the partition but this stills seems a long time, even if the data isn't already cached. Would an index speed up a...
  5. butterfm

    Tablespace extend rebalance paused.

    Hi, Can anyone tell me if an online backup of a db2 database can cause the rebalancing operation of tablespace containersto be paused after a container has been extended. This is on DB2 8.2 on AIX. Thanks, Matt.
  6. butterfm

    my sed is aweful

    Thanks for the quick answers guys. I went for PHV's awk solution - it makes more sense to me than the sed method. Thanks, Matt.
  7. butterfm

    my sed is aweful

    Sorry guys - need help with a truly simple sed question. I have a file with the following \dir1\dir2\file.exe '\path1\path2\blah' '\path3\path4\blah' how in sed do I change it so that the "\" in only the first path are changed to "/" e.g. /dir1/dir2/file.exe '\path1\path2\blah'...
  8. butterfm

    row level locking

    Hi, Does anybody know in if having row level locking enabled on a table would increase the amount of information logged in the transaction log during a transaction (i.e. more than it would if Row level locking was not on) If so can anyone explain why ? Thanks, Matt
  9. butterfm

    A tricky sed problem

    Thanks very much to both of you. Feherke's solution works a treat. As far as I can see there'll always be more than one consecutive "Unloading" line. I think I need to do a lot more reading up on sed. Many thanks, Matt.
  10. butterfm

    A tricky sed problem

    TrojanWarBlade, Your solution is very nearly there. The only issue remaining is that I get everything on one line. e.g. I would like this to be a single sentenceIgnore this line hereI would like this to be a single sentence Thanks, Matt
  11. butterfm

    A tricky sed problem

    Thanks guys. Apologies but I didn't give quite enough detail. The file may be something like this any number of times. I would like this[Unloading randomclass1] [Unloading randomclass2] [Unloading randomclass3] [Unloading randomclass4] to be a single sentence Ignore this line here I would like...
  12. butterfm

    A tricky sed problem

    Hi, I have similar to the following text : I would like this[Unloading randomclass1] [Unloading randomclass2] [Unloading randomclass3] [Unloading randomclass4] to be a single sentence I need to end up with : I would like this to be a single sentence There number of lines between the...
  13. butterfm

    Range of fields

    Thanks for all the help guys. Some great advice there. I'll give some of the ideas a go when I get back to work on Monday. Thanks, Matt.
  14. butterfm

    Range of fields

    Thanks for the replies The for loop is : for (i=4; i<NF; i++) printf "%s", $i","; i++; printf "%s", $i"\n" I can't post the line because it's work sensitive but it would be about 10 lines wrapped round on a terminal window if catted from a file. Is there a limit on the size of teh line in...
  15. butterfm

    Range of fields

    Hi, Is there a way in awk to print a range of fields without using a for loop ? e.g. A file contains: a,b,c,d,e,f,g,h How can I print fields 3 to 8 without using a for loop to get : c,d,e,f,g,h I've done it with a for loop but I get an error saying that the input line is too long. Thanks, M.
  16. butterfm

    Explorer.exe won't start in Windows 98

    Thanks for the replies - never too late as the info may come in useful in the future. After the virus/spyware scans I did try extracting explorer.exe from the cab files on the win98 CDROM and replacing the existing one. I also did a full Win98 install over itself. Neither of these fixed the...
  17. butterfm

    Explorer.exe won't start in Windows 98

    Thanks for the advice buletman. Sadly i've formatted and re-installed in the meantime as the person who's PC it was needed it back I ran virus check etc on the drive as a slave in my machine but couldn't find anything. Where are these registry entries from (i.e are they put there by some kind of...
  18. butterfm

    Explorer.exe won't start in Windows 98

    Thanks guys - sorry for posting in the wrong forum. Crowley16 - explorer.exe is still there (i've checked in DOS). The error message just says that it has problems staring it. Maingeek - I thought it might be a virus. I'll try the system.ini change and if that doesn't work, i'll slave the HDD...
  19. butterfm

    Explorer.exe won't start in Windows 98

    Hi, I've been asked to look at a problem with a neighbours PC. When windows 98 starts it comes back with an error saying that it can't start Explorer.exe. If you click OK the same message just appears again and therefore I can't get into the machine. Is this likely to be somekind of Malware...
  20. butterfm

    Dual Layered DVD burners.

    Thanks for the confirmation Martin. Your comments are what I would have expected, but it's nice to get a definative answer from somebody in the know. Ta, M.

Part and Inventory Search

Back
Top