Search Results

Search: Posts Made By: matrois
909
Posted By matrois
@drysdalk: Thank you for your answer. Your...
@drysdalk:
Thank you for your answer. Your example works as expected. Unfortunately your suggestion is a bit different from my desired solution ;-)

Beside one centralized script which defines $LZ...
909
Posted By matrois
Problem with (Understanding) function
I have this code


#!/bin/bash

LZ () {
RETVAL="\n$(date +%Y-%m-%d_%H-%M-%S) --- "
return RETVAL
}

echo -e $LZ"Test"
sleep 3
echo -e $LZ"Test"


which I want to use to make logentrys...
Showing results 1 to 2 of 2

 
All times are GMT -4. The time now is 09:35 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy