02-17-2015
awk -v RS="" '{print gsub(/[>]/, "&")}' myFile
This User Gave Thanks to vgersh99 For This Post:
9 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Never mind i got the answer thanks., (0 Replies)
Discussion started by: deaconf19
0 Replies
2. Shell Programming and Scripting
Hi,
I have file called suppliersList.txt
---------------------------------
112|MIMUS|krish@google.com
113|MIMIRE|krish@google.com
114|MIMCHN|krish@google.com
115|CEL|krish@google.com
108|UGEN|krishn@google.com
109|SLAND|krish@google.com
i have 3 varibale
-------------
no
Name... (4 Replies)
Discussion started by: kittusri9
4 Replies
3. Shell Programming and Scripting
Hi,
We are doing migration from DB2 to Teradata.
There are couple of things involving in the project.
Please see below following order
Autosys-Jil script
Profile script
Category1
Teradata script
Data stage job script
Tera data script
Export files script..
Like that we have 10000... (1 Reply)
Discussion started by: onesuri
1 Replies
4. Solaris
I am new to unix shell scripting, i was going through the existing shell scripts but couldn't able to get enough information on below syntaxes,i mean the symbols $# & $? used in the if loop. what exactly are they? what is the inline meaning, Could you please throw some light.
Examples:
1) ... (4 Replies)
Discussion started by: Ariean
4 Replies
5. UNIX for Advanced & Expert Users
Nowadays I run Mandriva, Ubuntu and Fedora Core. All of the operating systems works fine on my computers. GRUB gives me the opportunity to select an operating system.
I have Windows too. I don't run Windows. I like UNIX.
Today I work with 3 computers with a single monitor. This is possible... (4 Replies)
Discussion started by: Angelo
4 Replies
6. Shell Programming and Scripting
Hi,
I have a script that checks the length of each record/line in file - This seems to be working when there are no special systems character that are invisible or hidden.
awk -v file=$file '{
if (filename==file)
{ k+=$5
if (length() <= 10 ){print size length(), "bytes " k}
}... (2 Replies)
Discussion started by: asemota
2 Replies
7. Shell Programming and Scripting
Hi Experts,
back at this forum again. Have a tab separated file like this ---
ACCNN AMT(E/$) TYPE ID
11233 23.20($) AUTH 339
11233 19.00($) FINAL 339
11234 349.84($) AUTH 42332
11234 ... (12 Replies)
Discussion started by: PG3
12 Replies
8. HP-UX
Hi,
On load average graph, unit is 100m, 200m, 300...800m.
I don't understand what it means.
Thx for helping (3 Replies)
Discussion started by: Michenux
3 Replies
9. UNIX for Dummies Questions & Answers
Hello guys this is my first post in this forum. Since now ive been passive an ive only been looking for existing information. Now I could use specific help on a UNIX script i want to make that would:
1. Take 1-3 arguments.
2. Display the contents of its arguments, formatted as follows:... (7 Replies)
Discussion started by: banzomaster
7 Replies
IGAWK(1) Utility Commands IGAWK(1)
NAME
igawk - gawk with include files
SYNOPSIS
igawk [ all gawk options ] -f program-file [ -- ] file ...
igawk [ all gawk options ] [ -- ] program-text file ...
DESCRIPTION
Igawk is a simple shell script that adds the ability to have ``include files'' to gawk(1).
AWK programs for igawk are the same as for gawk, except that, in addition, you may have lines like
@include getopt.awk
in your program to include the file getopt.awk from either the current directory or one of the other directories in the search path.
OPTIONS
See gawk(1) for a full description of the AWK language and the options that gawk supports.
EXAMPLES
cat << EOF > test.awk
@include getopt.awk
BEGIN {
while (getopt(ARGC, ARGV, "am:q") != -1)
...
}
EOF
igawk -f test.awk
SEE ALSO
gawk(1)
Effective AWK Programming, Edition 1.0, published by the Free Software Foundation, 1995.
AUTHOR
Arnold Robbins (arnold@skeeve.com).
Free Software Foundation Nov 3 1999 IGAWK(1)