0
votes
0answers
7 views

Move all files in directory to date-time based structure [duplicate]

I am hoping someone here can help me with (hopefully) a simple task... I have a folder (/img/) with thousands of pictures in, and I need to move them into a date-time based folder structure based on ...
0
votes
2answers
26 views

How to run “time” on a function in zsh

This works: time ls -l This does not work f() { ls -l } time f No time output is printed in the second case. Why?
0
votes
2answers
620 views

Print current time (with milliseconds)

I want this command in windows with cygwin installed, so any Linux command will work for me.
0
votes
1answer
559 views

add milliseconds to existing unix time

I have a script that returns unix time in seconds. i.e. 1374521719. I'd like to take in this time and place milliseconds to that. Other posts show a simple example of of this with current time: echo ...
7
votes
3answers
952 views

Bash Run command for certain time?

I am making bash script for my use. How can i run a command for certain time, like 20 second and terminate command? I tried a lot of solutions but nothing works, I also tried timeout command with no ...
1
vote
2answers
615 views

Prefix time to each line of bash command output

I am running the top command to see details about specific processes. The output is piped to grep like so: top -n 1 | grep jre The output is usually around 4 lines, and I would like to prefix the ...
2
votes
2answers
245 views

Measure execution time of command I just executed without interrupting it now

Usually I measure execution times with time updater Unfortunately I already started the updater and do not want to interrupt it because this would cause other trouble. How can I still see tomorrow ...
3
votes
1answer
318 views

Using time to get CPU usage of a process, but not its children

When using time some_executable - the system and user CPU time returned actually includes all the CPU time of any child processes launched by the named executable (this was news to me, actually). I ...
0
votes
1answer
1k views

sh: time command not found

In llvm 3.0 test-suite, the snippet of code bellow gives the following error on bash: sh: time command not found if [ "x$RHOST" = x ] ; then ( sh -c "$ULIMITCMD $TIMEIT -p sh -c '$COMMAND ...
1
vote
0answers
98 views

script -e and crontab or at

I have a shellscript I want to run via at and use script to capture a transcript. script -e was introduced in util-linux-ng 2.18 and returns the retval of the child process. I want to capture the ...
2
votes
3answers
360 views

Where does `time` output its result?

I'm on Ubuntu. Running time seems to output its result to something other than STDOUT or STDERR. Here's why I think so: [siminm@amide ~]$ time echo hi hi real 0m0.000s user 0m0.000s sys ...
2
votes
2answers
1k views

Bash: number of seconds till midnight of current day

How do I find the number of seconds till midnight of current day?
6
votes
1answer
454 views

REPORTTIME for Bash

Zsh has an ingenious feature that automatically prints timing statistics for commands taking longer than $REPORTTIME to execute. Think of it as automatically executing a pipeline through time as ...
4
votes
1answer
1k views

How can I give arguments to time command (ubuntu)

I want to get a bit more information than the standard time command gives, so I want to pass the verbose flag. info time gives as example time -v sleep 4, however when I execute that (both in bash or ...
7
votes
2answers
3k views

Is it possible to set wget to show the transfer times in milliseconds?

Generally, wget shows transfer times in seconds. Is there a way I can to make it show the time in milliseconds?