I have a code:
#/bin/sh cd ~/Desktop/tmp date "+%m%d%y_%H%M%S_" | xargs -0 mkdir;
This will create a directory with the current date.The problem here is that the command datewill return a date with a newline at the end.After the mkdircreated folder will contain a new line.Does anyone know how to do this? I need a folder name without a newline.Thank.
date
mkdir
why do you pass it on xargs? Don't do unnecessary
xargs
mkdir $(date "+%m%d%y_%H%M%S_")
, -0, xargs (ASCII 000) . . -0 , xargs ( ) , .
-0
ghostdog74, .
Source: https://habr.com/ru/post/1785844/More articles:Why is the operating system software loaded from the hard drive than from the rom chip? - operating-systemHow to implement a transaction at the level of business logic - databasehttps://translate.googleusercontent.com/translate_c?depth=1&pto=aue&rurl=translate.google.com&sl=ru&sp=nmt4&tl=en&u=https://fooobar.com/questions/1785841/alternative-to-using-group-by-without-aggregates-to-retrieve-distinct-best-result&usg=ALkJrhj3aKv6q5zWUPTCx23c1vQuOI2TqwAre records uploaded to a HashSet or SortedSet linked? - entity-framework-4how to perform C # time check in HHMMSS format - c #I need code to check any time in C # in HHMMSS format - c #Можно ли включить "исходные" файлы в wixlib? - wixConsidering HorizontalAlignment and VerticalAlignment when creating a custom panel - alignmentIs there a safer solution than using plist to save in-app purchases? - iphoneXNA's ToggleFullScreen causes a lost device, such as errors - xnaAll Articles