Unix Qn asked in datastage interview:
I have diff type(.txt, .tmp, .bat etc) of file in 4 diff directories, I want move all '.txt' file from 4 directories to other folder.
And need to delete all the files except which are created TODAY?

Answers were Sorted based on User's Feedback



Unix Qn asked in datastage interview: I have diff type(.txt, .tmp, .bat etc) of file in 4 diff dire..

Answer / subhash

1.
mv dir1/*.txt TgtDir
mv dir2/*.txt TgtDir
mv dir3/*.txt TgtDir
mv dir4/*.txt TgtDir

2. find -mtime 1+ | del
(1+ 1day before created files, -5 --> files created last 5
days and 1 ---> created exact 1 day back )

Is This Answer Correct ?    4 Yes 0 No

Unix Qn asked in datastage interview: I have diff type(.txt, .tmp, .bat etc) of file in 4 diff dire..

Answer / ankit gosain

Hi,

try the below commands:

1. rm *.txt /dest/directory
2. find -iname '*.txt' -exec mv \{\} /dest/directory \;

Cheers,
Ankit :)

Is This Answer Correct ?    0 Yes 1 No

Post New Answer

More Data Stage Interview Questions

how to implement scd2 in datastage 7.5 with lookup stage

0 Answers   TCS,


What are constraints and derivations?

0 Answers  


What is merge stage?

0 Answers  


What is exact difference between Parallel Jobs and server Jobs..

8 Answers   DELL, IBM,


What are the differences between datastage and informatica?

0 Answers  






detail about sdlc

4 Answers  


i have a small question for datastage, After the desinging (i.e., transformations and loading)part, what we can do?

1 Answers   TCS,


what is Audit table?Have u use audit table in ur project?

3 Answers   Accenture, Wipro,


source file contains 100 records, i want 10 records in target file how it possible in datastage

6 Answers   IBM,


6) my sorce d1 d2 d1 d2 d1 d3 d2 d1 my target tartget 1 d1 2 d1 3 d1 4 d1 target2 1 d2 2 d2 3 d3 Target 3 1 d3 Can any body send me answer this is argent requierment

3 Answers   TCS,


I want capture UnMatched records from Primary source and secondary source in JOIN stage?

3 Answers   TCS,


Explain ibm infosphere information server and highlight its main features?

0 Answers  


Categories