Browse Source

fragments/xargs-alias

master
Brennen Bearnes 1 year ago
parent
commit
1c06ae344b
4 changed files with 14 additions and 0 deletions
  1. +4
    -0
      home/fragments/xargs-alias/README
  2. +2
    -0
      home/fragments/xargs-alias/example_selection
  3. +2
    -0
      home/fragments/xargs-alias/files.lftp
  4. +6
    -0
      home/fragments/xargs-alias/lst.sh

+ 4
- 0
home/fragments/xargs-alias/README View File

@ -0,0 +1,4 @@
A response to https://sonomu.club/@gavcloud/104243111086171881 that I'm not
sure is entirely reasonable.
May or may not work on a Mac.

+ 2
- 0
home/fragments/xargs-alias/example_selection View File

@ -0,0 +1,2 @@
Datach'i - Bonus - 01 Aldebaran.mp3
Datach'i - Bonus - 02 Something.mp3

+ 2
- 0
home/fragments/xargs-alias/files.lftp View File

@ -0,0 +1,2 @@
put 'Datach\'i - Bonus - 01 Aldebaran.mp3'
put 'Datach\'i - Bonus - 02 Something.mp3'

+ 6
- 0
home/fragments/xargs-alias/lst.sh View File

@ -0,0 +1,6 @@
function lst {
echo -n '' > files.lftp
sed "s/'/\\\'/" example_selection | while read -r fname; do
printf "put '%s'\n" "$fname" >> files.lftp
done
}

Loading…
Cancel
Save