deals2buy Posted March 7, 2013 Author Report Posted March 7, 2013 [quote name='subbayya' timestamp='1362683961' post='1303381694'] uname -a aa command run chesi output post chei.. [/quote] oh adaa nuvvu adigedi? Its AIX
subbayya Posted March 7, 2013 Report Posted March 7, 2013 [quote name='Kaarthikeya' timestamp='1362684182' post='1303381723'] oh adaa nuvvu adigedi? Its AIX [/quote] then nenu ichina find command lo . badulu / pettu.
KOTC Posted March 7, 2013 Report Posted March 7, 2013 [quote name='Kaarthikeya' timestamp='1362684096' post='1303381713'] aa type and name dagara em ivvali? ala kaadu bhayya..nenu naa scenario chepta chudu here is the query I typed first: [CODE] ls /AFDB/Users/Karthikeya/ [/CODE] ila chesaaka a tho start ayye files and other files vachayi...ippudu I am now only interested in those files that start with [b]a[/b] [/quote] "cd /AFDB/Users/Karthikeya/" ivvu ls -lah ivvu ani files vastai a directory lo ippudu ne task enti?
deals2buy Posted March 7, 2013 Author Report Posted March 7, 2013 [quote name='DARLING...' timestamp='1362684372' post='1303381747'] use this ls -lrt A* [/quote] idi isthe file doesn't exist antondi...but when I only do 'ls' aa file chupistondi [quote name='subbayya' timestamp='1362684463' post='1303381758'] then nenu ichina find command lo . badulu / pettu. [/quote]petta.... intha mundu line starting lo $ symbol undedi..ippudu > aipoindenti? but no output [quote name='KOTC' timestamp='1362684516' post='1303381765'] "cd /AFDB/Users/Karthikeya/" ivvu ls -lah ivvu ani files vastai a directory lo ippudu ne task enti? [/quote]ls ani ichi aa cd/ di raayala? naa task em ledu...naaku a1, a2.... files ila untaayi...so nenu just aa directory lo a tho start ayye files enni unnayo avi ento chudali anthe
9ine Posted March 7, 2013 Report Posted March 7, 2013 [color=#282828][font=helvetica, arial, sans-serif]find /path/to/dir -type f -name "a*" -print[/font][/color] [color=#282828][font=helvetica, arial, sans-serif]eg: [/font][/color] [color=#282828][font=helvetica, arial, sans-serif]find . -type f -name "a*" -print[/font][/color] [color=#282828][font=helvetica, arial, sans-serif]./authorized_keys[/font][/color] [color=#282828][font=helvetica, arial, sans-serif]./dir/ab.txt[/font][/color] [color=#282828][font=helvetica, arial, sans-serif]./ars1.txt[/font][/color] [color=#282828][font=helvetica, arial, sans-serif]./ars.txt[/font][/color] [color=#282828][font=helvetica, arial, sans-serif]. in the find command means current dir [/font][/color] [color=#282828][font=helvetica, arial, sans-serif]Also you can replace the . with the dir where you want to search.[/font][/color] [b][color=#282828][font=helvetica, arial, sans-serif][size=4]-type is either file or dir as we are searching for a file we used "f" if you want to search for a dir then we use -type d[/size][/font][/color][/b] [b][color=#282828][font=helvetica, arial, sans-serif][size=4]-type f "File search"[/size][/font][/color][/b] [b][color=#282828][font=helvetica, arial, sans-serif][size=4]-type d "dir search" --> seach dir's with specific names [/size][/font][/color][/b] [b][color=#282828][font=helvetica, arial, sans-serif][size=4]-name is used to give the name of the file. as you wanted to search all the files that start with a. we used -name "a*"[/size][/font][/color][/b] [b][color=#282828][font=helvetica, arial, sans-serif][size=4] a* here means a[anything] * means everything. [/size][/font][/color][/b] [b][color=#282828][font=helvetica, arial, sans-serif][size=4]if you want to find all the log files you can do this [/size][/font][/color][/b] [b][color=#282828][font=helvetica, arial, sans-serif][size=4]-name "*.log"[/size][/font][/color][/b] [b][color=#282828][font=helvetica, arial, sans-serif][size=4]similarly all xml's with "*.xml" and so on.. all txt's with "*.txt"[/size][/font][/color][/b]
Terminator II Posted March 7, 2013 Report Posted March 7, 2013 [quote name='Scrooge' timestamp='1362682485' post='1303381498'] [img]https://lh5.googleusercontent.com/-FQXUE2gOUck/TJhjODyQXlI/AAAAAAAAAW0/TspjwDXLE8g/s216/ammo.gif[/img] [/quote] super timing
9ine Posted March 7, 2013 Report Posted March 7, 2013 Also, do this on the server. man find this "man find" will give you the manual for find command. you use man for any command. like : man ls man rm . . . 1
KOTC Posted March 7, 2013 Report Posted March 7, 2013 [quote name='Kaarthikeya' timestamp='1362684859' post='1303381796'] idi isthe file doesn't exist antondi...but when I only do 'ls' aa file chupistondi petta.... intha mundu line starting lo $ symbol undedi..ippudu > aipoindenti? but no output ls ani ichi aa cd/ di raayala? naa task em ledu...naaku a1, a2.... files ila untaayi...so nenu just aa directory lo a tho start ayye files enni unnayo avi ento chudali anthe [/quote] ivvu cd / travtha ls ichina ani files vastai a directory lo unavi or else ls -lah a* este just a tho unnavi vastai
deals2buy Posted March 7, 2013 Author Report Posted March 7, 2013 [quote name='9ine' timestamp='1362684860' post='1303381797'] [color=#282828][font=helvetica, arial, sans-serif]find /path/to/dir -type f -name "a*" -print[/font][/color] [color=#282828][font=helvetica, arial, sans-serif]eg: [/font][/color] [color=#282828][font=helvetica, arial, sans-serif]find . -type f -name "a*" -print[/font][/color] [color=#282828][font=helvetica, arial, sans-serif]./authorized_keys[/font][/color] [color=#282828][font=helvetica, arial, sans-serif]./dir/ab.txt[/font][/color] [color=#282828][font=helvetica, arial, sans-serif]./ars1.txt[/font][/color] [color=#282828][font=helvetica, arial, sans-serif]./ars.txt[/font][/color] [color=#282828][font=helvetica, arial, sans-serif]. in the find command means current dir [/font][/color] [color=#282828][font=helvetica, arial, sans-serif]Also you can replace the . with the dir where you want to search.[/font][/color] [b][color=#282828][font=helvetica, arial, sans-serif][size=4]-type is either file or dir as we are searching for a file we used "f" if you want to search for a dir then we use -type d[/size][/font][/color][/b] [b][color=#282828][font=helvetica, arial, sans-serif][size=4]-type f "File search"[/size][/font][/color][/b] [b][color=#282828][font=helvetica, arial, sans-serif][size=4]-type d "dir search" --> seach dir's with specific names [/size][/font][/color][/b] [b][color=#282828][font=helvetica, arial, sans-serif][size=4]-name is used to give the name of the file. as you wanted to search all the files that start with a. we used -name "a*"[/size][/font][/color][/b] [b][color=#282828][font=helvetica, arial, sans-serif][size=4]a* here means a[anything] * means everything. [/size][/font][/color][/b] [b][color=#282828][font=helvetica, arial, sans-serif][size=4]if you want to find all the log files you can do this [/size][/font][/color][/b] [b][color=#282828][font=helvetica, arial, sans-serif][size=4]-name "*.log"[/size][/font][/color][/b] [b][color=#282828][font=helvetica, arial, sans-serif][size=4]similarly all xml's with "*.xml" and so on.. all txt's with "*.txt"[/size][/font][/color][/b] [/quote]but somehow nuvvu cheppina query try chestunte not working for me [quote name='9ine' timestamp='1362684989' post='1303381812'] Also, do this on the server. man find this "man find" will give you the manual for find command. you use man for any command. like : man ls man rm . . . [/quote]idi asala...motham docuementaion motham vachestundi ga... thanks for sharing this [quote name='KOTC' timestamp='1362685037' post='1303381818'] ivvu cd / travtha ls ichina ani files vastai a directory lo unavi or else ls -lah a* este just a tho unnavi vastai [/quote] ippudu nenu ls cd/AFDB/Users/Karthikeya/ ani ichaanu correct ey na nenu ichindi? ila isthe invalid directory antondi
juvenile Posted March 7, 2013 Report Posted March 7, 2013 [quote name='Kaarthikeya' timestamp='1362685660' post='1303381891'] but somehow nuvvu cheppina query try chestunte not working for me idi asala...motham docuementaion motham vachestundi ga... thanks for sharing this ippudu nenu ls cd/AFDB/Users/Karthikeya/ ani ichaanu correct ey na nenu ichindi? ila isthe invalid directory antondi [/quote] unix lo commands ni kalapadaaniki pipe "| " vaadataaru ... Try like this c[color=#282828][font=helvetica, arial, sans-serif]d/AFDB/Users/Karthikeya/ | ls[/font][/color]
KOTC Posted March 7, 2013 Report Posted March 7, 2013 [quote name='Kaarthikeya' timestamp='1362685660' post='1303381891'] but somehow nuvvu cheppina query try chestunte not working for me idi asala...motham docuementaion motham vachestundi ga... thanks for sharing this ippudu nenu ls cd/AFDB/Users/Karthikeya/ ani ichaanu correct ey na nenu ichindi? ila isthe invalid directory antondi [/quote] ls /AFDB/Users/Karthikeya/a* idi Karthikeya directory lo a tho unna files estundi ade nuv cd ante nuv present unna directory nuchi /karthikeya directory ki change avutunav annamata cd- change directory bhayya man cd ani ivvu ardham avudhi cd endukoo man ante manual type anukoo
deals2buy Posted March 7, 2013 Author Report Posted March 7, 2013 [quote name='AggiRamudu' timestamp='1362686020' post='1303381944'] unix lo commands ni kalapadaaniki pipe "| " vaadataaru ... Try like this c[color=#282828][font=helvetica, arial, sans-serif]d/AFDB/Users/Karthikeya/ | ls[/font][/color] [/quote] idi em chestundi bhayya? when I typed this. it said [b]not found[/b] also screen clear cheyyadaniki command kuda cheppandi evaraina?
subbayya Posted March 7, 2013 Report Posted March 7, 2013 [quote name='Kaarthikeya' timestamp='1362686191' post='1303381968'] idi em chestundi bhayya? when I typed this. it said [b]not found[/b] also screen clear cheyyadaniki command kuda cheppandi evaraina? [/quote] clear
Recommended Posts