09-30-2007
sed -r problem in AIX
Come on guys ! no body is there to solve this ISSUE?
Please help me ASAP. I need this one very urjunt...........
Thnks in Advance.....
Regards,
Sridhar.
10 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
hi
I have an expression
aaabbb; xxx xxxi
i need to get the ouput as
xxx xxxi
i am using sed -e 's/\(*;\)//g' but it is not working..??
can some one suggest..
This is urgent (9 Replies)
Discussion started by: aixjadoo
9 Replies
2. Shell Programming and Scripting
In a Korn shell script I have,
cat ../header | sed -e 's/flag1/$cnumb/g' > header.txt
The header is short
{{Company flag1}}
But the result in header.txt is
{{Company $cnumb}}
The value of $cnumb is 120. I am trying to get the value of $cnumb into the header.
I have tried /'$cnumb'/g,... (10 Replies)
Discussion started by: jcarrott
10 Replies
3. AIX
Dear ALL.
I installed AIX OS on customer sites.
but Only one site is too slow when I connected telnet, ftp..
Ping is too fast. but telnet and FTP is not connected..
of course i check the configuration file on aix but it's normal.
Do any Idea??
thanks in advance.
- Jun - (3 Replies)
Discussion started by: Jeon Jun Seok
3 Replies
4. Shell Programming and Scripting
Hello,
I have a problem running a script created in ksh for Linux (Tested on Debian 5.0, Ubuntu Server 10.04 and RHEL 5.1), it works properly. :b:
I trying to pass it to a AIX 5.3. :wall:
The problem is the character limit of 256 on a command system and SED.
I need to cut the contents of... (8 Replies)
Discussion started by: nemesis.spa
8 Replies
5. UNIX for Dummies Questions & Answers
Hi All,
I've wrote a script to truncate newline characters in a text file. Could you please help me in figuring out the issue
:confused:
for file in $Filelist; do
echo $file;
FileName=`basename $file`;
sed 's/^M//g' $file> "${file}"2;
mv "${file}"2 "${file}";
sed '1d' "${file}"... (5 Replies)
Discussion started by: udayakumar
5 Replies
6. Shell Programming and Scripting
Experts,
At the moment I am working in AIX box where sed -i is not available.
My requirement is as below
Two files file1 and file2. file1 contains the IP address, its count. file2 contains the Hostname and its corresponding IP address. I would like get the IP address replaced with the apt... (7 Replies)
Discussion started by: sathyaonnuix
7 Replies
7. Shell Programming and Scripting
I'm trying to change the pam.conf file like below.
ssh auth required /usr/lib/security/pam_prohibit
ssh account required /usr/lib/security/pam_prohibit
emagent auth required /usr/lib/security/pam_prohibit
emagent account required ... (4 Replies)
Discussion started by: pjeedu2247
4 Replies
8. Shell Programming and Scripting
Hello @all
first of all in the best case this script has to work on every os (lnx/aix/sun).
It's very simple what it should do.
I have a standard path and I'll call it for this example /myhome/scripts
Within this path there are more files and folders and some of them are tagged with... (4 Replies)
Discussion started by: Miniqpa
4 Replies
9. UNIX for Dummies Questions & Answers
I don't know if you guys get this problem sometimes at Terminal but I had been having this problem since yesterday :( Maybe I overdid the Terminal. Even the codes that used to work doesn't work anymore.
Here is what 's happening:
* I wanted to remove lines containing digits so I used this... (25 Replies)
Discussion started by: Nexeu
25 Replies
10. UNIX for Advanced & Expert Users
I am trying to do this with one small tweak. I would also like to use a space as a delimiter.
sed 's/ */\
/g' file
This is what my file looks like.
server1, server2, server3
server4 server5 server6
I would like it to look like this.
server1
server2
server3
server4 ... (6 Replies)
Discussion started by: cokedude
6 Replies
LEARN ABOUT SUSE
captoinfo
captoinfo(1) General Commands Manual captoinfo(1)
NAME
captoinfo - convert a termcap description into a terminfo description
SYNOPSIS
captoinfo [-vn width] [-V] [-1] [-w width] file . . .
DESCRIPTION
captoinfo looks in file for termcap descriptions. For each one found, an equivalent terminfo description is written to standard output.
Termcap tc capabilities are translated directly to terminfo use capabilities.
If no file is given, then the environment variable TERMCAP is used for the filename or entry. If TERMCAP is a full pathname to a file,
only the terminal whose name is specified in the environment variable TERM is extracted from that file. If the environment variable TERM-
CAP is not set, then the file /usr/share/terminfo is read.
-v print out tracing information on standard error as the program runs.
-V print out the version of the program in use on standard error and exit.
-1 cause the fields to print out one to a line. Otherwise, the fields will be printed several to a line to a maximum width of 60 charac-
ters.
-w change the output to width characters.
FILES
/usr/share/terminfo Compiled terminal description database.
TRANSLATIONS FROM NONSTANDARD CAPABILITIES
Some obsolete nonstandard capabilities will automatically be translated into standard (SVr4/XSI Curses) terminfo capabilities by captoinfo.
Whenever one of these automatic translations is done, the program will issue an notification to stderr, inviting the user to check that it
has not mistakenly translated a completely unknown and random capability and/or syntax error.
XENIX termcap also used to have a set of extension capabilities for forms drawing, designed to take advantage of the IBM PC high-half
graphics. They were as follows:
If the single-line capabilities occur in an entry, they will automatically be composed into an acsc string. The double-line capabilities
and GG are discarded with a warning message.
IBM's AIX has a terminfo facility descended from SVr1 terminfo but incompatible with the SVr4 format. The following AIX extensions are
automatically translated:
Additionally, the AIX box1 capability will be automatically translated to an acsc string.
Hewlett-Packard's terminfo library supports two nonstandard terminfo capabilities meml (memory lock) and memu (memory unlock). These will
be discarded with a warning message.
NOTES
This utility is actually a link to tic(1), running in -I mode. You can use other tic options such as -f and -x.
The trace option is not identical to SVr4's. Under SVr4, instead of following the -v with a trace level n, you repeat it n times.
SEE ALSO
infocmp(1), ncurses(3NCURSES), terminfo(5)
This describes ncurses version 5.7 (patch 20100109).
AUTHOR
Eric S. Raymond <esr@snark.thyrsus.com>
captoinfo(1)