Search Results

Search: Posts Made By: zouhair
5,031
Posted By RudiC
Double quote "$var".
Double quote "$var".
5,031
Posted By MadeInGermany
In the shell, in commands have $variables in...
In the shell, in commands have $variables in "quotes", otherwise the shell will get its contents and break it into words (and even try a glob-match with each word).
The echo command:
echo "$var"
967
Posted By RudiC
That is a variation of bash's "here documents":...
That is a variation of bash's "here documents": "here strings". This contruct evaluates the expression after the <<< and presents the result on stdin of the (here: read) command.
I don't know about...
967
Posted By MadeInGermany
The classic approach is slow (run exiftool for...
The classic approach is slow (run exiftool for each file) but safe:
total_folder_length=$(
find . -maxdepth 1 -type f \( -iname '*.mkv' -o -iname '*.mp4' -o -iname '*.avi' \) |
while IFS= read...
967
Posted By RudiC
That is quite confusing a script. And, what does...
That is quite confusing a script. And, what does "get a bit borked" mean? Incorrect? Slow? Crashes?

A few comments:
- you don't need an echo "command substitution" for a variable assignment in...
Forum: Tips and Tutorials 10-08-2006
297,024
Posted By ripat
Simple date and time calulation in BASH
The GNU date command in full of goodies but not when it comes to calculate a date or time difference. Here is what I came up with after looking to more than one solution.

Code should be self...
Showing results 1 to 6 of 6

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