ich klinke mich hier einfach mal ein:
ich versuche gerade ein script zu erstellen, welches mir die dateien aus dem verzeichnis zu youtube hochlädt und den dateinahmen ohne mkv als titel verwendet.
problem ist allerdings: ich hab keine ahnung
der raspberry ist mein erster kontakt mit linux und der scripterei
so siehts bisher aus
[font="Trebuchet MS"]#!/bin/bash[/font]
[font="Trebuchet MS"]username="login"[/font]
[font="Trebuchet MS"]password="**********" [/font]
[font="Trebuchet MS"]tags="na tags halt"[/font]
[font="Trebuchet MS"]desc="beschreibung"[/font]
[font="Trebuchet MS"]for file in ./*.mkv ; do[/font]
[font="Trebuchet MS"]export title=$(basename "$file" ".mkv")[/font]
[font="Trebuchet MS"]echo $title "for" $file[/font]
[font="Trebuchet MS"]youtube-upload --email=$"username" --password=$"password" --description="$desc" --category="Games" --keywords="$tags" --title="$title" "$file"[/font]
[font="Trebuchet MS"]done[/font]
[font="Trebuchet MS"]als Ausgabe bekomme ich:[/font]
[font="Trebuchet MS"]: not found test.sh:
test.sh: 6: test.sh: Syntax error: word unexpected (expecting "do")
[/font]
[font="Trebuchet MS"]kann mir jemand sagen, was da schief läuft?[/font]