9 More Discussions You Might Find Interesting
1. UNIX for Beginners Questions & Answers
Hi Gurus,
Is there a way to call a variable inside a function anywhere within the script?
Thanks.
BR,
Ernesto (2 Replies)
Discussion started by: ernesto
2 Replies
2. UNIX for Advanced & Expert Users
Dear All,
I want to get all the IPs of the A RECORDS for mail.google.com.
The aim is to deny access to these IPs.
I learnt that mail.google.com has several IPs.
I did the following steps:
1. whois google.com
2. I got the following as its DOMAIN SERVERS:
3.# dig @ns1.google.com a... (1 Reply)
Discussion started by: coolatt
1 Replies
3. UNIX for Dummies Questions & Answers
Hi,
I'm trying to update the last two characters coming in a string globally in a file.
Here is the sample data:
file1
In file1, I want to have all instances replace where _o is appearing in the end of a word with _g. If _o is appearing in the middle or any other position except the... (2 Replies)
Discussion started by: er_ashu
2 Replies
4. Shell Programming and Scripting
I am attempting to use a shell script to append the string "AAA" to the beginning of over 400 files and I am just missing that little piece to finish.
I am still a newbie and I am still learning scripting. This is what I have so far:
#!/usr/bin/ksh
find /home/vedder191/AAA_revised -type... (4 Replies)
Discussion started by: vedder191
4 Replies
5. Shell Programming and Scripting
Hi
I've few shell scripts which are responsible for triggering the continuous builds for a specific module. Each shell script is for a Module. Shell script has some module specific settings in the beginning and then it triggers the builds (which are nothing but some combination of Java programs... (2 Replies)
Discussion started by: kgsrinivas
2 Replies
6. Shell Programming and Scripting
This should replace the 1st and the 3rd occurance of "the":
sed -e "s/ the / those /1;s/ the / these /3"
This works only by line.
If there is a second "the", but in an other line for example, it counts it as 1st again and replaces it again.
How can I replace "the" 1st and 3rd... (14 Replies)
Discussion started by: lowmaster
14 Replies
7. Shell Programming and Scripting
Hi
I am not if this is possible: is it possible in bach (or another shell) to redirect GLOBALLY the stdout/stderr channels to a file.
So, if I have a script
script.sh
cmd1
cmd2
cmd3
I want all stdout/stderr goes to a file. I know I can do:
./script.sh 1>file 2>&1
OR
... (2 Replies)
Discussion started by: islegmar
2 Replies
8. Shell Programming and Scripting
I have a bit of javascript
function hasSpaces(name)
{
if(name.search(/^\s*/) != -1){
alert(name);
name.replace((/^\s*/, "~"))
alert(name);
}
return name;
} ... (2 Replies)
Discussion started by: insania
2 Replies
9. Solaris
I am the new admin of about 50 or so Solaris systems (both 8 & 9) that I need to change the root (&shadow) password to after the prior admin left.
Is there a tool that can be used or a script that you like to use that can be used to perform a global change to prevent having to login to each... (2 Replies)
Discussion started by: sconewb
2 Replies