naheel-azawy / cp-p Goto Github PK
View Code? Open in Web Editor NEWThis project forked from ericpaulbishop/cp_p
cp (and mv), with progress
License: GNU General Public License v3.0
This project forked from ericpaulbishop/cp_p
cp (and mv), with progress
License: GNU General Public License v3.0
Calculating size...Copying...awk: line 43: function systime never defined
awk: line 43: function systime never defined
awk: line 43: function systime never defined
Done copying
it din't copy anything ,
!cp-p "/content/drive/MyDrive/g/ELDEN RING [FitGirl Repack].zip" /content/drive/MyDrive/t
the CMD i used in colab
My goal is to create multiple copies of a single directory in lf
.
My paste
command look like this (taken from readme with one echo
added):
# pasting done right
cmd paste ${{
send="while read -r line; do lf -remote \"send $id echo \$line\"; done && lf -remote 'send reload'"
load=$(lf -remote 'load')
mode=$(echo "$load" | sed -n '1p')
list=$(echo "$load" | sed '1d')
s='' && [ ! -w . ] && s='sudo'
case "$mode" in
copy) cmd='cp-p';; move) cmd='mv-p';;
esac
cmd="$cmd --new-line"
for f in $list; do
$s sh -c "$cmd --backup=numbered \"$f\" . | $send &"
echo "$cmd --backup=numbered \"$f\" . | $send &"
done
lf -remote 'send load'
lf -remote 'send clear'
}}
My directory structure look like this:
test-dir/
- file1
- file2
My aim is to have this structure:
test-dir/
- file1
- file2
test-dir-copy1/
- file1
- file2
test-dir-copy2/
- file1
- file2
But what I get is this:
test-dir/
- file1
- file2
test-dir-new/
- test-dir/
- file1
- file2
- file1
- file2
Steps to replicate:
lf
test-dir
y
p
lf
(press q
)These is the exact output I get:
~/cp-p-test $ lf
cp-p --new-line --backup=numbered "/home/mik/cp-p-test/test-dir" . | while read -r line; do lf -remote "send 1000 echo $line"; done && lf -remote 'send reload' &
~/cp-p-test $ ls -R .
.:
test-dir/ test-dir-new/
./test-dir:
file1 file2
./test-dir-new:
file1 file2
~/cp-p-test $ lf
cp-p --new-line --backup=numbered "/home/mik/cp-p-test/test-dir" . | while read -r line; do lf -remote "send 1000 echo $line"; done && lf -remote 'send reload' &
~/cp-p-test $ ls -R .
.:
test-dir/ test-dir-new/
./test-dir:
file1 file2
./test-dir-new:
file1 file2 test-dir/
./test-dir-new/test-dir:
file1 file2
~/cp-p-test $
It seems like the determining of a new directory name is producing the same name (even if it already exists) and then proceeds to paste inside it.
Not sure why, but I suspect something has changed in the coreutils?
Might check it out later
So this is the line that I have in lfrc
cmd paste $cp-p --lf-paste $id
when I try to paste something it gives me this error in my terminal:
sh: 1: --new-line: not found
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.