From 7e31f6447915acf4412fb1488b66f435ef16a5b3 Mon Sep 17 00:00:00 2001 From: Jonas Smedegaard Date: Fri, 2 Dec 2016 15:02:27 +0100 Subject: Use grep -Po (not perl -ane) to parse audio device names. --- localvideodump | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'localvideodump') 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: -- cgit v1.2.3 n='2'>cgit logo index : notmuch
Unnamed repository; edit this file 'description' to name the repository.Jonas Smedegaard
summaryrefslogtreecommitdiff
path: root/tags/80/d3/20170415000340.4AFE9629E@lxp5.free-owl.de/unread
diff options
context:
space:
mode:
Diffstat (limited to 'tags/80/d3/20170415000340.4AFE9629E@lxp5.free-owl.de/unread')
-rw-r--r--tags/80/d3/20170415000340.4AFE9629E@lxp5.free-owl.de/unread0
1 files changed, 0 insertions, 0 deletions