10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Hi,
On Linux i get the desired ouput:
echo "<value>WEB_USER</value>" | sed 's/\(<value>\|<\/value>\)//g'Output:
Executing the same command on Solaris:
echo "<value>WEB_USER</value>" | sed 's/\(<value>\|<\/value>\)//g'Output:
I need to get the desired output on Solaris i.e. WEB_USER and... (4 Replies)
Discussion started by: mohtashims
4 Replies
2. Shell Programming and Scripting
Hello,
I have a ksh script that uses code below. For some reason it works under linux but fails in unix. Any idea why?
if ]; then ...
Thanks (9 Replies)
Discussion started by: rdogadin
9 Replies
3. Shell Programming and Scripting
Hi, I have a question.
I define a function using sed command:
replace()
{
searchterm=$1
replaceterm=$2
sed -e "s/$searchterm/$replaceterm/ig" $3 > $WORK'tempfile.tmp'
mv $WORK'tempfile.tmp' $3
}
Then I call
replace 'test = 0' 'test = 1' $myfile
This code... (1 Reply)
Discussion started by: Dark2Bright
1 Replies
4. Shell Programming and Scripting
Hi, I have a question.
I define a function using sed command:
replace()
{
searchterm=$1
replaceterm=$2
sed -e "s/$searchterm/$replaceterm/ig" $3 > $WORK'tempfile.tmp'
mv $WORK'tempfile.tmp' $3
}
Then I call
replace 'test = 0' 'test = 1' $myfileThis code works well in... (1 Reply)
Discussion started by: Dark2Bright
1 Replies
5. Shell Programming and Scripting
Hi all,
Our application installation uses "sed" command to delete rest of line. It work perfect on Linux but fail on Solaris.
The OS versions are Solaris 9 and Linux Red Hat AS 3.
yourfile.txt
hello and world
cat and dog
hello world
in linux:
cat yourfile.txt | sed ‘s/\(\+\)... (3 Replies)
Discussion started by: javac2005
3 Replies
6. Shell Programming and Scripting
I have this simple script:
#! /usr/bin/sh
#*****************************************************************************
# *** get_input (question variable) ***
#*****************************************************************************
get_input ()
{
echo "${BOLD}${1} : "
read... (14 Replies)
Discussion started by: C|KiLLeR|S
14 Replies
7. UNIX for Dummies Questions & Answers
I set up remote printing on a clients Unix server to my Windows XP USB printer. My USB printer is connected directly to my PC (no print server and no network input on printer). With my Win XP PC connected to my cable modem (without the router), i can do
lp -dhp842c /etc/hosts and it prints. I... (7 Replies)
Discussion started by: jmhohne
7 Replies
8. UNIX for Dummies Questions & Answers
Hi everybody ,
I'm new here in the forum and new Dummy in L|U systems (Hope finding welcomes...:)).
I just want to ask : What is the OS's that works on servers and the OS's that work as client OS??
I just know that Solaris Work on sarvers :D..
and i'm glad to be memmber in this... (1 Reply)
Discussion started by: derbi
1 Replies
9. UNIX for Dummies Questions & Answers
i got my computer in 2k, built it myself. top of the line then and better than most still now.
one problem however is i was never able to install unix because the old kernels were not compatible with SATA hard drives
i dont have any IDE drives nor do i want any
I want mine on SATA, but every... (5 Replies)
Discussion started by: GXDeMoNN
5 Replies
10. Shell Programming and Scripting
Hi folks,
Our application installation uses "sed" command to append string after specific line or after line number.
Both cases work perfect on Linux but fail on Solaris.
The OS versions are Solaris 9 and Linux Red Hat AS 3.
i.g:
Linux:
-----
file foo.txt
aaa
bbb
ccc
ddd
root#... (4 Replies)
Discussion started by: nir_s
4 Replies