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 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
3. 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
4. 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
5. 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
6. Shell Programming and Scripting
Hi, guys, I'm not a high-end programmer, but I've been trying to write a script to remove all of the b.rtbn2.cn (and b.adserv.cn and any future variation) injected script tags on the server. (Still working on security fixes to prevent it in the future, just need to clean up now.)
My approach is... (1 Reply)
Discussion started by: zzlegs
1 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. 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
9. UNIX for Dummies Questions & Answers
where is the best location in a system to install software globally for users to use. asuming your the sys admin. i know it might not matter, but just wondering. (2 Replies)
Discussion started by: savage
2 Replies