09-02-2018
Again, may depend on the contents of $match. What's it?
10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Hi,
I have a shell script to build components of a product. The follow snippet will explain what I am doing.
# !/bin/sh
for choice in "$@" ;
do
case $choice in
"o") echo "Calling $choice" ; o ;;
"i") echo... (8 Replies)
Discussion started by: vino
8 Replies
2. Shell Programming and Scripting
i have been doing this script to match every line in a current log file (access_log) with strings that i list from a path (consist of 100 of user's name ex: meggae )..
and then make a directory of every string from the text file (/path/meggae/) --->if it matched..
then print every line from the... (3 Replies)
Discussion started by: meggae
3 Replies
3. Shell Programming and Scripting
Hi ,
I have input file and i want to extract below strings
<msisdn xmlns="">0492001956</ msisdn> => numaber inside brackets
<resCode>3000</resCode> => 3000 needs to be extracted
<resMessage>Request time
getBalances_PSM.c(37): d out</resMessage></ns2:getBalancesResponse> => the word... (14 Replies)
Discussion started by: sushmab82
14 Replies
4. Shell Programming and Scripting
i have a file1 with many lines. i have a script that will let me input a string. for example, APPLE. what i need to do is to copy all lines from file1 where i can find APPLE or any string that i specify and paste in on file 2
thanks in advance! (4 Replies)
Discussion started by: engr.jay
4 Replies
5. Shell Programming and Scripting
Hi,
1_strings file contains
$ cat 1_strings
/home/$USER/Src
/home/Valid
/home/Review$ cat myxml
<projected value="some string" path="/home/$USER/Src">
<input 1/>
<estimate value/>
<somestring/>
</projected>
<few more lines >
<projected value="some string" path="/home/$USER/check">... (4 Replies)
Discussion started by: greet_sed
4 Replies
6. Shell Programming and Scripting
Hi,
i want to know how to compare string of file with input string
im trying following code:
file_no=`paste -s -d "||||\n" a.txt | cut -c 1`
#it will return collection number from file
echo "enter number"
read " curr_no"
if ; then
echo " current number already present"
fi
... (4 Replies)
Discussion started by: a_smith
4 Replies
7. Shell Programming and Scripting
Hi
I have one thing I need advice on, and I don't know where to start so I have no sample code.
I want the user to provide input like: 1-3,6,7,9-11
When the input is like this, I want a string to be generated including all the numbers. In the example above, the string would look like:
1... (13 Replies)
Discussion started by: Tobbev
13 Replies
8. UNIX for Dummies Questions & Answers
Hi,
I would like to comment a line that matched a string "sreenivas" in a file without opening it.
Thanks in advance.
Regards,
Sreenivas (3 Replies)
Discussion started by: raosr020
3 Replies
9. UNIX for Dummies Questions & Answers
I need to search a string for some specific text which is no big deal using grep. My problem is when the search fails to find the text. I need to add text like "na" when my search does not match.
I have tried this command but it does not work when I put the command in a loop in a bash script:
... (12 Replies)
Discussion started by: jojojmac5
12 Replies
10. Shell Programming and Scripting
I need to read a text file and insert a string every n lines, but also have the line counter restart when I come across a header string.
Line repeating working every 3 lines using code:
sed '0~3 s/$/\nINSERT/g' < INPUT/PATH/FILE_NAME.txt > OUTPUT/PATH/FILE_NAME.txt
I cannot seem to find... (1 Reply)
Discussion started by: Skonectthedots
1 Replies
LEARN ABOUT CENTOS
shape_depend
SHAPE_DEPEND(1) General Commands Manual SHAPE_DEPEND(1)
NAME
shape_depend - shapeTools RMS determine source-include dependencies
SYNOPSIS
shape depend [VERSIONS=<selection_rule>] [variants]
DESCRIPTION
The shape release management system requires for each node system a file named Dependencies, listing the source-derived dependencies of the
node components. shape depend automatically determines these dependencies and creates an appropriate Dependencies file. The dependencies
have the form of regular Makefile target-dependents lines without associated build action.
Note: shape depend only works for development of C programs. It additionally requires a C compiler supporting the -M (generate
Makefile dependencies) option. If this is not the case in your development project, you must either rewrite the action associated
with the depend target (in $(SHAPELIBPATH)/stdtargets) or maintain the Dependencies files manually.
The VERSIONS macro defines the version selection rule to be used. Default is most_recent. See shape_stdrul(7) or the $(SHAPELIB-
PATH)/stdrules file for other possible settings. You may also use self defined version selection rules as VERSIONS rule.
If your development environment contains variant definitions, in especially variant definitions that modify the list of source components
to be used during a build operation, you may also need to specify one or more variants to be set. The project wide variant raster is
defined in $(SHAPELIBPATH)/stdvar. Check this file and the default variant settings in your Shapefile before invoking shape depend.
INCONVENIENCES
Regeneration of the Dependencies file due to structural changes of the node system has to be triggered manually. Shape RMS doesn't recog-
nize such changes.
Variant specific Dependencies files (necessary when simultaneousky developing structurally different variants) are not supported. In this
case you have to run shape depend prior to each build action.
FILES
$(SHAPELIBPATH)/stdrules
$(SHAPELIBPATH)/stdtargets
$(SHAPELIBPATH)/stdvar
SEE ALSO
shape_RMS (1)
7.8.119 SHAPE_DEPEND(1)