![]() |
|
|
google unix.com
|
|||||||
| Forums | Register | Forum Rules | Links | Albums | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| UNIX for Advanced & Expert Users Expert-to-Expert. Learn advanced UNIX, UNIX commands, Linux, Operating Systems, System Administration, Programming, Shell, Shell Scripts, Solaris, Linux, HP-UX, AIX, OS X, BSD. |
More UNIX and Linux Forum Topics You Might Find Helpful
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| ls -laR | grep "^-" | awk '{print $9}'| grep "$.txt" | DNAx86 | Shell Programming and Scripting | 13 | 04-18-2008 12:53 AM |
| Development Releases: Linux Mint 4.0 Beta "Fluxbox", 4.0 Alpha "Debian" | iBot | UNIX and Linux RSS News | 0 | 01-04-2008 03:00 PM |
| Explain the line "mn_code=`env|grep "..mn"|awk -F"=" '{print $2}'`" | Lokesha | UNIX for Dummies Questions & Answers | 4 | 12-20-2007 01:52 AM |
| grep to find content in between curly braces, "{" and "}," | keshav_rk | Shell Programming and Scripting | 4 | 08-09-2007 11:14 PM |
| How to "Print Screen" from a dumb terminal on AIX? | stembe | UNIX for Advanced & Expert Users | 3 | 11-15-2002 12:01 PM |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
||||
|
Print The ouput From ls | grep "!!!"
guys forget the find command coz with find command u can't get condational output like grep. I will give small example :-
Apr 10 09:12 aacbl222_12aug1998.lqc Apr 10 09:12 sscbl4534_4sep2001.lqc Apr 10 09:12 ah66fmi_5jan1997.lqc Apr 10 09:12 y313h1_7sep1998.lqc May 11 09:12 aalike_9aug2000.lqc all this files and thosands more in /test/test2 to get my file I should give some parameter " in this example I give 2 gre some time it will take more than 6 grep's to get what I want " forget it " -------------------------------------------------- ls -lrt | grep "Apr 10" | grep 1998 Apr 10 09:12 y313h1_7sep1998.lqc Apr 10 09:12 aacbl222_12aug1998.lqc -------------------------------------------------- now when I want to print what I got from my command I will do this : - print y313h1_7sep1998.lqc ; print aacbl222_12aug1998.lqc when I type ls -lrt | grep "Apr 10" | grep 1998 | lp I will get the printe of result not the file it self...Pleassse try to understand me and execuse me for my "GOOD" english Better to read all what I wrote above or just read this [ HOW I CAN PRINT THE RESULTED FILES AS A FILE NOT AS OUTPUT ] |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|