Search Results

Search: Posts Made By: roche.j.mike
2,062
Posted By ctsgnb
For sure there are some more elegant way to do it...
For sure there are some more elegant way to do it but it should do the work
#!/bin/ksh
SOURCEDIR=...
DESTDIR=...
for i in $(seq 1 999 | xargs printf "%03d\n")
do
...
2,062
Posted By Peasant
Best guess would be to use find for this, and...
Best guess would be to use find for this, and matching regex.

Something like :

find $FINDDIR -name 'CC10-1234P1[01][0-5][0-5].WGS84.p190' -type f | xargs cp -t $DESTDIR
2,668
Posted By yinyuemi
try: echo **/* |xargs -n1 |while read line ...
try:
echo **/* |xargs -n1 |while read line
do
filenum=`echo $line |grep -Po '([0-9]){3}(?=\.\D)'`
if [ $filenum -ge 5 ] && [ $filenum -le 155 ]
then
mv $line new_directory
fi
done
Showing results 1 to 3 of 3

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