Skip to content

awk ‘FNR == 2 {print}’ issue

I have some task on which i need to know the install date of WLS which is located in second row of file called envVars.properties which is located in /opt/weblogic1221/wlserver_12.2.1/installation/install/envVars.properties. I have server which has multiple versions of WL there for I use * in /opt/weblogic*/w…

Why this variable lies on same address

Here I have taken two local variables and printing the address of both. I am getting both addresses is same how? code is here: and the output is: here the str and arr[1] address are the same. please help me out. thank you in advance Answer In char arr[][15]={0};, the blank subscript leaves it to the compiler …

How to replace ‘>> $log_file 2>&1’ from all files

In my files commands are like : File1.sh: File2.sh File3.sh I am looking for a command to remove the line where defined variable ‘log_file’ from all the files AND remove only ‘>> $log_file 2>&1’ part from all the files Output in files: File1.sh: echo -e “n Output is …