Bobinas P4G
  • Login
  • Public

    • Public
    • Groups
    • Popular
    • People

chatgpt query: "write a bash command to rename some files that have the format 2022090[number]-[different name for each file] to 2022090[number]-MAS-[different name for each file]." chatgpt answer: "[..] for archivo in 2022090*-*; do nuevo_nombre=$(echo $archivo | sed 's/-/MAS-/'); mv "$archivo" "$nuevo_nombre"; done [..]"

Download link

Notices where this attachment appears

  1. jartigag (jartigag@mastodon.social)'s status on Tuesday, 17-Oct-2023 20:06:04 UTC jartigag jartigag
    in reply to

    it takes aproximately the same time to ask #chatgpt for the task than to figure out how to do it yourself using #unix utils (and some experience)

    In conversation Tuesday, 17-Oct-2023 20:06:04 UTC from mastodon.social permalink
  • Help
  • About
  • FAQ
  • Privacy
  • Source
  • Version
  • Contact

Bobinas P4G is a social network. It runs on GNU social, version 2.0.1-beta0, available under the GNU Affero General Public License.

Creative Commons Attribution 3.0 All Bobinas P4G content and data are available under the Creative Commons Attribution 3.0 license.