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.)
Sur cette page du site, vous pouvez voir la vidéo en ligne Bash Scripting: Using variable filenames durée heure minute seconde en bonne qualité , qui a été Téléchargé par l'utilisateur Thomas Blum 21 janvier 2022, Partagez le lien avec vos amis et connaissances, sur youtube cette vidéo a déjà été regardée 126 fois et il a aimé 0 téléspectateurs. Bon visionnage!