The output of the following command is:
$ rga --heading -l --context 3 --sort path -i -e "use cases?" -e "user stor(y|ies)" -e "Technical debt"
Stepanek G. - Software Project Secrets (The Expert's Voice in Project Management) - 2012.pdf
Strategic Project Management Made Simple Solution Tools for Leaders and Teams (Terry Schmidt) (z-lib.org).pdf
Succeeding with Agile Software Development Using Scrum.pdf
Team Topologies Organizing Business and Technology Teams for Fast Flow (Matthew Skelton Manuel Pais [Skelton etc.) (z-lib.org).epub
The Agile Samurai How Agile Masters Deliver Great Software (Jonathan Rasmusson) (z-lib.org).pdf
The Art of Agile Development - James Shore & Shane Warden.pdf
The Art of Lean Software Development a Practical and Incremental Approach (Curt Hibbs Steve Jewett Mike Sullivan) (z-lib.org).pdf
The Art of Project Management - By Scott Berkun.pdf
The Complete Software Project Manager Mastering Technology from Planning to Launch and Beyond by Anna P. Murray (z-lib.org).pdf
The Enterprise and Scrum (Ken Schwaber) (z-lib.org).pdf
The Fast Forward MBA in Project Management 3rd Edition (2008) (Portable Mba Series) (Eric Verzuh) (z-lib.org).pdf
The Making of a Manager (Julie Zhuo) (z-lib.org).pdf
The Manager’s Path A Guide for Tech Leaders Navigating Growth and Change (Camille Fournier) (z-lib.org).epub
The PMI Guide to Business Analysis (Project Management Institute) (z-lib.org).epub
The Phoenix Project.pdf
The Rational Unified Process An Introduction (Philippe Kruchten) (z-lib.org).pdf
The Scrum Field Guide Agile Advice for Your First Year and Beyond (Lacey Mitch.) (z-lib.org).pdf
The Unicorn Project A Novel about Developers, Digital Disruption, and Thriving in the Age of Data by Gene Kim (z-lib.org).epub
The rational unified process made easy a practitioners guide to the RUP (Per Kroll Philippe Kruchten) (z-lib.org).pdf
Tim_Brizard-Broken_Agile-EN.pdf
Visualizing Project Management - Models and Frameworks for Mastering Complex Systems by Kevin Forsberg, Hal Mooz, Howard Cotterman (z-lib.org).pdf
essential-scrum-a-practical-guide-to-the-most-popular-agile-process.9780137043293.57714.pdf
succeeding-with-agile-software-development-using-scrum.9780321579362.53099.pdf
I am trying to move these files to a separate directory.
The commands I tried is:
rga --heading -l --context 3 --sort path -i -e "use cases?" -e "user stor(y|ies)" -e "Technical debt" | xargs -I {} mv {} DEST
and
rga --heading -l --context 3 --sort path -i -e "use cases?" -e "user stor(y|ies)" -e "Technical debt" > files.txt
for file in $(cat files.txt); do mv "$file" DEST; done
I am getting xargs: unmatched single quote; by default quotes are special to xargs unless you use the -0 option
and
rga --heading -l --context 3 --sort path -i -e "use cases?" -e "user stor(y|ies)" -e "Technical debt" | xargs -r0 mv -t DEST
and
for file in $(cat temp.adoc); do mv "$file" "DEST/$file"; done
It says mv: cannot stat '''Stepanek ...
rga
? Is it an alias forripgrep
? If so, it should have a-0, --null
option. See for example How to individually process each path from a list of paths output from ripgrep – steeldriver Mar 02 '23 at 18:11--null
option. – Ahmad Ismail Mar 02 '23 at 18:12bash
). – Pierre ALBARÈDE Mar 02 '23 at 18:21rga
. (For example use white-space-mode in Emacs). This output may need some transformations in order to fit inxargs
input. – Pierre ALBARÈDE Mar 02 '23 at 18:25