Search Results

Search: Posts Made By: RavinderSingh13
32,428
Posted By RavinderSingh13
Hello daveaztig14, Could you please change...
Hello daveaztig14,

Could you please change Input_file to /home/abainzd/Input_file and let me know how it goes.

#!/bin/ksh
bad_found=0
log='/home/abainzd/logfile.txt'
while read dir
do
cd...
32,428
Posted By RavinderSingh13
Hello daveaztig14, My sincere apologies,...
Hello daveaztig14,

My sincere apologies, somehow I have not written do after while, could you please try following.

#!/bin/ksh
bad_found=0
log='/home/abainzd/logfile.txt'
while read dir
do...
32,428
Posted By RavinderSingh13
Hello daveaztig14, A simple way could be put...
Hello daveaztig14,

A simple way could be put all the directories information into a Input_file and you could read it from there like for an example as follows.

cat Input_file...
32,428
Posted By RavinderSingh13
Hello daveaztig14, Could you please try...
Hello daveaztig14,

Could you please try following and let me know if this helps.

find . -type f -exec grep -H -c 'FTRORD' {} \+ | grep 0$ | cut -d':' -f1
I have checked above in BASH...
32,428
Posted By RavinderSingh13
Hello daveaztig14, You requirement is not...
Hello daveaztig14,

You requirement is not clear but if you want to read/print the file's content on standard output in a specific directory then following may help you in same.

for file in...
Showing results 1 to 5 of 5

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