Search Results

Search: Posts Made By: bbowers
1,922
Posted By methyl
You were trying to read a file called "16" from...
You were trying to read a file called "16" from an inward redirect "<". You also had mismatched brackets in your "if" statement.

Try a numeric compare:

#!/bin/bash
TIMED=$(date +%H)

if [...
4,813
Posted By agama
Do you mean that you want to have an empty line...
Do you mean that you want to have an empty line between your title, and the tree? If so, then using a second echo, with a null string will work. For example:


echo "Below is the list of files...
2,263
Posted By Corona688
labs/* is redundant. Just do tar -C labs -cf...
labs/* is redundant. Just do tar -C labs -cf filename.tar .

And you can do mkdir -p which will be silent if the directory already exists.
6,397
Posted By Scrutinizer
echo "This is the date: $(date)" or printf...
echo "This is the date: $(date)"
or
printf "%s" ""This is the date: "
date
Showing results 1 to 4 of 4

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