How can I add find exec command into bashrc?
Clash Royale CLAN TAG#URR8PPP
up vote
1
down vote
favorite
find . -name "*.mov" -exec bash -c 'ffmpeg -i "" -c:v libx264 -crf 20 -pix_fmt yuv420p "$0/.mov.mp4"' ;
Above command works perfectly when I run it manually but I could not put it within a function in the .bashrc
file. Receiving unexpected end of line
error.
bash find bashrc function exec
New contributor
add a comment |Â
up vote
1
down vote
favorite
find . -name "*.mov" -exec bash -c 'ffmpeg -i "" -c:v libx264 -crf 20 -pix_fmt yuv420p "$0/.mov.mp4"' ;
Above command works perfectly when I run it manually but I could not put it within a function in the .bashrc
file. Receiving unexpected end of line
error.
bash find bashrc function exec
New contributor
add a comment |Â
up vote
1
down vote
favorite
up vote
1
down vote
favorite
find . -name "*.mov" -exec bash -c 'ffmpeg -i "" -c:v libx264 -crf 20 -pix_fmt yuv420p "$0/.mov.mp4"' ;
Above command works perfectly when I run it manually but I could not put it within a function in the .bashrc
file. Receiving unexpected end of line
error.
bash find bashrc function exec
New contributor
find . -name "*.mov" -exec bash -c 'ffmpeg -i "" -c:v libx264 -crf 20 -pix_fmt yuv420p "$0/.mov.mp4"' ;
Above command works perfectly when I run it manually but I could not put it within a function in the .bashrc
file. Receiving unexpected end of line
error.
bash find bashrc function exec
bash find bashrc function exec
New contributor
New contributor
New contributor
asked 4 mins ago
bisherbas
106
106
New contributor
New contributor
add a comment |Â
add a comment |Â
active
oldest
votes
active
oldest
votes
active
oldest
votes
active
oldest
votes
active
oldest
votes
bisherbas is a new contributor. Be nice, and check out our Code of Conduct.
Â
draft saved
draft discarded
bisherbas is a new contributor. Be nice, and check out our Code of Conduct.
bisherbas is a new contributor. Be nice, and check out our Code of Conduct.
bisherbas is a new contributor. Be nice, and check out our Code of Conduct.
Â
draft saved
draft discarded
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f475210%2fhow-can-i-add-find-exec-command-into-bashrc%23new-answer', 'question_page');
);
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password