mvn package
сделает архив war который кладется в директорию webapps
tomcat'aget-childitem -name '[0-9]*json' | foreach-object { $old_name = $_; write-output $old_name ; if ($old_name -match '[0-9]*.json') { $old_nam_index = [regex]::Match($old_name, '([0-9]+)\.json').captures.groups[1].value;$old_index = [Convert]::ToInt32($old_name_index) ; $new_index= $old_index + 1 ;write-output "${new_index}.json"}}}
799.json
800.json
echo $SHELL
/usr/bin/bash
help pushd
pushd: pushd [-n] [+N | -N | dir]
Add directories to stack
.pushd
то можно просто cd
tar
и подправьите аргументы:pushd $sites ;
tar -cjf /user/backup_srv/sites/sites_"$date".tar.bz2 --exclude demo.moscow-battle.ru --exclude fastdl.moscow-battle.ru --exclude-from=$filter .
popd
rclone moveto "$mvsource" "$mvdest"youtube-dl --get-url https://www.youtube.com/watch?v=VFf4r1D3qBU | sed 's|\s\s*| --input-slave |' | xargs -IX echo vlc X | tee /tmp/a$$
A=$(youtube-dl --get-url https://www.youtube.com/watch?v=VFf4r1D3qBU)
echo $A |sed 's|\r?\n||g' | awk '{print "\"",$1,"\" --input-slave \"",$2,"\"" }'
....
-BemhEb-g%3D%3D " --input-slave " https.... 3D "
line = bufferedReader.readLine();
while (!questions.isEmpty()) {
String question = questions.pop();
System.out.println(question);
String line = null;
while (line == null || line.isEmpty())
line = bufferedReader.readLine();
answer.add(line);
}