Author |
Message |
   
Musicfan
Bewarse Legend Username: Musicfan
Post Number: 14571 Registered: 05-2004 Posted From: 136.1.1.154
Rating: N/A Votes: 0 (Vote!) | Posted on Thursday, April 09, 2009 - 12:48 pm: |
|
Dilligaf:good to know that bro, admin aah??,
no admin, but solaris, HP user - development ki unix scripts rasi alaa vachesindi ante.. ee Bakugan kani pettina vadu evadu sami..
|
   
Dilligaf
Yavvanam Kaatesina Bewarse Username: Dilligaf
Post Number: 1939 Registered: 06-2005 Posted From: 192.44.136.113
Rating: N/A Votes: 0 (Vote!) | Posted on Thursday, April 09, 2009 - 9:55 am: |
|
Musicfan:
good to know that bro, admin aah??, I moved out of unix admin now, I am into SAN Does It Look Like I Give A Fuxkk!!!!
|
   
Musicfan
Bewarse Legend Username: Musicfan
Post Number: 14553 Registered: 05-2004 Posted From: 136.1.1.154
Rating: N/A Votes: 0 (Vote!) | Posted on Thursday, April 09, 2009 - 9:43 am: |
|
Dilligaf:hpux and aix
solaris,, ee Bakugan kani pettina vadu evadu sami..
|
   
Dilligaf
Yavvanam Kaatesina Bewarse Username: Dilligaf
Post Number: 1935 Registered: 06-2005 Posted From: 192.44.136.113
Rating: N/A Votes: 0 (Vote!) | Posted on Thursday, April 09, 2009 - 9:33 am: |
|
Gaali:Dabba kottukotaaniki ready gaa vuntaav
gaalesh kallu kaakulu ddenxgss aah, nuvvu neenu dabba kottukovatam eenti babu, manaki aah scene ledu coz at HP U R A VPPPP Does It Look Like I Give A Fuxkk!!!!
|
   
Gaali
Bewarse Legend Username: Gaali
Post Number: 13246 Registered: 03-2004 Posted From: 24.26.47.246
Rating: N/A Votes: 0 (Vote!) | Posted on Wednesday, April 08, 2009 - 10:08 pm: |
|
Dilligaf:neenu more of hpux and aix
Dabba kottukotaaniki ready gaa vuntaav. 
|
   
Dilligaf
Yavvanam Kaatesina Bewarse Username: Dilligaf
Post Number: 1929 Registered: 06-2005 Posted From: 74.129.51.246
Rating: N/A Votes: 0 (Vote!) | Posted on Wednesday, April 08, 2009 - 9:46 pm: |
|
Rangupadudhi:wine s/w on solaris/linux eppudina vaadaara??
never heard of it...neenu more of hpux and aix, linux handle cheyyagalanu not an expert...quick google chesi choodu entoo adhi Does It Look Like I Give A Fuxkk!!!!
|
   
Rangupadudhi
Celebrity Bewarse Username: Rangupadudhi
Post Number: 6548 Registered: 03-2008 Posted From: 173.88.138.190
Rating: N/A Votes: 0 (Vote!) | Posted on Wednesday, April 08, 2009 - 9:43 pm: |
|
natu anna just info kosam aduguthunnaanu.......wine s/w on solaris/linux eppudina vaadaara?? Best Upcoming Bewarse Award Winner for 2008
|
   
Rangupadudhi
Celebrity Bewarse Username: Rangupadudhi
Post Number: 6547 Registered: 03-2008 Posted From: 173.88.138.190
Rating: N/A Votes: 0 (Vote!) | Posted on Wednesday, April 08, 2009 - 9:39 pm: |
|
kaaya koosindhi scriptu.....worked like a charm....naaku kavalsi natlu konni modifications cheesukunnaanu....thanksu naatu anna and mf mama naaku paste anee command okati vundhani theliyadhu natu anna neevu cheppedhaakaa....entha seepu sed, join, expand, vi, grep, regular unix commands ee vaadathaanu neenu  Best Upcoming Bewarse Award Winner for 2008
|
   
