12-06-2009
It would help if you used code tags, you can get them by clicking on the # symbol above the text box you posted your message in.
It is always a good idea to include an excerpt from your input file (Between code tags) that contains at the least some of the lines you are trying to match to; presumably the line begining "BEGIN DSSUBRECORD".
10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Hi,
Following is my shell script.
#!/bin/tcsh
view=$1
image=$2
objfld="obj-ppc-$image"
echo $view
echo $image
echo $objfld
echo "cleartool setview $view"
cleartool setview $view;
cd `cd /vob/ios/sys`;
In this "cd" is not working and not getting any error.
my shell is "tcsh"... (3 Replies)
Discussion started by: amitrajvarma
3 Replies
2. Shell Programming and Scripting
Hi All,
I am not much strong in shell scripting...
I am using sed command in my script to find and replace a string.......
This is how script looks :
#############
#!/usr/bin/ksh
CONFIG_FILE=iom_test.txt
FIND=`echo "NIS_FTP_SERVER1=123.456.iom.com"`
REPLACE=`echo... (2 Replies)
Discussion started by: askumarece
2 Replies
3. Shell Programming and Scripting
Hello.
I would like to ask your help regarding the cp command. We are using a cp command to create a back-up copy of our file but to no avail. It's just not working. We already checked the file and directory permissions and all seems correct.
We have a script (ftp.script) which calls on... (1 Reply)
Discussion started by: udelalv
1 Replies
4. Shell Programming and Scripting
Hello All,
I have tried many permutaion combinations in my shell script but cd command is not working in shell script.
Can any one help me out in this.
Below is my script.
############
#!/bin/sh
set -x on
BASE_DIR=/etc/init.d
export BASE_DIR
cd $BASE_DIR
#############
but its... (8 Replies)
Discussion started by: ajaincv
8 Replies
5. Shell Programming and Scripting
Hai ,
When i use paste command in command prompt its giving expected output but not in the script. Below is the example.
$cat file
1
2
3
$cat file1
4
5
6
$paste -d ':' file file1
1:4
2:5
3:6
but when i used the same command in script its giving the output as below :
1
2
3 (3 Replies)
Discussion started by: Subbu123
3 Replies
6. Post Here to Contact Site Administrators and Moderators
Variable I have in my shell script
diff=$1$2.diff
id=$2
new=new_$diff
echo "My id is $1"
echo "I want to sync for user account $id"
##awk command I am using is as below
cat $diff | awk -F'~' ''$2 == "$id"' {print $0}' > $new
I could see value of $id is not passing to the awk... (0 Replies)
Discussion started by: Ashunayak
0 Replies
7. Shell Programming and Scripting
I have a shell script (.sh) and I want to pass a parameter value to the awk command but I am getting exception, please assist.
diff=$1$2.diff
id=$2 new=new_$diff
echo "My id is $1"
echo "I want to sync for user account $id"
##awk command I am using is as below
cat $diff | awk... (2 Replies)
Discussion started by: Ashunayak
2 Replies
8. UNIX for Dummies Questions & Answers
I have a shell script (.sh) and I want to pass a parameter value to the awk command but I am getting exception, please assist.
diff=$1$2.diff
id=$2 new=new_$diff
echo "My id is $1"
echo "I want to sync for user account $id"
##awk command I am using is as below
cat $diff |... (1 Reply)
Discussion started by: Sarita Behera
1 Replies
9. Shell Programming and Scripting
I have a simple task to replace unix line feed end of line characters with carriage returns.
When I run the following “change file in place” sed instruction from the command line all the Line feeds are successfully replaced with Carriage returns.
sed -i 's/$/\r/' lf_file.txt
But that same... (1 Reply)
Discussion started by: hawkman2k
1 Replies
10. UNIX for Dummies Questions & Answers
Hi everyone
I have a problem with my script
If I try directly this command
/usr/bin/nice -n 19 mysqldump -u root --password="******" wiki_schneider -c | nice -n 19 gzip -9 > /point_de_montage/$(date '+%Y%m%d')-wiki-db.sql.gz
It works
But if I simply add this command in a script and... (8 Replies)
Discussion started by: picemma
8 Replies
ctags(1) General Commands Manual ctags(1)
Name
ctags - create a tags file
Syntax
ctags [options] name...
Description
The command makes a tags file for from the specified C, Pascal and Fortran sources.
A tags file gives the locations of specified objects (in this case functions and typedefs) in a group of files. Each line of the tags file
contains the object name, the file in which it is defined, and an address specification for the object definition. Functions are searched
with a pattern, typedefs with a line number. Specifiers are given in separate fields on the line, separated by blanks or tabs.
Using the tags file, can quickly find these objects definitions.
If the -x flag is given, writes to standard output a list containing each object name, its line number, the file name in which it is
defined, and the text of the line. This list is a simple index which can be printed out as an off-line readable function index.
Options
-a Appends information to an existing tags file.
-B Uses backward search patterns (?...?).
-F Uses forward search patterns (/.../) (default).
-t Creates typedef tags.
-u Updates the specified tags file. All references to tags are deleted, and the new values are appended to the file.
Note that this option is implemented in a way which is rather slow. It is usually faster to simply rebuild the tags
file.)
The tag main is treated specially in C programs. The tag formed is created by prepending M to the name of the file,
with a trailing .c removed, if any, and leading pathname components also removed. This makes use of practical in
directories with more than one program.
-v Generates an index listing function name, file name, and pages number. Since the output will be sorted into lexico-
graphic order, it may be desired to run the output through sort -f. For example,
ctags -v files | sort -f > index
Files whose name ends in .c or .h are assumed to be C source files and are searched for C routine and macro defini-
tions. Others are first examined to see if they contain any Pascal or Fortran routine definitions; if not, they are
processed again looking for C definitions.
-w Suppresses warning diagnostics and generates a listing file. This list contains each object name, its line number, the
file name in which it is defined, and the text of the line, and is identical to the list produced when no options are
given.
-x Writes to standard output a list containing each object name, its line number, the file name in whcih it is defined,
and the text of the line.
Restrictions
Recognition of functions, subroutines and procedures for FORTRAN and Pascal do not deal with block structure. Therefore you cannot have
two Pascal procedures in different blocks with the same name.
Does not know about #ifdefs.
Does not know about Pascal types. Relies on the input being well formed to detect typedefs. Use of -tx shows only the last line of type-
defs.
Files
tags output tags file
See Also
ex(1), vi(1)
ctags(1)