The posted command is not a complete one. You could check about the Here document to get an idea first. And request you to have your title of the thread to be edited as it does not convey what you really want.
This User Gave Thanks to michaelrozar17 For This Post:
It's definitely a spaceship (UFO) with the name "EOF 2" )))
Ok: ${SERVER_DATABASE} - a command, maybe with some options. It was saved in the variable SERVER_DATABASE, -b - option. I think it takes a string as an argument, << EOF - start of here document. The next lines in the scirpt before the line with the only word EOF will be passed as argument to $SERVER_DATABASE command, 2>>/dev/null - no much meaning. It should be 2>/dev/null - redirect stderr to nothing to get rid of error messages on the terminal.
cat teledir.txt
jai sharma 25853670
chanchal singhvi 9831545629
anil aggarwal 9830263298
shyam saksena 23217847
lalit chowdury 26688726
If i use the below command , it is giving me the output with "," in between two name. how ? and also i would like to know the reason for the space used in... (1 Reply)
Hi ,
i am in my initial learning phase of unix. i was going thru the function part.
below is the example which was there but i am not able to understand logic and the use of IFS(internal field separator)
lspath() {
OLDIFS="$IFS"
IFS=:
for DIR in $PATH ; do echo $DIR ; done
IFS="$OLDIFS"... (8 Replies)
Hi All,
Good day, i'm just wondering what is the meaning of this code?
COUNT_EXTRACTED_FILE=`${ECHO_CMD} "${SE_IN_PATH}${SE_IN_FILE}" | ${AWK_CMD} -F"__" '{print $2}'`
Thanks,
-niks(newbie) (2 Replies)
Hi all,
I'm a user and a programmer of UNIX based systems (mainly FreeBSD and Linux).
I have never programmed or tried to fully understand the kernel layer. I haven't a special propouse for learning it, but I'd like to. Can anyone suggest me books, documentation or examples that may help me... (2 Replies)
I'm new to unix so sorry for the confusing question.
I installed OPENSSL following these instructions.
Installing OpenSSH Packages - SPARC and Intel/Solaris 8
I need to run this command, "openssl req -newkey rsa:1024 -keyout server.pf.key -out req.pem" from a keyreq folder I created.
... (13 Replies)
The following regular expression is found in a book I have been reading. It apparently can be used on an /etc/passwd file to find any accounts which have no password. I am having a heck of a time seeing how it works, and I was wondering if someone could run me through it. I will take a stab at... (1 Reply)
Ok, i've been trying to write some shell scripts. nothing challenging, but just automating
All of the tutorials i read say to start the file with
#!/bin/bash
or whatever your path to bash is.
So i do it, and all of my scripts error out saying ./nameofscript:command not found
when i... (4 Replies)