Search Results

Search: Posts Made By: lamilami
187,729
Posted By lamilami
/bin/bash is the best........no doubt.
/bin/bash is the best........no doubt.
9,109
Posted By lamilami
what i do is: ls -R > allfiles it stores all...
what i do is:
ls -R > allfiles
it stores all filenames in directory wise in a file; named allfiles.
then
grep myfile from allfiles.
this is the fastest way that i know if you have to search...
33,652
Posted By lamilami
try grep -- "/pb" or use fgrep.
try
grep -- "/pb"
or use fgrep.
2,883
Posted By lamilami
how to search -n in a file with grep
can anybody let me know how can i search for "-n" in a text file; or if my file name is "-n" (which is legal in Unix) how do i deal with that?
thanks
5,100
Posted By lamilami
use if []; then .....else...... use the exit...
use if []; then .....else......
use the exit status of grep as condition
grep exits with 0 if the string is found, 1 if not found and 2 if the file is not there.
then use > to redirect your output...
Showing results 1 to 5 of 5

 
All times are GMT -4. The time now is 07:39 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy