![]() |
|
|
|
|
|||||||
| Forums | Portal | Register | Forum Rules | FAQ | Contribute | Members List | Arcade | Search | Today's Posts | Mark Forums Read |
| UNIX for Dummies Questions & Answers If you're not sure where to post a UNIX or Linux question, post it here. All UNIX and Linux newbies welcome !! |
|
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| listing .sl files for each process id in hp-ux 11i | sanjaykhuntia | HP-UX | 0 | 02-25-2008 06:41 AM |
| Listing Files | krishna_sicsr | High Level Programming | 3 | 04-05-2007 10:32 AM |
| Listing of files | Vitalka | Linux | 1 | 03-02-2005 06:32 AM |
| help - listing files | richarmj | Filesystems, Disks and Memory | 2 | 10-02-2003 06:14 AM |
| Recursive directory listing without listing files | psingh | UNIX for Dummies Questions & Answers | 4 | 05-10-2002 07:52 AM |
|
|
Submit Tools | LinkBack | Thread Tools | Display Modes |
|
#1
|
|||
|
|||
|
listing files along with grep -v
When I run the command ls | grep -v SNMP It outputs all the files into one column. How can I list them in multiple columns?
|
| Forum Sponsor | ||
|
|
|
#2
|
||||
|
||||
|
Quote:
Code:
ls !(*SNMP*) Code:
shopt -s extglob ls !(*SNMP*) |
|
#3
|
|||
|
|||
|
Sorry, these are directories. When I run the command you suggest, it lists all the directories and their files. Is there a command to list just the directories?
|
|
#4
|
||||
|
||||
|
Quote:
Code:
ls -d !(*SNMP*) |
|
#5
|
|||
|
|||
|
what would be the syntax for csh?
|
|
#6
|
||||
|
||||
|
Why csh?
Don't know if csh (and variants) supports extended globbing ... Code:
ls|grep -v 'SNMP'|pr -5 -l10 |
||||
| Google The UNIX and Linux Forums |