Skip to content

Commit

Permalink
sed to remove extra blank lines
Browse files Browse the repository at this point in the history
  • Loading branch information
fberbert authored Feb 23, 2023
1 parent 7fb6241 commit eb24f88
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion extracttext
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ $IMPORT_CMD $IMG_TEMP
# remove multiple blank lines
# remove control characters
# and copy the text to the clipboard
$TESSERACT_CMD $IMG_TEMP stdout | sed '/^$/N;/^\n$/D' | tr -d '\000-\037' | $XSEL_CMD
$TESSERACT_CMD $IMG_TEMP stdout | sed '/^$/N;/^\n$/D' | $XSEL_CMD

# Remove the print screen
rm $IMG_TEMP
Expand Down

0 comments on commit eb24f88

Please sign in to comment.