Skip to main content
added 4 characters in body
Source Link
Fortsaint
  • 2.1k
  • 15
  • 17

This solution is specific to Linux

k=1; 

While[ k<100, 

       k++; [email protected]; 

      (* progress indicator *) 
       Run["echoRun[ "echo -n '" <> 
            StringRepeat["|",k] <>  
            StringRepeat["-", 100-k] <> 
            "\r'"]
     ]

but you might find a command line that overwrites previous outputs like echo -n ' \r' for other systems too.

This solution is specific to Linux

k=1; 

While[ k<100, 

       k++; [email protected]; 

      (* progress indicator *) 
       Run["echo -n '" <> 
           StringRepeat["|",k] <>  
           StringRepeat["-", 100-k] <> 
           "\r'"]
     ]

but you might find a command line that overwrites previous outputs like echo -n ' \r' for other systems too.

This solution is specific to Linux

k=1; 

While[ k<100, 

       k++; [email protected]; 

      (* progress indicator *) 
       Run[ "echo -n '" <> 
            StringRepeat["|",k] <>  
            StringRepeat["-", 100-k] <> 
            "\r'"]
     ]

but you might find a command line that overwrites previous outputs like echo -n ' \r' for other systems too.

Source Link
Fortsaint
  • 2.1k
  • 15
  • 17

This solution is specific to Linux

k=1; 

While[ k<100, 

       k++; [email protected]; 

      (* progress indicator *) 
       Run["echo -n '" <> 
           StringRepeat["|",k] <>  
           StringRepeat["-", 100-k] <> 
           "\r'"]
     ]

but you might find a command line that overwrites previous outputs like echo -n ' \r' for other systems too.