#!/bin/bash
FILES=/home/john/something/*
for f in $FILES
do
replaceit --input=$f "ko" "ar_ko"
done
* nepieciešams uzinstalēt replaceit pakotni
#!/bin/bash
FILES=/home/john/something/*
for f in $FILES
do
replaceit --input=$f "ko" "ar_ko"
done
* nepieciešams uzinstalēt replaceit pakotni
#!/bin/bash
USERNAME="lietotajvards"
PASSWORD="parole"
SERVER="mansserveris.lv"
MYFILES="/home/user/myfiles"
ARH="/home/user/temp"
DOW=$(date +"%A")
tar cpPzf $ARH/myfiles.tgz $MYFILES
echo "myfiles ok"
lftp -u $USERNAME,$PASSWORD -e "cd /$DOW; mput $ARH/*; quit" $SERVER
rm $ARH/*
* nepieciešams uzinstalēt lftp pakotni