In this video we look at a bash script in which we write to a file with the name of said file coming from a variable. The first example is nearly trivial, we assign a string value to a variable and then use that variable in a command that expects a filename argument. In the second example, the value assigned to the variable includes the formatted output from a date command. So the output of the script varies in that it would name the resulting file differently on different days. (It might be useful for logging or backing up.)
Auf dieser Seite können Sie das Online-Video Bash Scripting: Using variable filenames mit der Dauer stunde minuten sekunde in guter Qualität ansehen, das der Benutzer Thomas Blum 21 Januar 2022 hochgeladen hat, den Link mit Freunden und Bekannten teilen, dieses Video wurde auf Youtube bereits 126 Mal angesehen und es wurde von 0 den Zuschauern gefallen. Viel Spaß beim Betrachtenden Zuschauern gefallen!