The command 'date', among other things, allows printing a date specified relatively to the present or to a specific date, which allows very convenient calculations on dates.
The command 'date', among other things, allows printing a date specified relatively to the present or to a specific date, which allows very convenient calculations on dates.
A small example of a trivial shell function that naively converts and prints a number of seconds to hours, minutes and seconds.
A presentation of a simple solution allowing for encryption of the remote connections initiated by rsync using SSH while restricting its accesses to a directory, potentially in read-only mode.
How the array manipulation functionalities specific to bash make it possible to more easily retrieve the positional parameters of a script or function.
How to do a simple loop over the parameters of a shell script, from the first to the last one and from the last to the first one.
Processing a variable number of fields in text lines using the awk command and its language.