Musicfan
Bewarse Legend Username: Musicfan
Post Number: 14498 Registered: 05-2004 Posted From: 68.43.246.110
Rating: N/A Votes: 0 (Vote!) | Posted on Wednesday, April 08, 2009 - 5:33 pm: |
|
Dilligaf:unix field lo almost 10 yrs ninchi unna, everytime a situation arises
nuvvu paste cmd use cheyyagane artham ayyindi Dgaf,, ee Bakugan kani pettina vadu evadu sami..
|
   
Dilligaf
Yavvanam Kaatesina Bewarse Username: Dilligaf
Post Number: 1922 Registered: 06-2005 Posted From: 192.44.136.113
Rating: N/A Votes: 0 (Vote!) | Posted on Wednesday, April 08, 2009 - 3:32 pm: |
|
Musicfan:exactly "paste" anedi katti
unix field lo almost 10 yrs ninchi unna, everytime a situation arises I find and learn new stuff like the paste cmd, unix is vast and the most underrated among desis and desi consultants Does It Look Like I Give A Fuxkk!!!!
|
   
Musicfan
Bewarse Legend Username: Musicfan
Post Number: 14470 Registered: 05-2004 Posted From: 136.1.1.101
Rating: N/A Votes: 0 (Vote!) | Posted on Wednesday, April 08, 2009 - 3:17 pm: |
|
Dilligaf:but the paste command here is a godsend
exactly "paste" anedi katti ee Bakugan kani pettina vadu evadu sami..
|
   
Dilligaf
Yavvanam Kaatesina Bewarse Username: Dilligaf
Post Number: 1921 Registered: 06-2005 Posted From: 192.44.136.113
Rating: N/A Votes: 0 (Vote!) | Posted on Wednesday, April 08, 2009 - 2:59 pm: |
|
Musicfan:Rangu mama, let me know if any issues, nenu test chesa unix lo it worked..
all those paths are a given mf mama, but the paste command here is a godsend or else its a pain in assxx to write a script which paste made it so simple Does It Look Like I Give A Fuxkk!!!!
|
   
Musicfan
Bewarse Legend Username: Musicfan
Post Number: 14449 Registered: 05-2004 Posted From: 136.1.1.101
Rating: N/A Votes: 0 (Vote!) | Posted on Wednesday, April 08, 2009 - 2:48 pm: |
|
Rangu mama, let me know if any issues, nenu test chesa unix lo it worked.. ee Bakugan kani pettina vadu evadu sami..
|
   
Musicfan
Bewarse Legend Username: Musicfan
Post Number: 14448 Registered: 05-2004 Posted From: 136.1.1.101
Rating: N/A Votes: 0 (Vote!) | Posted on Wednesday, April 08, 2009 - 2:47 pm: |
|
Dilligaf:collect the data the followign
Dilligaf, rangu mama with some modifications to Dilligaf's script this will work if you do the following 1. save this as a file say ren.sh 2. run from ksh (. ~/test/ren.sh) 3. Run this from the directory where you want to rename the files. 4. replace ~/test/abc with complete path of the first folder and second folder. output is as follows mv /u/user1/test/efg/55.txt 12.txt mv /u/user1/test/efg/66.txt 34.txt ________________________________________________ #!/bin/ksh ls -1 ~/test/abc | while read i; do echo ${i}; done > /tmp/uvw_tst ls -1 ~/test/efg | while read i; do echo ${i}; done > /tmp/xyz_tst paste /tmp/xyz_tst /tmp/uvw_tst |while read i; do echo $PWD/$i mv $PWD/$i done ee Bakugan kani pettina vadu evadu sami..
|
   
Dilligaf
Yavvanam Kaatesina Bewarse Username: Dilligaf
Post Number: 1911 Registered: 06-2005 Posted From: 192.44.136.113
Rating: N/A Votes: 0 (Vote!) | Posted on Tuesday, April 07, 2009 - 12:38 pm: |
|
rangu adhi mari simple script ga, do this just cut n paste from the cmd line after you collect the data the followign [root@server2 tmp]# paste ../uvw_tst ../xyz_tst|while read i; do echo mv $i done it just echos out result without performing the change and let me know wut u get Does It Look Like I Give A Fuxkk!!!!
|
   
