Search Results

Search: Posts Made By: matrois
938
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...
938
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...
903
Posted By matrois
Thank you very much for your help. Double...
Thank you very much for your help.

Double quotes solved my problem...
903
Posted By matrois
Two spaces making trouble
I have really big problems with two spaces. I tried to simplify my problem as much as possible. I have made a script to understand my problem:

#!/bin/bash
VAR='/path/with/two spaces'
echo...
Showing results 1 to 4 of 4

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