Search Results

Search: Posts Made By: SVRao19056
12,780
Posted By SVRao19056
Bash command to find a file and print contents
I need to find a file and print its contents
I am trying but it is not working
find -path /opt/app-root/src/.npm/_logs -type f -name "*.log" -print
Version

$ bash -version
GNU bash, version...
1,311
Posted By SVRao19056
Thank you for simper solution!
Andrew ,
You suggested a simpler solution . I am a newbie and simpler alternatives are appreciated
8,093
Posted By SVRao19056
This works . I have seen this error before . That...
This works . I have seen this error before . That time it was because I was missing a semi colon. I suspect its the same in your case

echo "enter file name " ; read input ; if [ -e $input ];...
1,311
Posted By SVRao19056
I solved this myself . cids=(`sudo docker ps...
I solved this myself .

cids=(`sudo docker ps -aq`); export cids;echo "cids = ${cid[@]}"; for containerId in "${cids[@]}" ; do sudo docker rm -f "${containerId}"; done'

--- Post updated at...
1,311
Posted By SVRao19056
Need a Bash script for iterating thru an array and running a command
Hi ,
I am a total beginner so bear with me.

I have the below code which works . I need to extend it by iterating thru the array arr and executing a command in each loop. some thing on the lines...
Showing results 1 to 5 of 5

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