Don't like ads? PRO users don't see any ads ;-)

dpkg-info creator

By: norbert79 on Aug 21st, 2012  |  syntax: Bash  |  size: 0.20 KB  |  hits: 22  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. dpkg -c $1 | awk '{if ($6 == "./"){ print "/."; } \
  2. else if (substr($6, length($6), 1) == "/")\
  3. {print substr($6, 2, length($6) - 2); } \
  4. else { print substr($6, 2, length($6) - 1);}}'\
  5. > $1.list