UNIX for learning sed/awk/grep..etc..

 
Thread Tools Search this Thread
Top Forums UNIX for Beginners Questions & Answers UNIX for learning sed/awk/grep..etc..
# 1  
Old 02-10-2017
IBM 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
# 2  
Old 02-10-2017
You don't need a $50,000 subscription to learn sed/awk/grep - these standard UNIX tools are found in just about anything. I'm not sure you even need another operating system. For a gentle start with no installation, you could look into busybox-win32.

Image

Run busybox.exe sh from a cmd prompt, and you're in a Bourne shell which supports all those commands natively, including a basic 'vi' editor to build your scripts in.

The commands in this usually only support the basic arguments, not the fancy GNU ones you might use by accident and realize don't work on AIX.
These 2 Users Gave Thanks to Corona688 For This Post:
# 3  
Old 02-10-2017
Awesome. I will look into this. As far as my other question goes, I'll poke around the rest of the forum to see if I can find any suggestions.
# 4  
Old 02-13-2017
Linux

The above suggestion is great, A few resources I found helpful (if you can purchase the book)



Linux Bible: Command Line and Shell Scripting
# 5  
Old 02-13-2017
Great. Thank you all.
# 6  
Old 02-13-2017
If you are working on AIXyour system default shell is ksh (ksh88 to be precise). On most Linux systems it is bash though, which is almost the same as the Korn shell, but not quite. You might want to install a ksh (actually ksh93) and use this for your scripting if you set up a Linux as a learning environment.

Busybox is perhaps the quickest way to get a UNIX-like system running, but you can also install Linux into a virtual machine on your (Windoze-)-PC. 2GB RAM is probably all that is needed.

For books about shell programming I'd like to suggest two which i found informative yet great fun to read:

Barry Rosenberg: Hands-On KornShell93 Programming
Dale Dougherty: sed & awk (O'Reilly)

If you want to know what the absolute limits of shell-programming are (like i have a form in this file and i want to fill it automatically with the information from this file to produce a stream of filled forms ...) i suggest - here's the boss cooking himself and he is not shy of spicing it up -

Tim O'Reilly: UNIX Power Tools (O'Reilly)

I hope this helps.

bakunin
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

I am learning regular expression in sed,Please help me understand the use curly bracket in sed,

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

2. Shell Programming and Scripting

Grep/awk/sed help

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

3. Shell Programming and Scripting

Should I focus efforts on learning Perl or develop skills in awk, sed, etc

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

4. Shell Programming and Scripting

it's ok to learn awk and not learning sed?

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

5. Shell Programming and Scripting

help using sed/awk/grep

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

6. Shell Programming and Scripting

grep or awk or sed not sure which to use here

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

7. UNIX for Dummies Questions & Answers

awk grep sed or something better

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

8. UNIX for Dummies Questions & Answers

How could i get this by sed or grep or awk ????

------------------------------------------------------------------ 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

9. Shell Programming and Scripting

need help!!!awk,grep,sed

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

10. Shell Programming and Scripting

Learning Sed and Awk

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
Login or Register to Ask a Question