Search Results

Search: Posts Made By: meroko
1,406
Posted By meroko
Thank you for your advise but i do not understand...
Thank you for your advise but i do not understand the syntax of it ...
so i do not know how to put those statements in my script
would you mind to explain more about the statements?
many thanks!
1,406
Posted By meroko
How can I match the particular character in the string?
Hi, I want to check out a word in the text file and generate a clear report for me to see...

The text file content:
Content:
............
20120608: [TXT 120k-130k(130k), manachan]
20120608:...
2,344
Posted By meroko
Nice, Thanks itkamaraj You give me a hint to...
Nice, Thanks itkamaraj
You give me a hint to solve the problem!
My final script is to split the string again:

#!/bin/ksh -x

curr_date=`date +"%B%d%Y"`

for i in pic.*.txt
do
...
2,344
Posted By meroko
checked. The last line is July 10 2012 20:30:53 ,...
checked. The last line is July 10 2012 20:30:53 , 6405789.jpg
Do not have the empty line.
I edit something here

#!/bin/ksh -x

curr_date=`date +"%B %d %Y"`

for i in pic.*.txt
do
...
2,344
Posted By meroko
My Script: #!/bin/ksh -x ...
My Script:

#!/bin/ksh -x

curr_date=`date +"%B %d %Y"`

for i in pic.*.txt
do
corr_date=$( awk 'END { print $1, $2, $3; }' $i )
if [ "$corr_date" = "$curr_date" ]; then
...
2,344
Posted By meroko
yes, i am sure that the txt file is not empty in...
yes, i am sure that the txt file is not empty in the last line.
My expected output is
July 10 2012 is valid.

but the actual output is that " is invalid"
2,344
Posted By meroko
Yes, the corr_date's value is empty
Yes, the corr_date's value is empty
2,344
Posted By meroko
I have use debug mode already, it does not...
I have use debug mode already, it does not display anything :(
2,344
Posted By meroko
Thank for your reply but I try to run this script...
Thank for your reply but I try to run this script and discover that "corr_date" do not have any value inside.
2,344
Posted By meroko
awk sub() issue in Unix
Hi, I am new to unix shell script and I have some trouble on the awk sub

I would like to pick the Date "July 10 2012" into $corr_date by using sub() function, but it is not successful.

The...
4,306
Posted By meroko
awk sub command in Unix
Hi, I am new to unix shell script and I have some trouble on the awk sub

I would like to pick the Date "July 10 2012" into $corr_date by using sub() function, but it is not successful.

The...
Showing results 1 to 11 of 11

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