Rangupadudhi
Celebrity Bewarse Username: Rangupadudhi
Post Number: 6528 Registered: 03-2008 Posted From: 12.17.237.178
Rating: N/A Votes: 0 (Vote!) | Posted on Tuesday, April 07, 2009 - 11:56 am: |
|
natu anna script ekkadoo thantundhi....neenu logic miss iyyinatlunnanu ekkadoo....intiki vellaaka neenu rasina script paste chesthaanu....ippudu office loo vunnanu mf MAMA THANKSU indhaaka googling cheesi choosaanuu Best Upcoming Bewarse Award Winner for 2008
|
   
Musicfan
Bewarse Legend Username: Musicfan
Post Number: 14332 Registered: 05-2004 Posted From: 136.1.1.101
Rating: N/A Votes: 0 (Vote!) | Posted on Tuesday, April 07, 2009 - 10:58 am: |
|
Rangupadudhi:muzic mama batch file elaa run cheyyali windows command line meedha
open a command prompt, ( Run->Cmd ) go the directory where the batch file is and type the batch file name and enter. |
   
Dilligaf
Yavvanam Kaatesina Bewarse Username: Dilligaf
Post Number: 1909 Registered: 06-2005 Posted From: 192.44.136.113
Rating: N/A Votes: 0 (Vote!) | Posted on Tuesday, April 07, 2009 - 10:56 am: |
|
rangu any luck? Does It Look Like I Give A Fuxkk!!!!
|
   
Rangupadudhi
Celebrity Bewarse Username: Rangupadudhi
Post Number: 6496 Registered: 03-2008 Posted From: 173.88.138.190
Rating: N/A Votes: 0 (Vote!) | Posted on Monday, April 06, 2009 - 10:13 am: |
|
okk naatu anna neenu execute cheesi chepthaanu evening kalla Best Upcoming Bewarse Award Winner for 2008
|
   
Dilligaf
Yavvanam Kaatesina Bewarse Username: Dilligaf
Post Number: 1895 Registered: 06-2005 Posted From: 192.44.136.113
Rating: N/A Votes: 0 (Vote!) | Posted on Monday, April 06, 2009 - 9:38 am: |
|
rangu step by step wut I just executed Collecting directories ---------------------------------- ls -l xyz | awk '{print $9}'|grep -v ^$|while read i; do echo ${i}; done > xyz_tst ls -l uvw | awk '{print $9}'|grep -v ^$|while read i; do echo ${i}; done > uvw_tst so if you cat now on xyz_tst, uvw_tst, I have this [root@server2 tmp]# cat xyz_tst 1 2 3 4 [root@server2 tmp]# cat uvw_tst a b c d ---------------------------------------------- so lets say I want to rename in uvw folder to the files in xyw, I go to the uvw directory(you can script this to be in better way, I am just giving you high level script)... and execute this paste ../uvw_tst ../xyz_tst |while read i; do echo mv $i done the output will be something like mv a 1 mv b 2 mv c 3 mv d 4 ----------------------------------------- now pass the script to sh and you will get the files moved paste ../uvw_tst ../xyz_tst |while read i; do echo mv $i done|sh here is wut I got [root@server2 tmp]# ls -ltr uvw total 0 -rw-r--r-- 1 root root 0 Apr 4 19:57 1 -rw-r--r-- 1 root root 0 Apr 4 19:57 2 -rw-r--r-- 1 root root 0 Apr 4 19:57 3 -rw-r--r-- 1 root root 0 Apr 4 20:24 4 [root@server2 tmp]# done Does It Look Like I Give A Fuxkk!!!!
|
   
Rangupadudhi
Celebrity Bewarse Username: Rangupadudhi
Post Number: 6487 Registered: 03-2008 Posted From: 173.88.138.190
Rating: N/A Votes: 0 (Vote!) | Posted on Monday, April 06, 2009 - 9:31 am: |
|
neenu kubuntu 8.04 run chesthunna anna....debain based OS....neenu raathri test cheesaanu paste vundhi naa system meedha so ee logic inka verify cheyyali eeyala Best Upcoming Bewarse Award Winner for 2008
|
   
