Search Results

Search: Posts Made By: abhii
5,895
Posted By Don Cragun
You haven't said what operating system or shell...
You haven't said what operating system or shell you're using (and the date utility on my operating system doesn't support the -d option), but with a recent Korn shell, you could use:
#!/bin/ksh...
5,895
Posted By RudiC
Not trying to interpret your specification but...
Not trying to interpret your specification but just guessing what you want (for date: 21.10.16 09:57) :
{ date +%Y%m%d; for d in Mon Tue Wed Thu Fri; do date +%Y%m%d -d "last $d"; done; } | sort |...
7,325
Posted By Don Cragun
This message was posted in the wrong forum. ...
This message was posted in the wrong forum. Please respond to this issue in the thread Get business days including today's date...
1,735
Posted By RudiC
Tryawk -v var=$i '1; $0 ~ var {exit}' $filename ...
Tryawk -v var=$i '1; $0 ~ var {exit}' $filename
You need to finely differentiate between what is IN the awk command, and what is outside (i.e. shell).
17,542
Posted By Ygor
To execute the block, you need to have a slash /...
To execute the block, you need to have a slash / on a line of its own, after the END; line.
Showing results 1 to 5 of 5

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