Search Results

Search: Posts Made By: Maxwill
894
Posted By Maxwill
Hi, yes i have bulid this VAR=`find...
Hi,

yes i have bulid this


VAR=`find . -name *.pdf -print`
for file in $VAR;
do
fname=`basename $file`
prefix=${fname%_*}
mkdir -p ./$prefix
mv $file ./$prefix/
done


...
894
Posted By Maxwill
Find all pdf an get make a folder from filename substring
Hi ,

i need your advice.

i will find all *.pdf files and make a folder for every different prefix of file names.

for example:

test_21424234.pdf
new_242342.pdf

at the and i will that i...
Showing results 1 to 2 of 2

 
All times are GMT -4. The time now is 10:49 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy