This post has been de-listed
It is no longer included in search results and normal feeds (front page, hot posts, subreddit posts, etc). It remains visible only via the author's post history.
So I created a function that works for 1 file or multiple with wildcards. Passing the file name(s) to mv (alias=pymv). Since it's a loop though pymv only knows of 1 file at a time so I get a bunch of (1/1) moves which unless someone knows how to pass all $1 into it I'm ok with but is it possible to get a 'echo $@' at the beginning of the mv so I know how many actions to expect and when it'll finish?
function mvt() { for i in "$@"; do mv "$i" "$temp"; done ;}
This came close but it echos right above each mv and pymv clobbers the line above it so it disappears immediately lol.
function mvt() { for i in "$@"; do echo "Moving $@ Items"; mv "$i" "$temp"; done ;}
Subreddit
Post Details
- Posted
- 5 years ago
- Reddit URL
- View post on reddit.com
- External URL
- reddit.com/r/bash/commen...