Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in
Celebration

Earn badges and make progress

You're on your way to the next level! Join the Kudos program to earn points and save your progress.

Deleted user Avatar
Deleted user

Level 1: Seed

25 / 150 points

Next: Root

Avatar

1 badge earned

Collect

Participate in fun challenges

Challenges come and go, but your rewards stay with you. Do more to earn more!

Challenges
Coins

Gift kudos to your peers

What goes around comes around! Share the love by gifting kudos to your peers.

Recognition
Ribbon

Rise up in the ranks

Keep earning points to reach the top of the leaderboard. It resets every quarter so you always have a chance!

Leaderboard

Listar pastas e excluir as antigas (powershell and bash) / List folders and delete old ones (powers

Edited

Bom dia, 

Listar todas as pastas nome, data e hora

caminho c:\bamboo\

c:\bamboo\nome_a 2021-12-01 12-31
c:\bamboo\nome_a 2021-12-02 12-33
c:\bamboo\nome_a 2021-12-03 13-31
c:\bamboo\nome_a 2021-12-04 21-00
c:\bamboo\nome_a 2021-12-05 22-00
c:\bamboo\nome_b 2021-11-27 15-02
c:\bamboo\nome_b 2021-11-28 08-00
c:\bamboo\nome_b 2021-11-29 08-05
c:\bamboo\nome_b 2021-11-30 09-10

Excluir apenas as mais antigas e deixar apenas 3 últimas deixando as demais

c:\bamboo\nome_a 2021-12-01 12-31 <= excluir
c:\bamboo\nome_a 2021-12-02 12-33 <= excluir
c:\bamboo\nome_a 2021-12-03 13-31
c:\bamboo\nome_a 2021-12-04 21-00
c:\bamboo\nome_a 2021-12-05 22-00
c:\bamboo\nome_b 2021-11-27 15-02 <= excluir
c:\bamboo\nome_b 2021-11-28 08-00
c:\bamboo\nome_b 2021-11-29 08-05
c:\bamboo\nome_b 2021-11-30 09-10


Obrigado pelo auxílio ;)

Good morning,

List all name, date and time folders

path c:\bamboo\

c:\bamboo\nome_a 2021-12-01 12-31
c:\bamboo\nome_a 2021-12-02 12-33
c:\bamboo\nome_a 2021-12-03 13-31
c:\bamboo\nome_a 2021-12-04 21-00
c:\bamboo\nome_a 2021-12-05 22-00
c:\bamboo\nome_b 2021-11-27 15-02
c:\bamboo\nome_b 2021-11-28 08-00
c:\bamboo\nome_b 2021-11-29 08-05
c:\bamboo\nome_b 2021-11-30 09-10

Delete only the oldest and leave only the last 3 leaving the others

c:\bamboo\nome_a 2021-12-01 12-31 <= delete
c:\bamboo\nome_a 2021-12-02 12-33 <= delete
c:\bamboo\nome_a 2021-12-03 13-31
c:\bamboo\nome_a 2021-12-04 21-00
c:\bamboo\nome_a 2021-12-05 22-00
c:\bamboo\nome_b 2021-11-27 15-02 <= delete
c:\bamboo\nome_b 2021-11-28 08-00
c:\bamboo\nome_b 2021-11-29 08-05
c:\bamboo\nome_b 2021-11-30 09-10

thanks for the help

0 answers

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events