Need help with script i have about 40TB of a files *.mov
an need to sort them to folders
i did managed to create some kind of a script to sort new files according to date.
Now i need to do that with all files from /Volumes/xsan/old
to /Volumes/xsan/new
so if i have file 85000.mov in folder "old" and that file is created 2013.05.13. i want to to be moved to /Volumes/xsan/new/2013/05/13
so from this
/Volumes/xsan/old/85000.mov
mv
/Volumes/xsan/new/2013/05/13/85000.mov
Last edited by vbe; 07-09-2014 at 12:34 PM..
Reason: code tags - Not ICODE... thanks
Hello,
I have a situation where I have filenames with timestamps like
abc20060509452313.txt
i need the most recent file, and i am using this command in the script:
recent_file=`ls ${Location}/$file*| head -1`
where $Location is the directory and $file is the base filename like abc.
When i... (2 Replies)
Hi All,
I am new to unix,please help me on the following its urgent
I have 2 question
1 question
I need a script for following senario
I have get some files in directory by using grep
i need to sort all files to new files for example (abc.dat --> abc.dat.sort)
ex:grep *050508* ... (3 Replies)
I have a directory called test, which contains multiple sub directories namely TF80A, TF80B, TF80C.
I need to sort these directories by name, so in the above case TF80A Is the oldest and TF80C is the latest.
Is there a ksh script that would loop through the directories and sort these... (1 Reply)
Hi,
I have a datahash with 'n' number of values in perl script. I am writing a xml file from the datahash. I am getting output with sorting(Field sorting). My question is that i don't want any default sorting.whatever i am inserting into datahash it should give same xml file.
Any help?
... (0 Replies)
Hi I am trying to get a bourne shell script to sort a file for me. Here is what i currently have:
#/bin/sh
echo "Name Exam1 Exam2 Exam3 Total Grade" > final.txt
awk -f 9.awk grades.txt | sort +4 -5 >> final.txt
#BEGIN {printf "Name\tExam1\tExam2\tExam3\tTotal\tGrade";}
{
... (12 Replies)
I want to sort like below
Suppose few lines in a file is like this
systemid:ABC messagedestination:batchxpr replytoqname: myca
systemid:BCD messagedestination:realtime replytoqname: myca
systemid:ABC messagedestination:realtime replytoqname: eac
systemid: BCD messagedestination:mqonline... (1 Reply)
the thing which i require is very very complex.. i tried hard to find the solution but couldnt..
the thing i need to achieve is say i have a file
cat delta.sql
CREATE VIEW Austin
Etc etc
.
.
.
CREATE VIEW Barabara
AS
SELECT blah blah blah
FROM Austin z, Cluster s, Instance i
WHERE... (4 Replies)
Use and complete the template provided. The entire template must be completed. If you don't, your post may be deleted!
1. The problem statement, all variables and given/known data:
You will write a script that will read a tab-separated file that contains the names of all 50 states &... (7 Replies)