Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8169793
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 6, 20262026-06-06T20:57:33+00:00 2026-06-06T20:57:33+00:00

But, the program do not recognize the for instruction and generates only one output,

  • 0

But, the program do not recognize the for instruction and generates only one output, corresponding to the first program. Neither the echo instructions.
What is the problem? I am working on MacOS X 10.6.8 and i tried execute on Terminal and X11, and isn´t chmod problem…

#The code for count perl execution time, for each archive in Prueba Folder. 

#!/bin/bash

FILES= ~/Desktop/ncRNA/Prueba/*

for f in $FILES
do
START =$(date +%s)
echo "Processing $f file..."
perl $f
END =$(date +%s)
DIFF=$(( $END - $START ))
echo "It took $DIFF seconds"
date
echo "It was completed"

done

exit

The output:

¿Cual fue el tiempo de caida libre?
42
Si el tiempo de caida libre fue de : 42 segundos, entonces
La velocidad en caida libre fue de 412.02 m/s^2
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-06T20:57:35+00:00Added an answer on June 6, 2026 at 8:57 pm

    The problem is that you have space character before and after the equal sign. Omit any spaces before and after the equal sign when you set a variable.

    Also put double quotes around the variables which may contains spaces or reserved characters. –> "$f" instead of $f

    #!/bin/bash
    FILES=~/Desktop/dossiereee/*
    for f in $FILES
    do
        START=$(date +%s)
        echo "Processing $f file..."
        perl "$f"
        END=$(date +%s)
        DIFF=$(( $END - $START ))
        echo "It took $DIFF seconds"
        echo "It was completed"
    done
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

My program compiles fine, but crashes everytime throw (not inside of a try...catch block)
We have a program with a main() that parses certain CLPs but does not
I tried prepared statement in my program, but not working. The part commented is
I'm compiling a program on my 64bit machine, but I'm not sure if it
Hi i've got here a simple program, but it's not working properly. When i
I was going to use the program called Tiled , but decided not to
I've been able to find similar, but not identical questions to this one. How
I need the program that can be recognize the largest value in text. First
I am trying to get the program to recognize if an int is not
So I usually run my programs through Eclipse but I'm not allowed to use

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.