Hello Sed Experts,
I have got a file which contain entries as below
pmNoOfSwDownHsCong,
pmUlUpswitchAttemptHigh,
pmUlUpswitchAttemptLow,
pmUlUpswitchSuccessHigh,
pmUlUpswitchSuccessLow,
pmUpswitchFachHsAttempt, ... (6 Replies)
sample I/p:
S12J LLL
H77K PPP
J25O LOP
I73S lOP
K99O PLO
Required O/p:
S12J LLL H77K PPP J25O LOP I73S lOP K99O PLO
how to replace a new line character with space using sed command only
Cheers,
Chan (2 Replies)
Hello all... please help with the following.
I am parsing the following type of file...
W001;
W003;
W025;W044;
W030;
W022;W024;W099;W098;
Would like to make it look like this...
W001
W003
W025
W044
W030
W022
W024
W099
W098 (8 Replies)
<reward_data><date><datetime>071308000804</datetime></date>
I want the above data to be displayed as
<reward_data>
<date>
<datetime>071308000804</datetime>
</date>
How can i accomplish this.
I tried the below
tr "><" ">\n" < filename (4 Replies)
Hi,
I have a file with large number of records. Sample below:
123456789QWERT2U 2 erter
987123678ZXCVB6Y 5 7689
934567123GHJKUI4O 7
-
--
--
I want the 16th character in each record to be replaced with the below as follows;so 2 will become K, 6 will become O and 4 will become... (3 Replies)
I have unix text file which has the following data
aadjdfad;fa;fjjd;lakd;lkaslkd;k;k;lk;k;lk;l;lk;lkj;lj;lkj;k;lkj;lj;lkj;lkj;lkj;j
sdkadk;adlf;lajf;akdjf;lkdjf;lkadjf;lkajsd;lfkj;lkj;lkj;lk;lk;lk;lk;k;lkj;k;lkm... (2 Replies)
Hi all.
I wonder if this possible.... any help advice is very much appreciated..
I n a shell script I create a latex file that looks like this
\documentclass{article}
\usepackage{graphics}
\begin{document}
\begin{figure}
\begin{center}
\begin{tabular}{cc}
... (10 Replies)
I get a file which has all its content in a single row.
The file contains xml data containing 3000 records, but all in a single row, making it difficult for Unix to Process the file.
I decided to insert a new line character at all occurrences of a particular string in this file (say replacing... (4 Replies)
Hi All,
We are getting an external file in abc.csv format. When opened in excel spread sheet, it is opening alright. But when opened in notepad, I see the contents in a single line.
Ftp'd the file in binary mode to AIX UNIX host. When opened, I see Control M (^M) characters in place of New Line... (16 Replies)
Discussion started by: njny
16 Replies
LEARN ABOUT CENTOS
igawk
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)