02-10-2017
UNIX for learning sed/awk/grep..etc..
Greetings all,
I am looking for a version of Linux that I can practice my scripting skills on. Currently, I support a massive system running on AIX. I want to do more with awk, sed, grep, and even perl. I am looking for something I can throw on a VM on my personal laptop and mess around with.
I have a virtual AIX session because I am an IBM partner, but that expires every two weeks unless I request an extension, which can be a pain.. but if I need to do it, that's fine too.
Another thing- This application runs on AIX, RHEL, or SLEL. I have looked for cloud hosting for AIX and it is very expensive as I am sure you all know, even for a miniscule instance that will have next to no traffic and minimal disk space. Haven't had luck with RHEL or SLEL hosting either. I have a dev environment running AIX that is obviously for DEV environments, but I am still cautious about messing something up!
Any feedback is appreciated. Thanks in advance,
Jeff
10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Hello,
Im new to Sed and Awk, and would like to read through a nice tutorial.
Could you please suggest me one.
Thanks (1 Reply)
Discussion started by: 0ktalmagik
1 Replies
2. Shell Programming and Scripting
hi all
by using cat /etc/passwd
I've got these output.
ajh1ect:x:839:501:Anthony:/home/ajh1ect:/bin/bash
mjb1ect:x:840:501:Michael:/home/mjb1ect:/bin/bash
mv3ect:x:841:501:Marian:/home/mv3ect:/bin/bash
now I want to see just the user ID and group ID.
so what is the code will be with... (2 Replies)
Discussion started by: nokia1100
2 Replies
3. UNIX for Dummies Questions & Answers
------------------------------------------------------------------
Ex of Warning messgae,(Many similar lines occure for Both Test and Test1)
-WARNING:Below Field not implemented in file File name: /home/test/
new/file1, msg buffer is:
:Test:000948
... (1 Reply)
Discussion started by: prsam
1 Replies
4. UNIX for Dummies Questions & Answers
Hello all,
Can anyone help with the following? :)
I have file1 with 150,000 words in a list and file2 with 148,000 words in a list - all of which are in file1. I want to create a new file with the words that DO NOT match (i.e of 2000 words). I have done this very simple command , which is... (1 Reply)
Discussion started by: dr_sabz
1 Replies
5. Shell Programming and Scripting
Hi All,
I have a huge file, I need to two things from this file. I need to know the IP address or the hostname and second thing is the date&time.
The file looks like this and I need to get my data from this...
Trying...
Connected to 204.109.172.117.
Escape character is '^]'.
Fri... (4 Replies)
Discussion started by: samnyc
4 Replies
6. Shell Programming and Scripting
thanks for your reply.
but i'm not quite sure what your code is doing.
i may be using it wrong but i'm not getting what i'm supposed to get.
could you please elaborate?
thanks again, (6 Replies)
Discussion started by: kratos.
6 Replies
7. Shell Programming and Scripting
please reflect... since I am beginner and dont know what to do
---------- Post updated at 04:25 AM ---------- Previous update was at 04:19 AM ----------
I am aware that awk is programming language and sed is just a tool (however people created some games with it). thanks (2 Replies)
Discussion started by: c_lady
2 Replies
8. Shell Programming and Scripting
Good afternoon,
I am not trying to start a debate. Please don't take it that way. I'm not trying to make this a Perl versus Bash scripts thing.
I have been writing shell scripts for several years. I am not 100%, but I seem to get the job done. I would like to start focusing on spending... (11 Replies)
Discussion started by: brianjb
11 Replies
9. Shell Programming and Scripting
got a file as y.txt
1 abc,def,ghj
2 defj,abc.kdm,ijk
3 lmn,cbk,mno
4 tmp,tmop,abc,pkl
5 pri,chk,cbk,lmo
6 def,cbk.pro,abc.kdm
i want to search in the above file the key word like abc
looking for two outcomes by passing the parameter value as abc into function and the two outocmes are... (6 Replies)
Discussion started by: silgun
6 Replies
10. Shell Programming and Scripting
I am learning SED and just following the shell scripting book, i have trouble understanding the grep and sed statement,
Question : 1
__________
/opt/oracle/work/antony>cat teledir.txt
jai sharma 25853670
chanchal singhvi 9831545629
anil aggarwal 9830263298
shyam saksena 23217847
lalit... (7 Replies)
Discussion started by: Antony Ankrose
7 Replies
LEARN ABOUT OPENDARWIN
captoinfo
captoinfo(1M) captoinfo(1M)
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.
Nonstd Std From Terminfo
name name capability
-----------------------------------------------
BO mr AT&T enter_reverse_mode
CI vi AT&T cursor_invisible
CV ve AT&T cursor_normal
DS mh AT&T enter_dim_mode
EE me AT&T exit_attribute_mode
FE LF AT&T label_on
FL LO AT&T label_off
XS mk AT&T enter_secure_mode
EN @7 XENIX key_end
GE ae XENIX exit_alt_charset_mode
GS as XENIX enter_alt_charset_mode
HM kh XENIX key_home
LD kL XENIX key_dl
PD kN XENIX key_npage
PN po XENIX prtr_off
PS pf XENIX prtr_on
PU kP XENIX key_ppage
RT @8 XENIX kent
UP ku XENIX kcuu1
KA k; Tek key_f10
KB F1 Tek key_f11
KC F2 Tek key_f12
KD F3 Tek key_f13
KE F4 Tek key_f14
KF F5 Tek key_f15
BC Sb Tek set_background
FC Sf Tek set_foreground
HS mh Iris enter_dim_mode
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:
Cap Graphic
-----------------------------
G2 upper left
G3 lower left
G1 upper right
G4 lower right
GR pointing right
GL pointing left
GU pointing up
GD pointing down
GH horizontal line
GV vertical line
GC intersection
G6 upper left
G7 lower left
G5 upper right
G8 lower right
Gr tee pointing right
Gr tee pointing left
Gu tee pointing up
Gd tee pointing down
Gh horizontal line
Gv vertical line
Gc intersection
GG acs magic cookie count
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:
IBM XSI
-------------
ksel kslt
kbtab kcbt
font0 s0ds
font1 s1ds
font2 s2ds
font3 s3ds
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(1M), running in -I mode. You can use other tic options such as -f and -x.
The trace option isn't identical to SVr4's. Under SVr4, instead of following the -v with a trace level n, you repeat it n times.
SEE ALSO
curses(3X), infocmp(1M), terminfo(5)
AUTHOR
Eric S. Raymond <esr@snark.thyrsus.com>
captoinfo(1M)