I have written following code to do: ls -l | wc -w, it works:
but when there are not only a single "|", if there are more such as:
ls -l | sort -r | sort | sort -r, This program does not work, i want to know how could i deal with it when there are more "|", another situation is that, if it mixes... (2 Replies)
I'm trying to learn how to get my script to execute the enter button when it telnets into a router and the router displays output but you need to press the space bar or enter button to continue displaying my output of the router.
How is this done? (0 Replies)
hi there, could use some basic PATH advice, i think, or something
find sometimes work, but which hasn't ever seemed to. for years!
what am i doing wrong that the commands which and find rarely work?
they used to work on the workstations i used ages ago...
running 10.5.8 because i... (4 Replies)
This is the script:
#!/bin/sh
if ; then rm -rf /usr/share/WallpaperChanger; fi
if ; then rm -rf /usr/bin/wallch; fi;
if ; then rm -rf /usr/share/applications/wallch.desktop; fi
if ; then rm -rf /usr/share/doc/wallch; fi
if ; then rm -rf /usr/share/man/man1/wallch.1.gz; fi
echo "Delete... (4 Replies)
Hi,
I have line in input file as below:
3G_CENTRAL;INDONESIA_(M)_TELKOMSEL;SPECIAL_WORLD_GRP_7_FA_2_TELKOMSEL
My expected output for line in the file must be :
"1-Radon1-cMOC_deg"|"LDIndex"|"3G_CENTRAL|INDONESIA_(M)_TELKOMSEL"|LAST|"SPECIAL_WORLD_GRP_7_FA_2_TELKOMSEL"
Can someone... (7 Replies)
the below code will search attr string inside makefile under the modelno on given path.
echo "Enter model no for searching string inside makefile"
read inputs2
#find /pools/home_unix/sapte/work/models/model/$inputs2 -name "makefile" | xargs grep "attr" \;
#;;I am getting below error.... (7 Replies)
Hello. I recently downloaded, configured and executed make on libjpeg.
Until there all worked well. Then suddenly when executing what shall be the simplest part, it returned this error message:
I have no idea as to why this problem is happening, since cjpeg was successfully built.
This is... (4 Replies)
Discussion started by: colt
4 Replies
LEARN ABOUT HPUX
evmeventwrite
EvmEventRead(3) Library Functions Manual EvmEventRead(3)NAME
EvmEventRead(), EvmEventWrite() - perform I/O of EVM events to and from a file
SYNOPSIS
Library
EVM Support Library
Parameters
event For the return operand created for the event read. For the event to be written.
fd The file descriptor to which the event is written, or from which it is read.
DESCRIPTION
The routine creates a new event structure and populates it with an event read from the supplied file descriptor
The routine must be used to destroy the new event when it is no longer needed.
The routine writes the supplied event to the specified file descriptor It does not destroy the event. If the event is no longer needed,
call
RETURN VALUE
The operation completed without error.
An end-of-file condition was encountered while reading.
One of the arguments to the function is invalid.
An operation failed because an attempt to acquire heap memory failed.
An error occurred while reading an event.
An error occurred while writing an event.
ERRORS
The value of is not set.
SEE ALSO
Routines
EvmEventDestroy(3).
Event Management
EVM(5).
EVM Events
EvmEvent(5).
EvmEventRead(3)