Skip to main content
deleted 76 characters in body
Source Link
Matt
  • 11
  • 2

it does notthis work :-() I tried this:thank you

#!/bin/bash
echo "Append"Folder Name Append File Count"
echo "v.1.0"
mv $1 $1$(ls | wc -l)

it gives me:


​Append Filecd Count"$1"
v.1.0
usage: mv [-ffilecount=$(find |. -itype |f -n] [-v] source target
       mvnot [-f |path -i"*/\.*" | -n]wc [-v] sourcel)

mv ..."$1" directory"$1$filecount"

it does not :-( I tried this:

#!/bin/bash
echo "Append File Count"
echo "v.1.0"
mv $1 $1$(ls | wc -l)

it gives me:


​Append File Count
v.1.0
usage: mv [-f | -i | -n] [-v] source target
       mv [-f | -i | -n] [-v] source ... directory

this work :-) thank you

#!/bin/bash
echo "Folder Name Append File Count"
echo "v.1.0"

cd "$1"

filecount=$(find . -type f -not -path "*/\.*" | wc -l)

mv "$1" "$1$filecount"
Source Link
Matt
  • 11
  • 2

it does not :-( I tried this:

#!/bin/bash
echo "Append File Count"
echo "v.1.0"
mv $1 $1$(ls | wc -l)

it gives me:


​Append File Count
v.1.0
usage: mv [-f | -i | -n] [-v] source target
       mv [-f | -i | -n] [-v] source ... directory