twrp-apps-data-restore-tool/1_create_packages_list.sh

15 lines
416 B
Bash
Raw Normal View History

2021-04-08 14:38:09 +02:00
#!/bin/bash -e
basedir="$PWD"
cd work/data/user
for USERID in *; do
if [ -d "${USERID}" ]; then
echo "${USERID}" # your processing here
ls "$basedir/work/data/user/$USERID/" --format single-column --indicator-style none > "$basedir/work/packages_list_${USERID}.txt"
fi
ls "$basedir/work/data/data/" --format single-column --indicator-style none > "$basedir/work/packages_list_0.txt"
done