Skip to content

Instantly share code, notes, and snippets.

@bqcuong
Last active April 3, 2023 07:41
Show Gist options
  • Select an option

  • Save bqcuong/0bd9b4132ea0805b3f31bd95d5c6da2c to your computer and use it in GitHub Desktop.

Select an option

Save bqcuong/0bd9b4132ea0805b3f31bd95d5c6da2c to your computer and use it in GitHub Desktop.
#!/bin/bash
RUN TO_SEARCH="curl"; echo $(apt --installed list $(echo $TO_SEARCH) 2>/dev/null | grep installed | awk -F'[/| ]' '{print $1"="$3}' | tr '\n' ' ')
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment