File: test_gzip_byline.sh

package info (click to toggle)
libslow5lib 0.7.0%2Bdfsg-2
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 25,084 kB
  • sloc: ansic: 11,825; python: 1,179; sh: 547; makefile: 90; cpp: 40
file content (6 lines) | stat: -rwxr-xr-x 125 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
#!/bin/bash

while IFS="" read -r line || [ -n "$line" ]; do
    gzip <(echo "$line") -c >> "$1"_line.gz
done < "$1"
echo ""