Visit The New, Modern Unix Linux Community

Search Results

Search: Posts Made By: abhii
1,919
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...
1,919
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 |...
1,504
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,063
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).
12,002
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

 

Featured Tech Videos

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