Tag Info

New answers tagged

0

Using this answer on StackOverflow to use make itself to calculate all the available targets and merging this into the Debian example script as shown in the other answer here and then adding some more, this yields: alias complete_make_target_filter 'awk -F: '"'"'/^[a-zA-Z0-9][^\$#\/\t=]*:([^=]|$)/ {split($1,A,/ /);for(i in A)print A[i]}'"'" complete make \ ...


1

Or you could really make it simple. Use basename, part of coreutils. cd ParentFolder && for i in ./*.txt do d=$(basename "$i" .txt) mkdir "$d" && mv "$i" "$d" done



Top 50 recent answers are included