Search Results

Search: Posts Made By: AeroEngy
3,347
Posted By AeroEngy
Here is what I got to finally work (almost). ...
Here is what I got to finally work (almost).

while read -r $oldname $newname; do
cp /path/$oldname /path/$newname
done < /path/to/textfile.txt

The only problem I have with the code is how it...
3,347
Posted By AeroEngy
There is very little relationship between the new...
There is very little relationship between the new and old naming format. They are files reduced from hundreds of tests and it seems like every time they performed the same test they called it...
3,347
Posted By AeroEngy
I wish could tell you the exact file names but I...
I wish could tell you the exact file names but I can not do to the nature of the project. However, I can tell you the old name starts with the date in YYMMDD format then a _ followed by anywhere...
3,347
Posted By AeroEngy
I was just giving the "newfile" as an example. ...
I was just giving the "newfile" as an example. Each filename is very complex (30ish characters) and the naming scheme between the old and new file is changing completely. That is why I need a...
3,347
Posted By AeroEngy
Lots of file copyingand renaming?
I have Approx 1000 files that all need to be copied from one directory to another. However, each file has to be renamed while it is copied. I have a Tab delimited text file containing all of the...
3,415
Posted By AeroEngy
I retried you script and it works perfectly. I...
I retried you script and it works perfectly. I just slightly moddified it so that it would create the new directories in a different path so that I wouldn't have to move them all later.

Thanks...
3,415
Posted By AeroEngy
Sorry about that. Looking at your code again, I...
Sorry about that. Looking at your code again, I think I may have had a syntax error. I was getting a couple different error messages when I tired it earlier today but I can't remember them right...
3,415
Posted By AeroEngy
Ok I tried both of your suggestions and neither...
Ok I tried both of your suggestions and neither worked exactly. There were a couple of problems with
for file in `ls`
do
mkdir -p $file
mv $file $file/
done
First, it tried to make a...
3,415
Posted By AeroEngy
Mass directory creation?
I have a couple thousand data files that all have to have there own directory named exactly the same as the file name. Then the file needs to be moved to that directory. For example files...
Showing results 1 to 9 of 9

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