No one has voted on any posts yet. Votes from other community members are used to determine a member's reputation amongst their peers.
Hi sed -f /opt/DBACheck.sql.sed /opt/DBACheck.sql > /opt/DBACheck.sql.tmp mv -f $DBACheck.sql.tmp $DBACheck.sql where the contents of DBACheck.sql.sed is { s%${DBMS_USER}%SYSTEM%g } DBACheck.sql is a one line file , that contains line with string DBMS_USER which i want to replace it with SYSTEM. But on executing i get DBACheck.sql to be an … |
|
I hve code like echo $1 echo $2 and am executing the code as ./script.sh /home/*.txt /home/*.xsd [B]The corresponding .txt files and .xsd files of the directory are getting substitued as the command line argument .[/B] and it prints smething like data.txt value.xsd [B] Apart frm using * [/B]if i … |
|
file_list='find /home/attrib/ -name *.csv' for fn in $file_list do echo "Inside the loop" echo $fn done I need the list files available in the specified directory find /home/attrib/ -name *.csv - This works on the command line and gives the desired output . But the above script Gives me output … |