Gachibowli_Diwakar Posted September 26, 2012 Report Posted September 26, 2012 [quote name='_poori' timestamp='1348630170' post='1302540773'] also try to run the command "gunzip -c --stdout [color=#282828][font=helvetica, arial, sans-serif]ABCD.D120312.Z" and see if the content of the file is displaying in stdout... ila try chesi content display avvuthu unte kanisam file is not corrupted ani telustundi [/font][/color] [/quote] akada already "uncompress" command use cheyi work authundi ani mothukuntuu unna .. inka ni Vikram series study material endhi [img]http://i48.tinypic.com/34i33vr.gif[/img]
Gachibowli_Diwakar Posted September 26, 2012 Report Posted September 26, 2012 $ ls -ltr oraenv* -rwxr-xr-x 1 oracle dba 1479 Aug 17 09:09 oraenv.Z $ uncompress oraenv.Z $ ls -ltr oraenv* -rwxr-xr-x 1 oracle dba 3275 Aug 17 09:09 oraenv $ which uncompress /usr/bin/uncompress
_poori Posted September 26, 2012 Report Posted September 26, 2012 [quote name='Silence..Please' timestamp='1348630227' post='1302540781'] akada already "uncompress" command use cheyi work authundi ani mothukuntuu unna .. inka ni Vikram series study material endhi [img]http://i48.tinypic.com/34i33vr.gif[/img] [/quote] gif ante uncompress [img]http://www.desigifs.com/sites/default/files/buss_0.gif?1290060203[/img] aindi ante...2nd option laga cheputunna
vissu Posted September 26, 2012 Author Report Posted September 26, 2012 [quote name='_poori' timestamp='1348629289' post='1302540720'] anni files same folder lo untey, you can execute the command "gunzip *" and it will unzip all the .Z, .gz, .tgz files. Also, .Z ante adi windows lo gzip cheste vache format. Linux lo by default, when you do a gzip, it will assign a .gz format for the error, can you try giving a -f directive like "gunzip -f [color=#282828][font=helvetica, arial, sans-serif]ABCD.D120312.Z"[/font][/color] [/quote] Okay mama thanks for you prompt reply Eeroju try chesthanu And anni files Ne like eve daily transaction files mama daily oka file vasthade So March 1st 2012 nundee till date varaku unna files anni nenu Na Local drive lo Oka folder create chese danelo ke FTP chesanu So eppudu files Anne okee folder lo unnaye And Folder lo unna anni files Ke ela Command rayale? I'm completely new to UNIX Then final ga unzip chesena files Anne SQL Loader use chese database lo load cheyale. So SQL loader lo full idea vundhe One more question: Actual ga na Dev Unix box lo huge data vuntakodadhu annadu So oka file unzip chesenaka danenee malli FTP chese malli local machine lo pettukovale Ela 300 files cheyale ante chala time paduthundhe kada? So emina easy process vundha mama? Ee weekend loga files motham load cheyadam complete avvale annadu. Thanks again for ur reply Regards Vissu
_poori Posted September 26, 2012 Report Posted September 26, 2012 [quote name='Silence..Please' timestamp='1348630300' post='1302540788'] $ ls -ltr oraenv* -rwxr-xr-x 1 oracle dba 1479 Aug 17 09:09 oraenv.Z $ uncompress oraenv.Z $ ls -ltr oraenv* -rwxr-xr-x 1 oracle dba 3275 Aug 17 09:09 oraenv [/quote] vuuuuu $ /appl/bmedev> ls -l *.Z -rwxr-xr-x 1 bmedev bmedev 41 Sep 25 23:27 sample.txt.Z $ /appl/bmedev> gunzip sample.txt.Z $ /appl/bmedev> ls -l *.Z -rwxr-xr-x 1 bmedev bmedev 12 Sep 25 23:48 sample.txt
vissu Posted September 26, 2012 Author Report Posted September 26, 2012 [quote name='Silence..Please' timestamp='1348629531' post='1302540730'] [img]http://i41.tinypic.com/35a16jb.gif[/img] /usr/bin lo untaay .. compress/uncompress aney executable .. avi use cheyali .. gunzip will not work [/quote] Okay sure mama I'll try Nd Actual ga na file names upper case lo unnaye So nenu alane ivvala? .Z lo gunzip endukane panecheyadhu? Thanks
manchi_babu Posted September 26, 2012 Report Posted September 26, 2012 [quote name='vissu' timestamp='1348630368' post='1302540795'] Okay mama thanks for you prompt reply Eeroju try chesthanu And anni files Ne like eve daily transaction files mama daily oka file vasthade So March 1st 2012 nundee till date varaku unna files anni nenu Na Local drive lo Oka folder create chese danelo ke FTP chesanu So eppudu files Anne okee folder lo unnaye And Folder lo unna anni files Ke ela Command rayale? I'm completely new to UNIX Then final ga unzip chesena files Anne SQL Loader use chese database lo load cheyale. So SQL loader lo full idea vundhe One more question: Actual ga na Dev Unix box lo huge data vuntakodadhu annadu So oka file unzip chesenaka danenee malli FTP chese malli local machine lo pettukovale Ela 300 files cheyale ante chala time paduthundhe kada? So emina easy process vundha mama? Ee weekend loga files motham load cheyadam complete avvale annadu. Thanks again for ur reply Regards Vissu [/quote] inta matter ela type chesavu sami.. [img]http://lh3.ggpht.com/-ucThZq7C71k/UGD9AxjfbaI/AAAAAAAAHb8/06kLi9IYhwI/s150/Brahmi-2.gif[/img][color=#282828][font=helvetica, arial, sans-serif][img]http://lh3.ggpht.com/-ucThZq7C71k/UGD9AxjfbaI/AAAAAAAAHb8/06kLi9IYhwI/s150/Brahmi-2.gif[/img][/font][/color]
_poori Posted September 26, 2012 Report Posted September 26, 2012 @vissu okkavela aa files windows lo unte SP cheppinatu 7zip software tho unzip cheyochu ga...okkavela Linux lone unzip cheyali ante "gunzip *" command use cheyi...kani space ekkuva ledu antunnavu kabbati depending on how much space you have konni files FTP chesukoni gunzip chesukovalsi vastundi emo..
Gachibowli_Diwakar Posted September 26, 2012 Report Posted September 26, 2012 [quote name='vissu' timestamp='1348630368' post='1302540795'] Okay mama thanks for you prompt reply Eeroju try chesthanu And anni files Ne like eve daily transaction files mama daily oka file vasthade So March 1st 2012 nundee till date varaku unna files anni nenu Na Local drive lo Oka folder create chese danelo ke FTP chesanu So eppudu files Anne okee folder lo unnaye And Folder lo unna anni files Ke ela Command rayale? I'm completely new to UNIX Then final ga unzip chesena files Anne SQL Loader use chese database lo load cheyale. So SQL loader lo full idea vundhe One more question: Actual ga na Dev Unix box lo huge data vuntakodadhu annadu So oka file unzip chesenaka danenee malli FTP chese malli local machine lo pettukovale Ela 300 files cheyale ante chala time paduthundhe kada? So emina easy process vundha mama? Ee weekend loga files motham load cheyadam complete avvale annadu. Thanks again for ur reply Regards Vissu [/quote] below code should work .. for you to be able to uncompress all .Z files that are located in same directory BASE_DIR=<your_directory> REPORTFILE="<your_directory>/log/uncompress_files.log" cat /dev/null > $REPORTFILE cd ${BASE_DIR} ls -ltr | grep .Z | awk '{print $9}' >> ${BASE_DIR}/file_list.lst for file in `cat ${BASE_DIR}/file_list.lst| egrep -v "^#|^$"` do uncompress $file done
_poori Posted September 26, 2012 Report Posted September 26, 2012 [quote name='Silence..Please' timestamp='1348630952' post='1302540832'] below code should work .. for you to be able to uncompress all .Z files that are located in same directory BASE_DIR=<your_directory> REPORTFILE="<your_directory>/log/uncompress_files.log" cat /dev/null > $REPORTFILE cd ${BASE_DIR} ls -ltr | grep .Z | awk '{print $9}' >> ${BASE_DIR}/file_list.lst for file in `cat ${BASE_DIR}/file_list.lst| egrep -v "^#|^$"` do uncompress $file done [/quote] [img]http://i361.photobucket.com/albums/oo54/Imdareaper/Emoticons/Whistle.gif[/img]
Gachibowli_Diwakar Posted September 26, 2012 Report Posted September 26, 2012 [quote name='_poori' timestamp='1348630552' post='1302540810'] vuuuuu $ /appl/bmedev> ls -l *.Z -rwxr-xr-x 1 bmedev bmedev 41 Sep 25 23:27 sample.txt.Z $ /appl/bmedev> gunzip sample.txt.Z $ /appl/bmedev> ls -l *.Z -rwxr-xr-x 1 bmedev bmedev 12 Sep 25 23:48 sample.txt [/quote] [quote name='vissu' timestamp='1348630609' post='1302540814'] Okay sure mama I'll try Nd Actual ga na file names upper case lo unnaye So nenu alane ivvala? .Z lo gunzip endukane panecheyadhu? Thanks [/quote] [u]gunzip[/u][color=#666666][font=Monaco, Courier, monospace][size=3] can currently decompress files created by [/size][/font][/color][u]gzip,[/u][u]zip,[/u][u]compress,[/u][u]compress[/u][u]-H[/u][color=#666666][font=Monaco, Courier, monospace][size=3] or [/size][/font][/color][u]pack.[/u][color=#666666][font=Monaco, Courier, monospace][size=3] The[/size][/font][/color] detection of the input format is automatic. When using the first two formats, [u]gunzip[/u] checks a 32 bit CRC. For [u]pack,[/u] [u]gunzip[/u] checks the uncompressed length. The standard [u]compress[/u] format was not designed to allow consistency checks. [b]However [u]gunzip[/u] is sometimes able to detect a bad .Z file. If you get an error when uncompressing a .Z file, do not assume that the .Z file is correct simply because the standard [u]uncompress[/u] does not complain. This generally means that the standard [u]uncompress[/u] does not check its input, and happily generates garbage output.[/b] The SCO compress -H format (lzh compression method) does not include a CRC but also allows some consistency checks. [url="https://developer.apple.com/library/mac/#documentation/Darwin/Reference/ManPages/man1/gzip.1.html"]https://developer.ap...an1/gzip.1.html[/url]
vissu Posted September 26, 2012 Author Report Posted September 26, 2012 [quote name='_poori' timestamp='1348630750' post='1302540820'] @vissu okkavela aa files windows lo unte SP cheppinatu 7zip software tho unzip cheyochu ga...okkavela Linux lone unzip cheyali ante "gunzip *" command use cheyi...kani space ekkuva ledu antunnavu kabbati depending on how much space you have konni files FTP chesukoni gunzip chesukovalsi vastundi emo.. [/quote] Okay sure mama Na mgr gadu Space ledu oka file complete chesenaka danene Unix box lo delete cheyamannadu So nenu ee command tho try cheddam Anukuntunnanu SP cheppenattuu /risk batch/rdwdbat >uncompress ABCD.D120312 Eerojuu try chesthanu Actual ga nenu UK
_poori Posted September 26, 2012 Report Posted September 26, 2012 [quote name='Silence..Please' timestamp='1348631225' post='1302540850'] [u]gunzip[/u][color=#666666][font=Monaco, Courier, monospace][size=3] can currently decompress files created by [/size][/font][/color][u]gzip,[/u][u]zip,[/u][u]compress,[/u][u]compress[/u][u]-H[/u][color=#666666][font=Monaco, Courier, monospace][size=3] or [/size][/font][/color][u]pack.[/u][color=#666666][font=Monaco, Courier, monospace][size=3] The[/size][/font][/color] detection of the input format is automatic. When using the first two formats, [u]gunzip[/u] checks a 32 bit CRC. For [u]pack,[/u] [u]gunzip[/u] checks the uncompressed length. The standard [u]compress[/u] format was not designed to allow consistency checks. [b]However [u]gunzip[/u] is sometimes able to detect a bad .Z file. If you get an error when uncompressing a .Z file, do not assume that the .Z file is correct simply because the standard [u]uncompress[/u] does not complain. This generally means that the standard [u]uncompress[/u] does not check its input, and happily generates garbage output.[/b] The SCO compress -H format (lzh compression method) does not include a CRC but also allows some consistency checks. [url="https://developer.apple.com/library/mac/#documentation/Darwin/Reference/ManPages/man1/gzip.1.html"]https://developer.ap...an1/gzip.1.html[/url] [/quote] akkada uncompress ni thidutunnadu[img]http://lh3.ggpht.com/-ucThZq7C71k/UGD9AxjfbaI/AAAAAAAAHb8/06kLi9IYhwI/s150/Brahmi-2.gif[/img]
vissu Posted September 26, 2012 Author Report Posted September 26, 2012 [quote name='manchi_babu' timestamp='1348630659' post='1302540816'] inta matter ela type chesavu sami.. [img]http://lh3.ggpht.com/-ucThZq7C71k/UGD9AxjfbaI/AAAAAAAAHb8/06kLi9IYhwI/s150/Brahmi-2.gif[/img][color=#282828][font=helvetica, arial, sans-serif][img]http://lh3.ggpht.com/-ucThZq7C71k/UGD9AxjfbaI/AAAAAAAAHb8/06kLi9IYhwI/s150/Brahmi-2.gif[/img][/font][/color] [/quote] Mob lo unna mama
Gachibowli_Diwakar Posted September 26, 2012 Report Posted September 26, 2012 [quote name='_poori' timestamp='1348631383' post='1302540867'] akkada uncompress ni thidutunnadu[img]http://lh3.ggpht.com/-ucThZq7C71k/UGD9AxjfbaI/AAAAAAAAHb8/06kLi9IYhwI/s150/Brahmi-2.gif[/img] [/quote] [img]http://i31.tinypic.com/2wq946v.gif[/img] but that worked for me sometime back ..garbage output em raledu .. I actually untarred the Tar file that was with .Z extension after I uncompressed using "uncompress" utility
Recommended Posts