Search Results

Search: Posts Made By: nexional
1,027
Posted By nexional
There are too many '{'
Let's say
X="MyJVM"Here's the command I'm trying to run -
sed -n "/serverName=\"${X}\"/,/<\/serverEntries>/{/BOOTSTRAP_ADDRESS/{n;s/.*port=\"\([^\"]*\)\".*/\1/;p;};}" serverindex.xmlIt fails saying...
Forum: Solaris 09-25-2014
5,183
Posted By nexional
Yes Don, there are other utilities in there...
Yes Don, there are other utilities in there (/usr/xpg4/bin) which are causing problem so I can't just set the PATH to prioritize this path.

Also, I don't have permissions to change any of the...
Forum: Solaris 09-25-2014
5,183
Posted By nexional
The script I'm building is generic is supposed to...
The script I'm building is generic is supposed to be used on many platforms e.g. HP, AIX, SOLARIS. For the first two I still need to refer /usr/bin/grep but for SOLARIS I'm setting up aliases like...
Forum: Solaris 09-25-2014
5,183
Posted By nexional
Alias not working
Hi,

I'm on Solaris (SunOS wsp2cm01 5.10 Generic_150400-10 sun4v sparc SUNW,Sun-Fire-T200). Trying to set up an alias like below -
alias grep="/usr/xpg4/bin/grep"but when I call grep in my command...
3,085
Posted By nexional
Great, thanks guys. Also I was wondering if...
Great, thanks guys.
Also I was wondering if there's a way to check if the stream is empty or not?
Currently what I do it check the size of /tmp/$$ after I created it from the steam. Is there a...
3,085
Posted By nexional
Creating a file from input stream
Hi,

Need some help with creating a file from input steam. Meaning from following command myfunc should be able to store the input stream to a file.

echo a b c | myfunc

The file thus created...
920
Posted By nexional
Find the smallest block
Hi,

Here's my data -

aa
bb
cc
aa
dd
ee

Now I need to find the smallest block surrounded by aa & dd. Following is not helpful -

sed -n '/aa/,/dd/p' file

I need only -
aa
dd
17,704
Posted By nexional
Great Thanks! Exactly what I was looking for.
Great Thanks! Exactly what I was looking for.
17,704
Posted By nexional
Host doesn't have 'tac' command. For now what I...
Host doesn't have 'tac' command. For now what I tried is -

grep 'string' file | tail -1

Was wondering if sed might have a better way.
17,704
Posted By nexional
Sed, last occurrence
How to find last occurrence of a keyword in a file using sed.
2,351
Posted By nexional
Thanks! I tried a few eval combinations but guess...
Thanks! I tried a few eval combinations but guess not this one :( I feel so stupid :D
2,351
Posted By nexional
Variable resolution in File content
I have a file File1 containing lines like below

apple ${FRUIT}-Color
orange ${FRUIT}-Color
banana ${FRUIT}-Color

Now, in my shell I'm reading the file like below

while read FRUIT DESC; do...
8,514
Posted By nexional
Help with mailx, uuencode
Here's my code -
FILES="file1 file2 file3"
for File in ${FILES}; do
uuencode "${File}" "$(basename ${File}"
done | mailx email@id.com
This works as expected, meaning emailing the files as...
2,917
Posted By nexional
Thanks! I suspected I'm asking too much :D
Thanks! I suspected I'm asking too much :D
2,917
Posted By nexional
Breaking a pipe
Here's my code -

for File in "${Files}"; do
uuencode "${File}" "$(basename ${File} 2>&-)" 2>&-;
done | mailx -s "subject" "a@b.c"

Now I want to know if there a way to *not* send an...
Forum: HP-UX 11-04-2008
9,827
Posted By nexional
I had the same issue. Later on I found that it...
I had the same issue. Later on I found that it was due to the LD_PRELOAD definition which I tried to modify in .profile. The way out for me was to comment it & ksh was all good again.
Showing results 1 to 16 of 16

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