Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.
grep to get file name details
Name: sunilmyneedi Date: November 30, 2006 at 08:16:56 Pacific OS: unix CPU/Ram: none Product: none
Comment:
i am trying to grep for the files having string " failure" in the entire directory.for that i am using grep -l "FAILURE" , this will give only the file name only .. but i need all the details like date when it is created ,owner etc .. similar to what we get when we give ls -ltr
Summary: Hi I need to get the name (only name) of the last updated file or directory in an existing folder and store it in a variable. Thanks in advance. ...
Summary: I have a problem with shell programming as well.. are there any string manipulation functions? for example I read a line: "different ./temp".. "temp" is a file name and I want to get that name separat...
Summary: Obviously, if you change the file structure you stated, this breaks. If this is a script you'll run often, then you probably want to change to the directory where the files reside. When it's the wa...