mirror of
https://github.com/Pardus-LiderAhenk/ahenk
synced 2024-11-16 02:32:16 +03:00
11 lines
291 B
Bash
11 lines
291 B
Bash
|
#!/bin/bash
|
||
|
|
||
|
for APT in `find /etc/apt/ -name \*.list`; do
|
||
|
grep -Po "(?<=^deb\s).*?(?=#|$)" $APT | while read ENTRY ; do
|
||
|
HOST=`echo $ENTRY | cut -d/ -f3`
|
||
|
USER=`echo $ENTRY | cut -d/ -f4`
|
||
|
PPA=`echo $ENTRY | cut -d/ -f5`
|
||
|
echo deb ${ENTRY}
|
||
|
done
|
||
|
done
|