Search Results

Search: Posts Made By: danielshell
2,000
Posted By johnprogrammer
I completed the code: #!/bin/sh # Code...
I completed the code:

#!/bin/sh

# Code is POSIX compliant

tput clear

currentDate="$(date -R)"


counter=0

for word in $currentDate
do

# We ignore the day of the week.
if [...
2,000
Posted By johnprogrammer
I am new to shell programming, here is what I...
I am new to shell programming, here is what I did.


#!/bin/sh

# Code is POSIX compliant


currentDate="$(date -R)"


counter=0

for word in $currentDate
do

# We ignore the day of...
2,000
Posted By RudiC
Welcome. The first thing I would try...
Welcome.



The first thing I would try encountering that error message is relaunch the command without the _ and / or consult the man page. Having said that, I'm afraid that your date will...
2,000
Posted By bakunin
Everything my dear colleague RudiC said applies,...
Everything my dear colleague RudiC said applies, but also, just to show you that posting your stuff is a rewarding activity:



Under NO circumstances you should use backticks any more! If you...
2,000
Posted By rdrtx1
check LOCALE value for cal format, try: ...
check LOCALE value for cal format, try:

date=$(date +"%d %m %Y")
#date="8 2 2019"

echo $date | read tday x

past_days="3,4,5"
max_past_day="${past_days##*,}"

echo "$date" | awk '
{
...
Showing results 1 to 5 of 5

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