Created
November 14, 2018 06:21
-
-
Save soreana/248c9105a4561aedac9afee730e31334 to your computer and use it in GitHub Desktop.
This file contains hidden or 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 | |
# Copyright 2018 Sina Kashipazha ([email protected]) | |
# | |
# Licensed under the Apache License, Version 2.0 (the "License"); | |
# you may not use this file except in compliance with the License. | |
# You may obtain a copy of the License at | |
# | |
# http://www.apache.org/licenses/LICENSE-2.0 | |
# | |
# Unless required by applicable law or agreed to in writing, software | |
# distributed under the License is distributed on an "AS IS" BASIS, | |
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | |
# See the License for the specific language governing permissions and | |
# limitations under the License. | |
# Manual : | |
# Make this this script executable by chmod +x mscp.sh and run it with ./mscp.sh /path/to/file to copy them in Computer | |
# network lab hosts. | |
# My recommendation is to put this file in /usr/local/bin or /usr/local/sbin by `sudo cp ~/path/to/mscp.sh /usr/local/bin/mscp` | |
# command to globally add it for all users. | |
# P.N: Current version has a lots of limits. They will removed in upcoming versoins :) | |
for i in {1..6} | |
do | |
scp -r $2 [email protected]$i:~ | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment