Search Results

Search: Posts Made By: steve matthews
Forum: Web Development 07-30-2015
1,946
Posted By steve matthews
White labelling
I am looking to whitelist a corporate financial website to brokers who can re-sell our products.

A commonly cited approach is to clone the codebase and sub-domain it for each client which will...
1,249
Posted By steve matthews
#!/bin/bash ssh-keygen # generate keys, if...
#!/bin/bash

ssh-keygen # generate keys, if not already created

user=root
while read ip
do
ssh-copy-id -i ~/.ssh/id_rsa.pub $user@$ip >/dev/null 2>&1
[[ $? -ne 0 ]] && echo 'Error:...
9,337
Posted By steve matthews
copying unseen files
Why not simply check the dest folder .....
SRC=/user/nick/.phonesync/photos-backup
DST=/user/nick/.phonesync/photos-new

for f in $SRC/*
do
test -x $DST/$f
if [[ $? -ne 0 ]]; then
cp...
2,029
Posted By steve matthews
Hi There, Run these in your folder ..... ...
Hi There,

Run these in your folder .....


mkdir destFolder
cp $(grep -ilr keyword *) destFolder



regards,

Steven M
2,977
Posted By steve matthews
You could try this .... mkdir destination ...
You could try this ....
mkdir destination

for x in /yourfolder/{5000..1000000}*.pdf;

if ! test -e "$x"
then
echo "$x" does not exist
continue;
fi

do cp $x destination;
done;...
2,977
Posted By steve matthews
HI Tim, Yes, I forgot the file extension ......
HI Tim,

Yes, I forgot the file extension ...

The 1000000 simply represents an upper maximum value.

Does the script actually work ?

Steven M
2,977
Posted By steve matthews
Create a bash script like this ... ...
Create a bash script like this ...



mkdir destination

for x in /yourfolder/{5000..1000000};
do cp $x destination;
done;

zip destination;



Hope this helps ...
Showing results 1 to 7 of 7

 
All times are GMT -4. The time now is 03:00 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy