02-23-2012
Quote:
OldRepo=`grep svn01g.gdc ${i}/.svn/entries | tail -1 | tr -d '\n'`
I suspect that the higlighted file(s) contain control codes which should not be in a unix text file. Most likely carriage-return characters from a Microsoft computer. Post #19 does not show a sample of one of these files.
Just need to confirm this fact by making the control codes visible. This could equally be done with the unix "od" command but that "sed" command is a quick and easy way of seeng the bad characters.
10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
I'm new to unix scripting. How would I go about pulling the first 3 characters from a variable in ksh and storing in another variable? Thanks. (9 Replies)
Discussion started by: steve6368
9 Replies
2. Shell Programming and Scripting
hi all,
how do i subract variables in shell ?? am trying to space out the headers and the output generated by the shell so they all line up :
currently the output is like this :
servers : users
server1 : 10
latestServer : 50
so i thought... (3 Replies)
Discussion started by: cesarNZ
3 Replies
3. Shell Programming and Scripting
Hi,
I'm new to shell programming.
I have two variables a and b
a=val1
b=val2
could anyone kindly post the shell script to concatenate the values of variable a and b with an underscore(_) in between?
The final output should be val1_val2. (8 Replies)
Discussion started by: badrimohanty
8 Replies
4. Shell Programming and Scripting
I'm trying to set a variable to the output of a command.
This is what the comand output to the display looks like:
/>hciconndump -v TOsiu
Dump of connection(s): TOsiu
----------------------------------------------------------------------
Process: A60Tsiu Connection: TOsiu... (2 Replies)
Discussion started by: troym72
2 Replies
5. Shell Programming and Scripting
I can't believe I can't figure this out... given this code:
CARS_DATA_LIST=`cat /tmp/file1 | awk '{print $1}' `
FMSA_DATA_LIST=`cat /tmp/file2 | awk '{print $1}' `
The value of each of the above variables is:
CARS = a b c d e f g
FMSA = a b c q r s
I want to declare a third... (8 Replies)
Discussion started by: Shoeless_Mike
8 Replies
6. Shell Programming and Scripting
Hello,
I have a tricky problem:
I have a $file with a variable number of occurrences of "ORA-" (in this case two)
..........
EXP-00008: ORACLE error 3113 encountered
ORA-03113: end-of-file on communication channel
EXP-00056: ORACLE error 1403 encountered
ORA-01403: no data found... (9 Replies)
Discussion started by: Laurentiu
9 Replies
7. Shell Programming and Scripting
Hi,
I 'm trying to send an e-mail for every different line in the .txt
for i in {1..$variable}
do
sed -n "/$i$/p" text.txt
done
I have two problems about this.
First one is that for loop doesn't work
and the second one is that i cant get the output of sed (4 Replies)
Discussion started by: ozum
4 Replies
8. Shell Programming and Scripting
I need to know how to concatenate variables in Debian. I am making a interactive script where it ask the user for info to add a user I pull the first letter from the first middle and last name into individual variables now i want to put them all in one variable so i can put it into useradd command ... (4 Replies)
Discussion started by: HackerSeabass
4 Replies
9. UNIX for Dummies Questions & Answers
Hi Friends ,
I want to know how to format the output for the following:
i searched in the forum and couldnt get the exact requirement.
Thanks in advance . (2 Replies)
Discussion started by: i150371485
2 Replies
10. Shell Programming and Scripting
Hi Guys,
I was scratching my head for this for half a day... finally not successful :confused:
Following is the problem
I have a variable
$ var1=123
$ var2-234
$ var3=345
and another Variable
$ i=1
Now i wanted to save these into a Variable as shown below
for i in 1 2 3
do... (5 Replies)
Discussion started by: ramprabhum
5 Replies
LEARN ABOUT LINUX
snmpa_discovery_handler
snmpa_discovery_handler(3erl) Erlang Module Definition snmpa_discovery_handler(3erl)
NAME
snmpa_discovery_handler - Behaviour module for the SNMP agent discovery handler.
DESCRIPTION
This module defines the behaviour of the agent discovery handler. A snmpa_discovery_handler compliant module must export the following
functions:
* stage1_finish/2
The semantics of them and their exact signatures are explained below.
EXPORTS
stage1_finish(TargetName, ManagerEngineID, ExtraInfo) -> ignore | {ok, usm_entry() | [usm_entry()]} | {ok, usm_entry() | [usm_entry()],
NewExtraInfo}
Types TargetName = string()
ManagerEngineID = string()
ExtraInfo = term()
usm_entry() = tuple() compatible with usm.conf
NewExtraInfo = term()
This function is called at the end of stage 1 of the discovery process. It should return either the atom ignore or {ok, usm_entry()
| [usm_entry()]} . See usm_entry() and usm_entry/13 for more info.
If the function returns ignore , then it is assumed that either:
* The caller (of the discovery function) will make the needed updates later.
* The callback function itself did the updates.
In either case, the agent will do nothing, but return the retrieved ManagerEngineID (see discovery for more info) and possible con-
tinue with stage 2 of the discovery process.
The ExtraInfo argument is passed on from the discovery function.
This function may return an updated NewExtraInfo that will be used in subsequent calls to the callback functions. Intended for
future use.
The purpose of this function is to generate the usm- related security data needed for usm processing in the agent. Specifically,
updating the usmUserTable.
When an usm_entry() tuple (or a list of such tuples) is returned, this data is then added to the usmUserTable by the (master-)
agent.
When an usm_entry() tuple (or a list of such tuples) is returned, this data is then added to the usmUserTable by the (master-)
agent.
Note:
Note that the function does not check if this entry already exists.
Note:
Note that this function is executed in the context of the master-agent process.
Ericsson AB snmp 4.19 snmpa_discovery_handler(3erl)