Dilligaf
Yavvanam Kaatesina Bewarse Username: Dilligaf
Post Number: 1894 Registered: 06-2005 Posted From: 192.44.136.113
Rating: N/A Votes: 0 (Vote!) | Posted on Monday, April 06, 2009 - 9:27 am: |
|
rangu thammudu, first of tell me which OS is on the server...secondly just do paste, its default on most of the UNIX..if its returns something u should be good # paste paste: Usage: paste [-s] [-d List ] File1 ... Does It Look Like I Give A Fuxkk!!!!
|
   
Rangupadudhi
Celebrity Bewarse Username: Rangupadudhi
Post Number: 6484 Registered: 03-2008 Posted From: 173.88.138.190
Rating: N/A Votes: 0 (Vote!) | Posted on Monday, April 06, 2009 - 8:51 am: |
|
bump Best Upcoming Bewarse Award Winner for 2008
|
   
Rangupadudhi
Celebrity Bewarse Username: Rangupadudhi
Post Number: 6482 Registered: 03-2008 Posted From: 129.22.149.97
Rating: N/A Votes: 0 (Vote!) | Posted on Sunday, April 05, 2009 - 9:36 pm: |
|
diligaff mama chosthaanu intiki vellaaka......neenu paste command eppudu vadaledhu Best Upcoming Bewarse Award Winner for 2008
|
   
Rangupadudhi
Celebrity Bewarse Username: Rangupadudhi
Post Number: 6481 Registered: 03-2008 Posted From: 129.22.149.97
Rating: N/A Votes: 0 (Vote!) | Posted on Sunday, April 05, 2009 - 9:35 pm: |
|
muzic mama batch file elaa run cheyyali windows command line meedha normal gaa unix loo shell script iithe ./file.sh ante saripothundhi......windows meedha text.bat file elaa run chesthaaru kodhiga light eyyi Best Upcoming Bewarse Award Winner for 2008
|
   
Dilligaf
Yavvanam Kaatesina Bewarse Username: Dilligaf
Post Number: 1888 Registered: 06-2005 Posted From: 74.129.51.246
Rating: N/A Votes: 0 (Vote!) | Posted on Sunday, April 05, 2009 - 7:31 pm: |
|
musicfan, he wants that to be like a process, unix lo can be done simpler, but didn't want to suggest.. the below process only works if you are linux or have "paste" installed on your server
Musicfan:dir /b >first folder.txt dir /b >second foler.txt
I would take same way, just once you get that order paste first_folder.txt second_foler.txt |while read i; do echo mv $i; done Does It Look Like I Give A Fuxkk!!!!
|
   
Musicfan
Bewarse Legend Username: Musicfan
Post Number: 14230 Registered: 05-2004 Posted From: 68.43.246.110
Rating: N/A Votes: 0 (Vote!) | Posted on Sunday, April 05, 2009 - 4:07 pm: |
|
As long its not recursive in the directory, i will not go for any script.. simple gaa ila chesta since its windows. and also the files will be the same name.. dir /b >first folder.txt dir /b >second foler.txt excel sheet open chesi first column lo "rename" esta.. recond column lo import file first folder.txt third column lo second folder.txt import chesata this will become rename xyz1 uvw1 rename xyz2 uvw2 ala enni files unte anni rows vastayi.. file->save as -><file_name.bat> ichi command prompt lo run chestaa all files will be renamed. |
   
Nayakudu
Bewarse Legend Username: Nayakudu
Post Number: 13573 Registered: 05-2005 Posted From: 24.117.13.246
Rating: N/A Votes: 0 (Vote!) | Posted on Sunday, April 05, 2009 - 3:38 pm: |
|
(a-b)2 = a2+b2-2ab hasta la victoria siempre
|
   
Dilligaf
Yavvanam Kaatesina Bewarse Username: Dilligaf
Post Number: 1884 Registered: 06-2005 Posted From: 74.129.51.246
Rating: N/A Votes: 0 (Vote!) | Posted on Sunday, April 05, 2009 - 6:03 am: |
|
Apparao:(a+b)2 = a2+b2+2ab
 Does It Look Like I Give A Fuxkk!!!!
|
   
Apparao
Pilla Bewarse Username: Apparao
Post Number: 90 Registered: 04-2009 Posted From: 218.186.12.211
Rating: N/A Votes: 0 (Vote!) | Posted on Sunday, April 05, 2009 - 3:54 am: |
|
Rangupadudhi:
(a+b)2 = a2+b2+2ab
 eeda Brother Anil gaaritho praarthanalu seyinchabadunu
