Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

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?

Answer Posted / 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



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

which r the connectors used in san?

2188


Name the different types of Lookups in Datastage?

1264


If you want to use the same piece of code in different jobs, how will you achieve it?

1161


What are the different types of lookups in datastage?

1059


How to manage date conversion in Datastage?

1141


Difference between ‘validated ok’ and ‘compiled’ in data stage?

1288


How will you load you daily/monthly jobs datas in to Fact and Dimension table using datastage.

3460


Different ways a project can be moved to production ?...example ….export-import and Version control.

2453


Give an idea of system variables.

1038


Explain how a source file is populated?

1373


What is the use of hoursfromtime() function in transformer stage in datastage?

1070


How to Remove Duplicate using SQL?

1373


How to implement complex jobs in data stage?

1116


Source has 2 columns: USA,NewYork INDIA,MUMBAI INDIA,DELHI UDS,CHICAGO INDIA,PUNE i want data in target like below: INDIA,MUMBAI1 INDIA,DELHI2 INDIA,PUNE3 USA,NEWYORK1 USA,CHICAGO2

781


Differentiate between hash file and sequential file?

1076