Posts
 
Reputation
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
~7K People Reached
Favorite Forums
Favorite Tags
Member Avatar for dieg0s

Hi, I'm trying to use grep on a file from within a python script, I was thinking of something like this: [code] variable = 123 s = subprocess.Popen("grep" + "-w "variable" Data.txt") [/code] How do I use a variable from within the call to grep? Cheers Andy

Member Avatar for jlm699
0
7K