Home » Infrastructure » Unix » HP-UX need help
HP-UX need help [message #216423] Sat, 27 January 2007 09:55 Go to next message
frank.svs
Messages: 162
Registered: February 2006
Senior Member
Hi,

In present working dir i have 3, files

$ls
load_ABC_tooracle.dat
load_BBC_tooracle.dat
load_XYZ_tooracle.dat

Now i my doubt, is there any option in Ls cmd in HP-UX,
so that i can igonre filenames with pattern "XYZ" and display only
load_ABC_tooracle.dat
load_BBC_tooracle.dat


Thanks in advance.

Regards,
frany
Re: HP-UX need help [message #216425 is a reply to message #216423] Sat, 27 January 2007 10:37 Go to previous message
ebrian
Messages: 2794
Registered: April 2006
Senior Member
One possibility is:

ls | grep -v "XYZ"
Previous Topic: unix shell script is not executing .
Next Topic: Date Comparision
Goto Forum:
  


Current Time: Thu Mar 28 20:32:48 CDT 2024