Jump to content

Come Here


Chitralekha

Recommended Posts

ante enti?

 

lRI2ms.gif

 

 

 

suppose oka Directory  loooo 10files unnai.. 4 file names lo madhyaloo INDIA ani undhi....

 

aa file list chudalante... ee command use cheyyali?

Link to comment
Share on other sites

suppose oka Directory  loooo 10files unnai.. 4 file names lo madhyaloo INDIA ani undhi....

 

aa file list chudalante... ee command use cheyyali?

General ECHO vaadutaaru kadha.. to check .. not sure.. just Guess..;)

Link to comment
Share on other sites

ECHO output display ki vadataru

 

lRI2ms.gif

Oh kk.. mari nenu ila use chesta general to Analise Prod Logs: "find . -type f | xargs grep -l "INDIA"...

Link to comment
Share on other sites

#!/bin/bash

read -p "Enter a filename: " filename

if [[ -f $filename ]] ; then
echo "The file $filename exists."
read -p "Enter the word you want to find: " word
grep
"$word" "$filename"
else
echo "The file $filename does not exist."
fi

  • Upvote 1
Link to comment
Share on other sites

Oh kk.. mari nenu ila use chesta general to Analise Prod Logs: "find . -type f | xargs grep -l "INDIA"...

 

that is find command oka file lo India ane work search chestunav

Link to comment
Share on other sites

×
×
  • Create New...