I’m using Ctrl+H to find and replace the text “ 8 ‘DK’” with “” (nothing) in a syntax file with 29,000 lines. It worked on a previous file with 100, 000 liones in about 25 minutes. This one has been stuck for over an hour. How can I find out what it is doing (if anything) and how far it has got? John F Hall (Mr) [Retired academic survey researcher] (SPSS 24: Windows 7 Pro 32-bit) Email: [hidden email] Website: www.surveyresearch.weebly.com SPSS start page: www.surveyresearch.weebly.com/1-survey-analysis-workshop |
Administrator
|
A simple Find/Replace of this sort should take mere seconds.
Perhaps do this in Notepad or something else? I suspect maybe syntax highlighting or some such beast is getting in the way? ---
Please reply to the list and not to my personal email.
Those desiring my consulting or training services please feel free to email me. --- "Nolite dare sanctum canibus neque mittatis margaritas vestras ante porcos ne forte conculcent eas pedibus suis." Cum es damnatorum possederunt porcos iens ut salire off sanguinum cliff in abyssum?" |
In reply to this post by John F Hall
from os.path import splitext
=====================
To manage your subscription to SPSSX-L, send a message to
[hidden email] (not to SPSSX-L), with no body text except the
command. To leave the list, send the command
SIGNOFF SPSSX-L
For a list of commands to manage subscriptions, send the command
INFO REFCARD
syntax = r"c:\some\syntax.sps" with open(syntax, "rb") as infile, open(splitext(syntax)[0] + _subst.sps", "wb") as outfile: for line in infile: line = line.replace(“ 8 ‘DK’", "') outfile.write(line) Date: Wed, 25 May 2016 10:37:40 +0200 From: [hidden email] Subject: [SPSSX-L] Monitoring SPSS progress in real time To: [hidden email] I’m using Ctrl+H to find and replace the text “ 8 ‘DK’” with “” (nothing) in a syntax file with 29,000 lines. It worked on a previous file with 100, 000 liones in about 25 minutes. This one has been stuck for over an hour. How can I find out what it is doing (if anything) and how far it has got?
John F Hall (Mr) [Retired academic survey researcher] (SPSS 24: Windows 7 Pro 32-bit) Email: johnfhall@... Website: www.surveyresearch.weebly.com SPSS start page: www.surveyresearch.weebly.com/1-survey-analysis-workshop
|
Free forum by Nabble | Edit this page |