Search Results

Search: Posts Made By: SK123
Forum: Solaris 03-27-2018
13,399
Posted By SK123
there was a failure in this script: ...
there was a failure in this script:

bash-3.2$ ./isWed.sh 20180328
2018/03/28
awk: syntax error near line 1
awk: bailing out near line 1
./isWed.sh: line 31: [: -eq: unary operator expected
no...
Forum: Solaris 03-27-2018
13,399
Posted By SK123
Any format is OK, because I need to find out the...
Any format is OK, because I need to find out the day after that. I am only worried about getting the day (For example: Wednesday) from the string (YYYYMMDD) I am passing.
1,948
Posted By SK123
Convert string (YYYYMMDD) format to date in Sun OS
Hi All

I need help in converting a string of YYYYMMDD format to date in Sun OS and then find out if the day is a Wednesday or not. The "date -d" option is not working and your help is much...
Forum: Solaris 03-27-2018
13,399
Posted By SK123
Convert string (YYYYMMDD) format to date in Sun OS
Hi All

I need help in converting a string of YYYYMMDD format to date in Sun OS and then find out if the day is a Wednesday or not. The "date -d" option is not working and your help is much...
1,285
Posted By SK123
Hi I had tried this, but I think the code...
Hi

I had tried this, but I think the code is reading the string after the first occurrence of "_" as the basis to identify the date. However if few of my files has the naming convention of...
1,285
Posted By SK123
Thanks a lot for your reply. I will try this.
Thanks a lot for your reply. I will try this.
1,285
Posted By SK123
May be I am not phrasing my words correctly here....
May be I am not phrasing my words correctly here. I will have bunch of files with various versions of each file. For example, my list may contain:
abcdefgh_20180102.csv
abcdefgh_20180120.csv...
1,285
Posted By SK123
The first few characters of the file name can...
The first few characters of the file name can vary. Few file names can have 8 letters and others may have 80 letters.

However it is the last 8 characters representing the date (before .csv) and...
1,285
Posted By SK123
Shell program question with Filenames and dates
Hi Unix Gurus

Let's say I have the input files like the following. I need to pick the files based on my run date.

abcd_20180206.csv
abcd_20180213.csv
abcd_20180220.csv
abcd_20180227.csv...
Showing results 1 to 9 of 9

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