
dpkg-info creator
By:
norbert79 on
Aug 21st, 2012 | syntax:
Bash | size: 0.20 KB | hits: 22 | expires: Never
dpkg -c $1 | awk '{if ($6 == "./"){ print "/."; } \
else if (substr($6, length($6), 1) == "/")\
{print substr($6, 2, length($6) - 2); } \
else { print substr($6, 2, length($6) - 1);}}'\
> $1.list