|
   
Rangupadudhi
Celebrity Bewarse Username: Rangupadudhi
Post Number: 6451 Registered: 03-2008 Posted From: 173.88.138.190
Rating: N/A Votes: 0 (Vote!) | Posted on Saturday, April 04, 2009 - 9:21 pm: |
|
perl oka maadiri ga vocchu kaani shell programming ante parledhu mama baane idea vundhi anthukani try chesthunnanu  Best Upcoming Bewarse Award Winner for 2008
|
   
Dilligaf
Yavvanam Kaatesina Bewarse Username: Dilligaf
Post Number: 1881 Registered: 06-2005 Posted From: 74.129.51.246
Rating: N/A Votes: 0 (Vote!) | Posted on Saturday, April 04, 2009 - 9:05 pm: |
|
thammudu, I am not an expert in advanced shell scripting, yedoo naa day2day admin ki saripada raasukonta, go for perl, you can do lot of sht in perl...worth a shot to try in perl Does It Look Like I Give A Fuxkk!!!!
|
   
Rangupadudhi
Celebrity Bewarse Username: Rangupadudhi
Post Number: 6446 Registered: 03-2008 Posted From: 173.88.138.190
Rating: N/A Votes: 0 (Vote!) | Posted on Saturday, April 04, 2009 - 8:35 pm: |
|
shell script iithe okka saari script raasthe adhee cheeseesukuntundhi kadha ani naa feeling Best Upcoming Bewarse Award Winner for 2008
|
   
Rangupadudhi
Celebrity Bewarse Username: Rangupadudhi
Post Number: 6445 Registered: 03-2008 Posted From: 173.88.138.190
Rating: N/A Votes: 0 (Vote!) | Posted on Saturday, April 04, 2009 - 8:34 pm: |
|
leedhu mama neenu oka repetitive process ki script raasthunnaanu..... adhi kuurchoni chesthe n*5*14 times cheyyali.......n ante vaallu icchina number of folders meedha depend avuthundhi. maa voollu windows vaadathaaru.......naaku windows batch programming raadhu anthukani "wine" vaadi shell script raadhamani sketch geesaanu.....
 Best Upcoming Bewarse Award Winner for 2008
|
   
Dilligaf
Yavvanam Kaatesina Bewarse Username: Dilligaf
Post Number: 1880 Registered: 06-2005 Posted From: 74.129.51.246
Rating: N/A Votes: 0 (Vote!) | Posted on Saturday, April 04, 2009 - 8:07 pm: |
|
tough one buddy..schell script not robust, asalu enduku vachindi ee pulihaara??? Does It Look Like I Give A Fuxkk!!!!
|
   
Rangupadudhi
Celebrity Bewarse Username: Rangupadudhi
Post Number: 6392 Registered: 03-2008 Posted From: 129.22.149.97
Rating: N/A Votes: 0 (Vote!) | Posted on Saturday, April 04, 2009 - 11:12 am: |
|
lokesh fans ki ee theddu loo entry banned  Best Upcoming Bewarse Award Winner for 2008
|
   
Nelsonmandela
Yavvanam Kaatesina Bewarse Username: Nelsonmandela
Post Number: 2334 Registered: 09-2006 Posted From: 71.230.159.254
Rating: N/A Votes: 0 (Vote!) | Posted on Saturday, April 04, 2009 - 11:11 am: |
|
drag and drop PP= Prajarajyam Party
|
   
Rangupadudhi
Celebrity Bewarse Username: Rangupadudhi
Post Number: 6389 Registered: 03-2008 Posted From: 129.22.149.97
Rating: N/A Votes: 0 (Vote!) | Posted on Saturday, April 04, 2009 - 11:07 am: |
|
Ippudu naa dhaggara rendu folders vunnayi 1.Xyz 2.uvw rendintloo same number of files vuntaayi and the first file in the xyz folder corresponds to the first file in the uvw folder... kakapothe aa files names different gaa vuntayi.......Now I have to write a shell script which renames the files in the second folder with the same name as in the first folder.... eemina ideas ivvandi.....thikka lesthundhi  Best Upcoming Bewarse Award Winner for 2008
|