Joined
Last Seen
0 Reputation Points
Unknown Quality Score
No one has voted on any posts yet. Votes from other community members are used to determine a member's reputation amongst their peers.
0 Endorsements
Ranked #44.2K
am using debian lenny and tried to create a shutdwon script using python import os os.system("sudo shutdown -h now") i cant use this in debian lenny then how will i implement |
|
hai, i want to create a code to searcha big document in text format and sort one word say "error" and need to print that whole line ....how can i implement this simply in python openfile = open('/home/space/Desktop/test.txt', 'r') data=openfile.read() words=data.split() #print words if "error" in data: |