Visit Our UNIX and Linux User Community

Search Results

Search: Posts Made By: bedtime
4,931
Posted By bedtime
For those who care, I managed to come up with...
For those who care, I managed to come up with something more efficient. This code will also output even if there is no text:
a=${#text1};b=${#text2};echo $((a*b?(a>b?100*a/b:100*b/a):0))
7,892
Posted By bedtime
I've attached the results. None of the subtitles...
I've attached the results. None of the subtitles seemed to translate properly. At least with me. I made sure to get rid of the '\r' on each .srt file with your code.


All the above files worked...
7,892
Posted By bedtime
I'm going to give it a try tomorrow when I can...
I'm going to give it a try tomorrow when I can dedicate more time to it. Thank you so much! :)


Updated:


user@localhost:~$ seq -f'(%.f)' 5
(1)
(2)
(3)
(4)
(5)With:
echo...
7,892
Posted By bedtime
You are the first to run the script. Thank you!...
You are the first to run the script. Thank you! :o


Good point. And thank you so much for looking at my script.

Here is the issue with sending Google big chucks to translate: My first program...
7,892
Posted By bedtime
It's a great program, but I prefer my program to...
It's a great program, but I prefer my program to be independent. Most people don't want to have to install a script plus another program. Many are shy of scripts to begin with. My program does it all...
7,892
Posted By bedtime
Thank you for posting that code. I tried it, but...
Thank you for posting that code. I tried it, but it didn't have any effect. The code is more complex. The program takes the output of Google Translate and sifts through a bunch of garbage to find the...
Forum: Hardware 03-29-2018
2,415
Posted By bedtime
Which desktop computer is the better deal?
I wasn't sure where to post this. Please move this as is fitting.


My 10yr old laptop's (Dell, Latitude E5530, 4G ram, 2.5Ghz x 2 CPU) spin drive has died (currently running TinyCore Linux on USB...
5,000
Posted By bedtime
I hadn't seen this post, else I'd have responded...
I hadn't seen this post, else I'd have responded sooner...

I'm not sure how to set a timer within the awk program to just time the replacing time itself, so the results will be based on the...
891
Posted By bedtime
Not sure if anyone cares, but I ran some speed...
Not sure if anyone cares, but I ran some speed tests on the code you guys helped me with:
#!/bin/sh

# Run: time ./testtime

A='center">'
B='</p>'
C='>'
D='&deg'

count=0
while [ $count...
Showing results 1 to 9 of 9

 

Featured Tech Videos

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