Skip to content

Commit

Permalink
Initial commit
Browse files Browse the repository at this point in the history
  • Loading branch information
x1ao4 committed Jul 6, 2023
1 parent 01e5485 commit 9dd2f99
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
3 changes: 3 additions & 0 deletions line-indexer/line-indexer.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
with open('input.txt', 'r') as input_file, open('output.txt', 'w') as output_file:
for i, line in enumerate(input_file, 1):
output_file.write(f'{i};{line}')
5 changes: 5 additions & 0 deletions line-indexer/start.command
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
#!/bin/bash

cd /path/to/line-indexer

python3 line-indexer.py

0 comments on commit 9dd2f99

Please sign in to comment.