mirror of
https://github.com/Pardus-LiderAhenk/ahenk
synced 2024-11-15 23:02:15 +03:00
10 lines
291 B
Bash
Executable file
10 lines
291 B
Bash
Executable file
#!/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
|