Search Results

Search: Posts Made By: Ghadamyari
2,948
Posted By Ghadamyari
Convert .../($var1|$var2)/... regex to string
Hello,

In one part of my shell program I need to translate many of lines in the following pattern :

/(folder1|...|folderN)/(sub1|...|subN)/.../(file1|...|fileN)
into strings :
...
1,769
Posted By Ghadamyari
Is it possible to run these commands in one line...
Is it possible to run these commands in one line ?
I need them to use on openvz os template but it just accept one-line command.
1,769
Posted By Ghadamyari
Hello, Thanks! Works great ! - Why you...
Hello,

Thanks! Works great !
- Why you have removed /g in sed command ?
- Is it possible to make this command in one line ? such this :
sed -i /etc/squid/squid.conf -e "s/IP-OF-SERVER/$REP/" |...
1,769
Posted By Ghadamyari
Help :: Simple Shell Scripting
Hello,

I want to find the "IP-OF-SERVER" in /etc/squid/squid.conf And replace it with The IP of server.
I know this command returns the IP of server :
ifconfig | grep 'inet addr:'| grep -v...
Showing results 1 to 4 of 4

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