Search Results

Search: Posts Made By: Immelstorn
2,559
Posted By Immelstorn
Yes, I just realized that two. Seems that...
Yes, I just realized that two. Seems that creating the scripts in Windows and then export them to the Unix environment is not the best idea.

Created the script in emacs and the <CR> chars...
2,559
Posted By Immelstorn
Using echo $N|od -tx1 (if using code similar to...
Using echo $N|od -tx1 (if using code similar to the first one I posted) does not work. However using echo $N2|od -tx1 gives the following output

0000000 41 32 30 32 30 31 32 31 31 30 36 0d 0d 30...
2,559
Posted By Immelstorn
That did not work. Just got a bunch of numbers as...
That did not work. Just got a bunch of numbers as output.
2,559
Posted By Immelstorn
%Y works. However using N2=${N}01.DC still...
%Y works.

However using N2=${N}01.DC still gives me the following result: 01.DC1105

---------- Post updated at 04:58 PM ---------- Previous update was at 04:56 PM ----------



That worked...
2,559
Posted By Immelstorn
When add both scripts in a file, test.ksh, I...
When add both scripts in a file, test.ksh, I still get the same issue, i.e. get the following output 01.DC1105

However when I run them directly in the terminal I get the wanted result. Sadly I...
2,559
Posted By Immelstorn
Get file name which include the current date
Hi,

I'm trying to get the name of a file that has the current date in the name.

The filename is on the form A<current date>01.DC, for example A2012110501.DC


I have this script so far
...
Showing results 1 to 6 of 6

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