KOTC Posted March 7, 2013 Report Posted March 7, 2013 [quote name='Kaarthikeya' timestamp='1362681656' post='1303381357'] naaku okka mukka bhi raadu Unix ivaale started learning adi kuda office lo edo cheyyamanaru ani so my question is very basic - Naaku oka directory lo files ela chudalo telusu? $ls directory name alaage aa directory lo [b]abc.txt[/b] ane file undo ledo check cheyyalante ela? not only that specific file...I want all the files that start with letter [b]a[/b] vaatiki qurey emani raayalo cheppandi koddiga [/quote] "ls" ante list files annamata "ls -lah" vadu eppudu ani files vastai "ls" filename ivali ---a tho start annav kadha a e directory lo kavalo a directory lo cd directory name "ls a*" ani ivvu a tho start aye ani vastai unte "ls -lah" este a directory ani files vastai present nuv e path lo unnav telusukovadaniki Pwd 1
k2s Posted March 7, 2013 Report Posted March 7, 2013 [quote name='innovative' timestamp='1362682784' post='1303381538'] [/quote] alagey [img]http://www.bewarsetalk.net/discus/movieanimated3/GM%20opeeser.gif[/img]
innovative Posted March 7, 2013 Report Posted March 7, 2013 [quote name='Kaarthikeya' timestamp='1362682800' post='1303381540'] hehe...ya ala kuda try chesa..but its not working find ani edo unix command undi...but daaniki parameters ela pass cheyyalo ardham kaavatle [/quote] pyna subbayya ichad choodu find command ...
innovative Posted March 7, 2013 Report Posted March 7, 2013 [quote name='Scrooge' timestamp='1362682906' post='1303381556'] alagey [img]http://www.bewarsetalk.net/discus/movieanimated3/GM%20opeeser.gif[/img] [/quote] [img]http://lh5.ggpht.com/-NsODLqhVOas/UQ0W4qBJn_I/AAAAAAAAJrY/xzbRQ1Y2Mik/s150/P-3.gif[/img]
KOTC Posted March 7, 2013 Report Posted March 7, 2013 [url="http://www.tjhsst.edu/~dhyatt/superap/unixcmd.html"]http://www.tjhsst.ed...ap/unixcmd.html[/url] http://freeengineer.org/learnUNIXin10minutes.html
deals2buy Posted March 7, 2013 Author Report Posted March 7, 2013 [quote name='cherlapalli_jailer' timestamp='1362682690' post='1303381521'] unix commands search kottu boss u will get full help with example goto PDF thread u will get document on unix Best is google [/quote] Google lo chusa kaani aa parameters lo pass cheyyadam ardham kaaledu boss..anduke ikkada asked..simple ga cheptarani [quote name='subbayya' timestamp='1362682781' post='1303381536'] find . -name 'a*' -exec ls -tl {} \; [/quote]ee error vachindi bhayya Usage: find [-H | -L] Path-list [Expression-list]
deals2buy Posted March 7, 2013 Author Report Posted March 7, 2013 [quote name='Joey_Tribbiani' timestamp='1362682807' post='1303381541'] ls -alrt /yourdirectorypath/a* [/quote] Not a recoginized flag antondi mama [quote name='Scrooge' timestamp='1362682826' post='1303381544'] [img]http://www.picasion.com/pic16/cf286c38cc0746bc660fca2493cb1f57.gif[/img] adi naaku telvadu... [/quote] nee tech endo neeke telvada? [quote name='KOTC' timestamp='1362682895' post='1303381554'] "ls" ante list files annamata "ls -lah" vadu eppudu ani files vastai "ls" filename ivali ---a tho start annav kadha a e directory lo kavalo a directory lo cd directory name "ls a*" ani ivvu a tho start aye ani vastai unte "ls -lah" este a directory ani files vastai present nuv e path lo unnav telusukovadaniki Pwd [/quote]thanks bhayya...but aa cd directory name ani edo annav kada...aa part ardham kaaledu.. nenu adigina scenario ki query raasi isthe ardhamavutundi anukunta clear ga.. [quote name='innovative' timestamp='1362682917' post='1303381558'] pyna subbayya ichad choodu find command ... [/quote]that didnt work
subbayya Posted March 7, 2013 Report Posted March 7, 2013 [quote name='Kaarthikeya' timestamp='1362683107' post='1303381587'] Google lo chusa kaani aa parameters lo pass cheyyadam ardham kaaledu boss..anduke ikkada asked..simple ga cheptarani ee error vachindi bhayya Usage: find [-H | -L] Path-list [Expression-list] [/quote] naku bane work avuthundi I verified find (space) . (space) -name (space) 'a*' (space) -exec (space) ls (space) -tl (space) {} (space) \; nee ea kind of unix?
innovative Posted March 7, 2013 Report Posted March 7, 2013 [quote name='Kaarthikeya' timestamp='1362683586' post='1303381646'] Not a recoginized flag antondi mama nee tech endo neeke telvada? [/quote] he is telling lies .. [img]http://lh5.ggpht.com/-NsODLqhVOas/UQ0W4qBJn_I/AAAAAAAAJrY/xzbRQ1Y2Mik/s150/P-3.gif[/img]
9ine Posted March 7, 2013 Report Posted March 7, 2013 find /path/to/dir -type f -name "a*" -print eg: find . -type f -name "a*" -print ./authorized_keys ./dir/ab.txt ./ars1.txt ./ars.txt . in the find command means current dir Also you can replace the . with the dir where you want to search.
KOTC Posted March 7, 2013 Report Posted March 7, 2013 [quote name='Kaarthikeya' timestamp='1362681656' post='1303381357'] naaku okka mukka bhi raadu Unix ivaale started learning adi kuda office lo edo cheyyamanaru ani so my question is very basic - Naaku oka directory lo files ela chudalo telusu? $ls directory name alaage aa directory lo [b]abc.txt[/b] ane file undo ledo check cheyyalante ela? not only that specific file...I want all the files that start with letter [b]a[/b] vaatiki qurey emani raayalo cheppandi koddiga [/quote] nuv e directory lo chudali anukutunav: example directory name :AFDB anuko mundu nuv "pwd" ivvu nuv e path lo unnav o vastundi then "cd AFDB" ani ivvu travtha nuv "a" tho start aye filename kosam chustunav ga "ls -lah a* "ivvu a tho start aye files vastai
deals2buy Posted March 7, 2013 Author Report Posted March 7, 2013 [quote name='subbayya' timestamp='1362683677' post='1303381659'] naku bane work avuthundi I verified find (space) . (space) -name (space) 'a*' (space) -exec (space) ls (space) -tl (space) {} (space) \; nee ea kind of unix? [/quote] indaaka find taruvatha "." ivvaledu...but even though its not returing the files that start with "a"... but ls chesinappdu matram a tho start ayye files chupistondi chalane ye kind of unix ante? nenu kotha bhayya...first post lo cheppinattu ivale naaku access vachindi..and first time putty use chestunna [quote name='innovative' timestamp='1362683685' post='1303381662'] he is telling lies .. [img]http://lh5.ggpht.com/-NsODLqhVOas/UQ0W4qBJn_I/AAAAAAAAJrY/xzbRQ1Y2Mik/s150/P-3.gif[/img] [/quote]hmm
subbayya Posted March 7, 2013 Report Posted March 7, 2013 [quote name='innovative' timestamp='1362683685' post='1303381662'] he is telling lies .. [img]http://lh5.ggpht.com/-NsODLqhVOas/UQ0W4qBJn_I/AAAAAAAAJrY/xzbRQ1Y2Mik/s150/P-3.gif[/img] [/quote] naku ade anipisthandi....
subbayya Posted March 7, 2013 Report Posted March 7, 2013 [quote name='Kaarthikeya' timestamp='1362683885' post='1303381684'] indaaka find taruvatha "." ivvaledu...but even though its not returing the files that start with "a"... but ls chesinappdu matram a tho start ayye files chupistondi chalane ye kind of unix ante? nenu kotha bhayya...first post lo cheppinattu ivale naaku access vachindi..and first time putty use chestunna hmm [/quote] uname -a aa command run chesi output post chei..
deals2buy Posted March 7, 2013 Author Report Posted March 7, 2013 [quote name='9ine' timestamp='1362683833' post='1303381677'] find /path/to/dir -type f -name "a*" -print eg: find . -type f -name "a*" -print ./authorized_keys ./dir/ab.txt ./ars1.txt ./ars.txt . in the find command means current dir Also you can replace the . with the dir where you want to search. [/quote]aa type and name dagara em ivvali? [quote name='KOTC' timestamp='1362683847' post='1303381679'] nuv e directory lo chudali anukutunav: example directory name :AFDB anuko mundu nuv "pwd" ivvu nuv e path lo unnav o vastundi then "cd AFDB" ani ivvu travtha nuv "a" tho start aye filename kosam chustunav ga "ls -lah a* "ivvu a tho start aye files vastai [/quote]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]
Recommended Posts