This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$sleep = 2 #Sleeptime in seconds between checks | |
$maxtry = 10 #Nr of tr | |
$successfile = "c:\temp\success.txt" | |
$failedfile = "c:\temp\fail.txt" | |
Write-Host "Waiting for deploy to complete" | |
for ($i=1; $i -le $maxtry; $i++) { | |
if (Test-Path "${successfile}") { | |
Write-Host "${successfile} found - Deploy was SUCCESSFUL!!" | |
Break | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$SRC = "c:\temp" | |
$FILES = "*.mp4", "*.jpg" | |
$DST = "c:\destfolder" | |
for ($i=0; $i -lt $FILES.length; $i++) { | |
Get-ChildItem -Recurse -Path "$SRC\$FILES[$i]" | Move-Item -Destination $DST -WhatIf | |
# Write-Host("File: ") $FILES[$i] | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
FILENAME=$1 | |
for FILENAME in "$@"; do | |
if ! [ -e "$FILENAME" ]; then | |
echo "File not found ($FILENAME). Skipping..." | |
elif [ -d "$FILENAME" ]; then | |
ORIG_IFS=$IFS | |
IFS=$(echo -en "\n\b") | |
for F in $(find "$FILENAME" -type f); do | |
ls -lah $F |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
HISTTIMEFORMAT="%Y/%m/%d %H:%M:%S " | |
HISTCONTROL="ignoredups:ignorespace" | |
HISTIGNORE="ls *:history" | |
HISTSIZE=1000 |
OlderNewer