Search Results

Search: Posts Made By: t17
12,858
Posted By t17
dear franklin i tried that code but it doesn't...
dear franklin i tried that code but it doesn't work please i need ur help to read the path in that code of the files :) !!!!!!!!
filecnt=0
echo "Please enter your directory:"
read x
echo "Please...
12,858
Posted By t17
thx for ur reply but what i need that i want to...
thx for ur reply but what i need that i want to enter the path of the files not directories i used that code:
filecnt=0
read x
for file in ../${x}/*_*;
do
directory=${../${x}/"$file%_*"};
if [...
12,858
Posted By t17
i try that code but i have error in line five i...
i try that code but i have error in line five i need ur help in that plz
filecnt=0
read x
for file in ../${x}/*_*;
do
directory=${../${x}/"$file%_*"};
if [ -e ../test3/${directory}/"$file"...
12,858
Posted By t17
I am reading it's my second week in Unix ...
I am reading it's my second week in Unix

---------- Post updated at 06:13 AM ---------- Previous update was at 06:01 AM ----------

thank you for your time and help
but how if i want to enter...
12,858
Posted By t17
I want to check if the file exist in his...
I want to check if the file exist in his directory or not
like :


it i don'[t want to check if the file exist in his directory no i want to check if he exist in the directory i want to copy on...
12,858
Posted By t17
but where to put them in the code ...
but where to put them in the code

filecnt=0
for FILE in *_*;
do
cp "$FILE" ../test3/"${FILE%_*}"
filecnt=$(( $filecnt + 1 ))
done
echo "$filecnt files copied"

Please use code tags. ...
12,858
Posted By t17
thanks alott it workss :) :D :D what if i want...
thanks alott it workss :) :D :D
what if i want to but if condition to check out if the file exists in the directory or not
if the file exists then check the size of the file if the size zero then...
12,858
Posted By t17
i fixed and check it and now it's runing thank...
i fixed and check it and now it's runing thank you alott :) for your help
but i need another favor from you
what if i have another file called 5_54_6532467 i want to copy with them in another...
12,858
Posted By t17
cp: cannot access 10_10*.txt error msg ...
cp: cannot access 10_10*.txt
error msg
thanks for ur reply
12,858
Posted By t17
thank you it's working now but how can i do...
thank you it's working now
but how can i do the same but if i have the files:
10_10_asdadfsdfad.txt
10_10_11_asdawqefwkjasd.txt
10_10_11_12_asdafjjhoqwd.txt
i want to put them in exist...
3,019
Posted By t17
how can i copy those files into other directories have the same name
how can i copy those files into other directories have the same name but different in the end
i have files in directory called test:
10_10_asdadfsdfad.txt
10_10_11_asdawqefwkjasd.txt...
12,858
Posted By t17
yea every file should be in his directory ...
yea every file should be in his directory

---------- Post updated at 04:28 AM ---------- Previous update was at 04:26 AM ----------

but i have already those directories i want the file to...
12,858
Posted By t17
the name of the directory should be the same as...
the name of the directory should be the same as the name of the file 10_10_11
but i haved already those directories i don't want to make directory i want to put those files into those directory i...
12,858
Posted By t17
I fix the error now and it works thanks alot ...
I fix the error now
and it works thanks alot
but what i wanna do that i have already those directories
and i just want to take those files and put it in those directories that i have the...
12,858
Posted By t17
mkdir: illegal option -- f mkdir: usage: mkdir...
mkdir: illegal option -- f
mkdir: usage: mkdir [-m mode] [-p] dirname ...
cp: cannot create ../test2/10_10/: Not a directory
mkdir: illegal option -- f
mkdir: usage: mkdir [-m mode] [-p] dirname...
12,858
Posted By t17
thanks for ur help I need your help as fast as...
thanks for ur help
I need your help as fast as possible so please reply me
12,858
Posted By t17
sorry but it didn't work :S ---------- Post...
sorry but it didn't work :S

---------- Post updated at 04:18 AM ---------- Previous update was at 04:18 AM ----------

thanks for you reply and help

---------- Post updated at 04:22 AM...
2,657
Posted By t17
how can i copy a list of files with different names into others directory have the same name
dear all.

how can i copy a list of files with different names into others directory have the same name
like i have 3 files
10_10
10_10_11
10_10_11_12
and i have 3 directories
10_10...
12,858
Posted By t17
How can i copy a list of files with different names into others directory have the same name?
dear all.

how can i copy a list of files with different names into others directory have the same name
like i have 3 files
10_10
10_10_11
10_10_11_12
and i have 3 directories
10_10...
Showing results 1 to 19 of 19

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