Search Results

Search: Posts Made By: SK123
Forum: Solaris 03-27-2018
14,175
Posted By vgersh99
a bit verbose, but you could start here -...
a bit verbose, but you could start here - isWed.sh:

#!/bin/bash

if [ ${#} -ne 1 ];then
echo "invalid number of arguments : ${0} YYYYMMDD"
exit 1
fi

d="${1}"
# wed from cal...
Forum: Solaris 03-27-2018
14,175
Posted By vgersh99
what is the 'date' format? Please be more...
what is the 'date' format?
Please be more specific.
Forum: Solaris 03-27-2018
14,175
Posted By wisecracker
This might be of interest or help: ...
This might be of interest or help:
https://www.unix.com/unix-for-beginners-questions-and-answers/239167-general-purpose-date-script.html
Courtesy of Corona688.
EDIT:
A little bit of googling......
1,312
Posted By RudiC
Untested ls *.csv | { while read LINE ...
Untested ls *.csv |
{ while read LINE
do GR=${LINE%_*}
DT=${LINE#${GR}_}
DT=${DT%.*}
XT=.${LINE##*.}
[ ! "$GR" = "${OGR:-$GR}" ] && { echo...
1,312
Posted By Chubler_XL
Perhaps i'm missing something in your...
Perhaps i'm missing something in your requirement, but this script will print files in the current directory for the date string passed as argument #1 (defaults to today's date if no parameters...
1,312
Posted By RudiC
With the "run date" as the first positional...
With the "run date" as the first positional parameter, and assuming you are using a not too old bourne compatible shell, try
ls *.csv | {
while IFS="_." read GR DT XT
do [ ! "$GR" =...
Showing results 1 to 6 of 6

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