Search Results

Search: Posts Made By: Krush187
46,586
Posted By Krush187
I can't believe it was that simple Thanks again
I can't believe it was that simple Thanks again
46,586
Posted By Krush187
Thanks you are a legend!
Thanks you are a legend!
46,586
Posted By Krush187
cp: cannot stat: No such file or directory
Hi there, I need some help with cp files from one directory into several others. The code is as follows:

SUB=`ls src_directory | wc -l`

OUT_LOOP=$(($SUB / $MK_NUMS))

IN_LOOP=$(($SUB %...
4,137
Posted By Krush187
Okay ! the commands: ls directory1 | head...
Okay ! the commands:

ls directory1 | head -22 |
while read file
do
cp $file directory2
done

do almost what I want them to do except they keep sending me this error message:

cp:...
4,137
Posted By Krush187
Thanks very much. It's exactly what I was looking...
Thanks very much. It's exactly what I was looking for.
4,137
Posted By Krush187
Copying files from one directory into another.
Could someone please tell me if there is a command similar to head or tail that can be used on directories. I want to select a given number of files from a directory and copy them into another...
Showing results 1 to 6 of 6

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