Search Results

Search: Posts Made By: gh0std0g74
3,418
Posted By gh0std0g74
if you can use Python, here's an alternative ...
if you can use Python, here's an alternative

for line in open("file"):
line=line.rstrip()
sl=line.split(",")
t=[]
num=[int(i) for i in sl[3::2]]
for n in num:
if...
48,167
Posted By gh0std0g74
if you can use Python, you can use its filecmp...
if you can use Python, you can use its filecmp module

#!/usr/bin/env python
import filecmp
import os
directory1 = os.path.join("./","dir1")
directory2 = os.path.join("./","dir2")
cmp =...
3,418
Posted By gh0std0g74
how does Jordan Mary's average of 7 come about??...
how does Jordan Mary's average of 7 come about?? show the calculation.
3,187
Posted By gh0std0g74
if you have Python #!/usr/bin/env python ...
if you have Python

#!/usr/bin/env python
counter=1
for line in open("file"):
sl=line.strip()
if sl.startswith("#"):
counter=str(counter).zfill(4)
...
1,976
Posted By gh0std0g74
If you can use Python #!/usr/bin/env python ...
If you can use Python

#!/usr/bin/env python
for line in open("file"):
if not "PRINTF" in line:
line=line.rstrip()
line=line.replace("mid","MID")
if "IF" in line:
...
9,421
Posted By gh0std0g74
if you have Python and no restriction using it. ...
if you have Python and no restriction using it.

import glob
import os
import operator
hash={}
d=0
for file in glob.glob("file*"):
for n,line in enumerate(open(file)):
...
Showing results 1 to 6 of 6

 
All times are GMT -4. The time now is 08:11 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy