summaryrefslogtreecommitdiff
path: root/localvideodump
diff options
context:
space:
mode:
authorJonas Smedegaard <dr@jones.dk>2016-12-02 15:02:27 +0100
committerJonas Smedegaard <dr@jones.dk>2016-12-02 15:02:27 +0100
commit7e31f6447915acf4412fb1488b66f435ef16a5b3 (patch)
tree31c8a1c02ae09de78dab9ba02d3017934f16dc20 /localvideodump
parent1c7eafd12d06b5a3aafe838d47790889405c6b5d (diff)
Use grep -Po (not perl -ane) to parse audio device names.
Diffstat (limited to 'localvideodump')
-rwxr-xr-xlocalvideodump2
1 files changed, 1 insertions, 1 deletions
diff --git a/localvideodump b/localvideodump
index 1edfd9e..2e6875f 100755
--- a/localvideodump
+++ b/localvideodump
@@ -31,7 +31,7 @@ set -e
output="${1:-dump.nut}"
# resolve audio inputs: default PCM of all ALSA cards with input devices
-ainputs="$(arecord -l | perl -anE '/^card/ and say $F[2]')"
+ainputs="$(arecord -l | grep -Po '^card \d+: \K\S+')"
#ainputs="CARD=Generic_1,DEV=0"
# FIXME: detect and avoid more than one device on same USB channel: