Search Results

Search: Posts Made By: alpha_mouse
8,008
Posted By alpha_mouse
If I wanted to run the script so many times that...
If I wanted to run the script so many times that I just would have ended up with 0001 yes I would have just RM * except the first one yes. But That is obvious not the reason why I am posting this. I...
8,008
Posted By alpha_mouse
I want to delete every other / second file in a...
I want to delete every other / second file in a directory.

As there are 10.000+ file in this dir, I don't want to do this manually?
8,008
Posted By alpha_mouse
Shell input to remove every second file in a directory
Hey guys,

I am looking for simple shell script, so i can remove every second file in a directory.

For example in any given directory there are 10.000 files:

0001.jpg
0002.jpg
0003.jpg...
7,727
Posted By alpha_mouse
ok! :)
ok! :)
2,251
Posted By alpha_mouse
Does the screen also looks reversed when you...
Does the screen also looks reversed when you start the computer? (Before you go into GUI)

---------- Post updated at 09:05 AM ---------- Previous update was at 08:54 AM ----------

See this:...
7,727
Posted By alpha_mouse
But having that said, isn't some of the code...
But having that said, isn't some of the code double?
7,727
Posted By alpha_mouse
Of course... :) So how does AWK knows the...
Of course... :)

So how does AWK knows the minutes then. as we have 6,7,8,9 are also used?
7,727
Posted By alpha_mouse
Pff so I just forgot a couple of """""'''''"'''...
Pff so I just forgot a couple of """""'''''"''' '' ' ' '


Damn... but it works now!!

Thank you so much!

---------- Post updated 07-09-12 at 01:28 AM ---------- Previous update was 07-08-12...
7,727
Posted By alpha_mouse
How about this: find . -type f -print0 | xargs...
How about this:
find . -type f -print0 | xargs -0 stat -f "%Sm %N" -t "%H:%M" | awk '/^(09:|1[0123456]:|17:[012]|17:30)/ { print $2 }'

---------- Post updated at 11:30 AM ---------- Previous...
7,727
Posted By alpha_mouse
Would this work? find . -type f -print0 |...
Would this work?

find . -type f -print0 | xargs -0 stat -c "%y %n" | awk -F"[ :]" $2>=9&&$2<17||$2==17&&$3<=30{print $6}

---------- Post updated at 09:53 AM ---------- Previous update was at...
7,727
Posted By alpha_mouse
stat: illegal option -- c usage: stat...
stat: illegal option -- c
usage: stat [-FlLnqrsx] [-f format] [-t timefmt] [file ...]

Nope.
7,727
Posted By alpha_mouse
hehe... terminal when to an infinite loop of stat...
hehe... terminal when to an infinite loop of stat awk
7,727
Posted By alpha_mouse
... Pauls-Mac-mini:NEED TO DOWNLOAD...
...


Pauls-Mac-mini:NEED TO DOWNLOAD mmtimelapse$ stat -c "%y %n" * | head
-bash: /usr/bin/stat: Argument list too long

aaaaah

---------- Post updated at 09:40 AM ---------- Previous...
7,727
Posted By alpha_mouse
Okay That makes sense yes :) But shouldn't I...
Okay That makes sense yes :)

But shouldn't I define a time for AWK:confused:
7,727
Posted By alpha_mouse
I forget to mention: I am running a Mac os X...
I forget to mention:

I am running a Mac os X machine with Debian Linux. Don't think the -c command is working?
7,727
Posted By alpha_mouse
aah :) Can you explain what is happening...
aah :)

Can you explain what is happening here?
7,727
Posted By alpha_mouse
Nope. File name is sequential...
Nope. File name is sequential 1,2,3,4....68151.jpg

Only time is the time stamp.

Thanks.
7,727
Posted By alpha_mouse
cp | greb
Hi guys,

First of all thanks for reading this and the already provided information! I was reading about a post that was created a couple of years back:
...
Showing results 1 to 18 of 18

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