LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices


Reply
  Search this Thread
Old 07-03-2015, 08:14 AM   #16
NevemTeve
Senior Member
 
Registered: Oct 2011
Location: Budapest
Distribution: Debian/GNU/Linux, AIX
Posts: 4,871
Blog Entries: 1

Rep: Reputation: 1871Reputation: 1871Reputation: 1871Reputation: 1871Reputation: 1871Reputation: 1871Reputation: 1871Reputation: 1871Reputation: 1871Reputation: 1871Reputation: 1871

Would you mind please edit your post and the [code] and [/code] tags?

Edit: Also there is a bug in the forum software that eats the very first %percentmark of the post. Workaround:

Code:
1. press [Go Advanced]
2. fix the post
3. press [Save Changes]

Last edited by NevemTeve; 07-03-2015 at 08:23 AM.
 
Old 07-03-2015, 10:09 AM   #17
TB0ne
LQ Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 26,685

Rep: Reputation: 7972Reputation: 7972Reputation: 7972Reputation: 7972Reputation: 7972Reputation: 7972Reputation: 7972Reputation: 7972Reputation: 7972Reputation: 7972Reputation: 7972
Quote:
Originally Posted by dhirendrs View Post
Thanks for your valuable input ,
I have debug with sh -xv abc.sh and found below . i have update script as per below .
Code:
#!/bin/sh

LIMIT00=2014010100

for i in hid*; do
    printf 's\n' "$i" | (
        IFS=. read UNUSED UNUSED DATUM00 UNUSED

echo $LIMIT00
echo $DATUM00

if [ "$DATUM00" -lt "$LIMIT00" ]; then
            printf 'Wow %s *is* old\n' "$i"
        else
            printf 'Wow %s is not too old\n' "$i"
        fi
    )
done
As per script it should be out put " Wow %s *is* old\n'" but it is giving wrong so please help on above .
Again, as you've been told SEVERAL TIMES NOW, you need to figure this out and show some effort of your own. All you've done is change the LIMIT00 variable, to something that won't work.

PLEASE STOP asking us to write your script for you. You've been given many hints, sample scripts, etc., and are still asking for more, yet haven't shown any effort of your own.
 
Old 07-04-2015, 01:58 AM   #18
AnanthaP
Member
 
Registered: Jul 2004
Location: Chennai, India
Posts: 952

Rep: Reputation: 217Reputation: 217Reputation: 217
Dhiren,

Since the second thread you opened on 22/jul/2010 (http://www.linuxquestions.org/questi...rement-821427/) you have been with the same example.

Why dont you spend effort to learn about your work?

OK
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Required help in cut command LittleMaster Linux - Server 9 11-23-2012 01:13 AM
Command/Script required to send an email alert in case command will not respond rajaniyer123 Linux - General 1 05-19-2012 01:12 PM
help required with the tar command bsaheb Linux - Newbie 3 11-13-2009 08:47 AM
Help required for sed command. pinga123 Linux - Newbie 1 11-06-2009 12:45 AM

LinuxQuestions.org > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 07:33 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration