Scheduled Maintenance: We are aware of an issue with Google, AOL, and Yahoo services as email providers which are blocking new registrations. We are trying to fix the issue and we have several internal and external support tickets in process to resolve the issue. Please see: viewtopic.php?t=158230

 

 

 

bash script to perform an action

Programming languages, Coding, Executables, Package Creation, and Scripting.
Post Reply
Message
Author
User avatar
PsySc0rpi0n
Posts: 322
Joined: 2012-10-24 13:54
Location: Bitcoin World
Has thanked: 8 times
Been thanked: 1 time

Re: bash script to perform an action

#16 Post by PsySc0rpi0n »

Yes, it's something like that what I did too.

And I don't have any counter limit or limit to the codes in my file. I just load all the lines into a variable in memory and count how many lines were loaded and work with that counter just to control when I'm in the last register. That's all!

I thought myself that it would be harder but it wasn't after all!

Thanks
Psy

Post Reply