Difference between revisions of "Talk:Console Command Examples"
From Free Knowledge Base- The DUCK Project: information for everyone
(Created page with "== testing case conversion == for f in *; do temp="${f}_temp"; mv -- "$f" "$temp"; done && for f in *_temp; do mv -- "$f" "${f%_temp}"; done for f in *; do mv -- "$f" "$(ec...") |
(No difference)
|
Latest revision as of 13:52, 20 July 2024
testing case conversion
for f in *; do temp="${f}_temp"; mv -- "$f" "$temp"; done && for f in *_temp; do mv -- "$f" "${f%_temp}"; done for f in *; do mv -- "$f" "$(echo "$f" | tr '[:upper:]' '[:lower:]' | sed 's/ /_/g')"; done && for f in *_temp; do mv -- "$f" "${f%_temp}"; done for f in *; do temp="${f}_temp"; mv -- "$f" "$temp"; done && for f in *_temp; do mv -- "$f" "$(echo "${f%_temp}" | tr '[:upper:]' '[:lower:]')"; done