1168 links
  • odea's Shaarli
  • Home
  • Login
  • RSS Feed
  • Tag cloud
  • Picture wall
  • Daily
Links per page: 20 50 100
page 1 / 1
  • rename.sh
    #!/bin/bash
    IFS=$'\n'
    ls -1 "$1"|grep "-"|cut -f2 -d"/"|cut -f1 -d"-"|uniq > list.txt
    for i in $(<list.txt)
    do
     read -p "creer "$1"/"$i" ?" RESPONSE
     if [ "$RESPONSE" = "o" ];then
      echo "---->mkdir "$1/$i" puis mv "$1/$i"-* "$1/$i/""
      mkdir "$1/$i"
      mv "$1/$i"-* "$1/$i/"
     fi
    done
    Thu 24 Oct 2013 07:31:39 PM CEST - permalink -
    - - https://odea.fr/?2GRgBQ
    bash
Links per page: 20 50 100
page 1 / 1
Shaarli - The personal, minimalist, super-fast, no-database delicious clone by the Shaarli community - Help/documentation