TASK 1:
I have been using this code to print the information of files kept at "/castor/cern.ch/user/s/sudha/forPooja" in some text file name FILE.txt. Need to mention that "rfdir" is special command in my work. It works same as "ls".
Code, which I am working.
I have some script : TASK 2 :
In addition, I have a script which does the rest of the part
Here in this code, I am using that FILE.txt .
It would be really useful if I have single script doing both.
Thanks in advance
pooja.
Task 1:
Do you want to print the filenames having the string "data" in the filename with rfio:///castor/cern.ch/user/s/sudha/forPooja/ as prefix into FILE.txt?
And are the files in Task1 and Task2 related in anyway?
And what is the purpose of this?
what are the input arguments to the script?
Task1 is not at all clear!
--ahamed
---------- Post updated at 01:21 AM ---------- Previous update was at 01:17 AM ----------
Something like this?
Everything based on assumptions!
--ahamed
Last edited by ahamed101; 10-09-2011 at 05:43 AM..
The files kept in the "/castor/cern.ch/user/s/sudha/forPooja" has field :
I want the information written in FILE.txt is like:
In awk comand
$9 is the column for data**.root information and same for $2.
Yes you are right with this statement.
"Do you want to print the filenames having the string "data" in the filename with rfio:///castor/cern.ch/user/s/sudha/forPooja/ as prefix into FILE.txt?"
hope it is clear now.
Many thanks for reply..
pooja
No, the code is not working
Error mesage is following
Actually, the problem is with the source directory. It is special one and normal command does not work there. As i mentioned "rfdir == ls" similarly, "rfcp == cp"
I have some hint, find below the working code (1.sh) which copy the root files kept in the "/castor/cern.ch/user/s/sudha/forPooja" to some target folder.
I execute it following way
[code]
$./1.sh /castor/cern.ch/user/s/sudha/forPooja/ data /afs/cern.ch/user/p/pooja/
Thanks
pooja..
---------- Post updated at 10:37 AM ---------- Previous update was at 03:54 AM ----------
Hi,
I have a request, could you please explain me the meaning of these command lines.
I did not understand the usage of these 2 lines:
waiting..
pooja..
Can you tell me where the data files will be? And where you want to move it?
Following code will check if the data file is present at target folder, if so it will continue with the next file.
--ahamed
---------- Post updated at 09:10 AM ---------- Previous update was at 09:08 AM ----------
You will need to explain the task 1 more with more clarity.
What I have understood is that, there are data files at the source directory, you want take each data file from the source directory and check if it present in the target directory. If not present copy it to target and create a FILE.txt file with rfio://... entry.
Hi,
The source area from where I am trying to copy the file information is not regular one. As I already mentioned that usual terminal commands does nor work there.
Hi all, I have a query that runs that outputs data in the following format -
01/09/12 11:43:40,ADMIN,4,77,Application Group Load: Name(TESTED) LoadId(5137-1-0-1XX-15343-15343) File(/dir/dir/File.T03.CI2.RYR.2012009.11433350806.ARD) InputSize(5344) OutputSize(1359) Rows(2) Time(1.9960)... (8 Replies)
HI all,
I have data in a file that looks like this:
1 HOW _ NNP NNP _ 3 nn _ _
2 DRUGS _ NNP NNP _ 3 nn _ _
3 ACT _ NNP NNP _ 0 null _ _
4 : _ ... (3 Replies)
I have a flat file that looks like this, let's call it Chromosome_9.txt:
FT /Gene_Name="Guanyl-Acetylase 9"
FT /Gene_Number"36952"
FT /Gene_Name="Endoplasmic Luciferase"
FT /Gene_Number"36953"
FT ... (4 Replies)
Hi
I am writing a perl script which checks for the specific column values from a file and writes to the OUT file.
So the feed file has a header information and footer information.
I header information isaround107 lines i.e.
Starts with
START-OF-FILE
.......
so on ....
... (11 Replies)
Hi Guys,
I'm trying to write an script that will be launched by a user. The script will look at a log file and check for alerts with the date (supplied by user) and a machine's hostname (also supplied by the user). I'm trying to get the output formatted just like the log file.
The logfile looks... (5 Replies)
Hello, I'm new to scripting and I need help moving text from one file to another file. Here are examples what the files look like.
File 1:
Ac-223 2.10m A 1 0 0 0 Fr-219 358 9.9000E-01 0 0.0 0 0.0 0 0.0... (1 Reply)
Hi,
I'm working with gawk (on DOS) today.
A goal is: find a string for-instance '123', cut a line in two columns and write second one. The problem is: command line works OK, awk file doesn't. But I would like to work with file because there are many strings to find.
input:
line command:
awk... (4 Replies)
Hi all,
I'm figuring on how to grep only specific data I want below:
Bin Total %
----- ------- -----
1 15 42.9
Bin Total %
----- ------- -----
2 15 ... (3 Replies)
When I do the following :
grep -l "string" *,
I get a list of file names returned. Is there a way to copy the files returned from the list into another directory ?.
Thanks. (4 Replies)