Search Results

Search: Posts Made By: NickKnight
1,247
Posted By NickKnight
Error due to unset variable - Solaris vs GNU Linux - Help needed
Hi all,

I have a weird problem.
When i run the below code in SunOS and Linux i get different outputs

====
$ cat tst.ksh
#!/bin/ksh


echo "Abc" > $LOG_FILE
echo "Ret - $?"
=====
...
3,386
Posted By NickKnight
How to read a two files, line by line in UNIX script
You can accomplish this using join command.

<Syntax>: join file.txt file1.txt

But first you need to have both the files sorted and also the first field in both the files should be exactly...
2,818
Posted By NickKnight
Change only first line of the match
Please replace your sed statement with the below
sed -r '1s!${LINE}!leprechaun.host.uri.list=raft://${RAFTIP}:${RAFTPORT}!g HostSocket.txt' > tmp.properties

the -r is extended regexp and the 1...
Showing results 1 to 3 of 3

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