File: fix-scripts.sh

package info (click to toggle)
plaso 20201007-2
  • links: PTS, VCS
  • area: main
  • in suites: bullseye
  • size: 519,924 kB
  • sloc: python: 79,002; sh: 629; xml: 72; sql: 14; vhdl: 11; makefile: 10
file content (12 lines) | stat: -rwxr-xr-x 215 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
#!/bin/sh

find debian/tmp/usr/bin -name \*.py | while read f
do
    echo $f:
    head -n1 $f
    if head -n1 "$f" | grep python3; then
        mv "$f" "$f-python3"
    else
        mv "$f" "$f-python2"
    fi
done