Search Results

Search: Posts Made By: ZerO13
1,058
Posted By ZerO13
How i can add via preg replace dot after numbers ?
So lets say i have file my_birthday.402.zip ho it can became my_birthday.4.0.2.zip

Thank you :)
4,881
Posted By ZerO13
How can i move folders and its content if folder is older than 1,5 days and keep subdirs in bash?
Hello all,
do you know any way i can i move folders and its content if folder is older than 1,5 days in bash?

I tried:
find /home/xyz/DATA/* -type d -ctime +1.5 -exec mv "{}"...
872
Posted By ZerO13
its ubuntu 16 :)
its ubuntu 16 :)
872
Posted By ZerO13
How can i sort this listing in PYTHON by folder creation?
Is there anything i can do about this code? I need to sort it by folder creation, the newest will be first ... thx :)

for dirname in postme:

dirname =...
10,647
Posted By ZerO13
i just said none worked THE WAY i wanted, i did...
i just said none worked THE WAY i wanted, i did not said "it does not work" :)

so all being said, all post above this just do not reproduce following output -> SORT BY DATE CREATION what more to...
10,647
Posted By ZerO13
sorry :) i tested all above i am not...
sorry :)

i tested all above i am not ignoring the posts above, i thanked for all the posts as i am tried it all, but none worked the way, i want, sort it by latest created dirs by the loop script...
10,647
Posted By ZerO13
i really need to implement it into the code, also...
i really need to implement it into the code, also it should sort it by make/create folder date, newest on top, not by updated folders


#!/bin/bash
for folder in /home/test/*
do
if [ -d...
10,647
Posted By ZerO13
Thats all great but how to implement it into this...
Thats all great but how to implement it into this bash script??


#!/bin/bash
for folder in /home/test/*
do
if [ -d "${folder}" ]; then
echo $folder;
fi
10,647
Posted By ZerO13
Bash directory loop and order by creation date?
Hello, how in bash i can get directory loop and order by creation date?

THX! :)

#!/bin/bash
for folder in /home/test/*
do
if [ -d "${folder}" ]; then
echo $folder;
fi
1,612
Posted By ZerO13
Bash directory loop, but only choose those folders with specific word in it
Hello, how in bash i can get directory loop, but only choose those folders with specific word in it, so it will only echo those with specific word

#!/bin/bash
for filename in /home/test/*
do
if...
3,116
Posted By ZerO13
Yes, thx so much! Now i find a way to work with...
Yes, thx so much! Now i find a way to work with that thx again! :)
3,116
Posted By ZerO13
Recursive (Into subdirectories) ffmpeg generate jpg from video
My question is how to modify my existing script to generate from videos (mp4,avi,mkv etc...) jpegs via ffmpeg and keep folder name of generated jpg file?

So if i have video in...
4,917
Posted By ZerO13
Thats it! thx :) now how can i make it that...
Thats it! thx :)

now how can i make it that it will detele from directory TEST1?

//i know i need to add rm -rf or something like that

//also only delete dirs with match "2: DIRblah" from...
4,917
Posted By ZerO13
I am after Identical directory names :)
I am after Identical directory names :)
4,917
Posted By ZerO13
Delete duplicate directories?
Is there a way via some bash script or just cmd to find duplicate directories?


i have main folders:

TEST1

TEST2


In folder TEST1 is some amount of same folders as in folder TEST2...
1,248
Posted By ZerO13
thx both :) got some help on other forum, so...
thx both :)

got some help on other forum, so this is final cmd:

find /home/test/* -type f -name '*.testfile' -printf '%h\n' | sort -u | xargs rm -rf
1,248
Posted By ZerO13
Remove directories when specific file is in directory?
Hello :)
I need little help i have following cmd:
this only able to delete files but not folder which contain that file
find /home/test/* -name "*.testfile" -type f -exec rm -i {} \;
...
Showing results 1 to 17 of 17

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