Sponsored Content
Top Forums Shell Programming and Scripting How to expert Shell Programming ? Post 302866313 by wisecracker on Monday 21st of October 2013 06:01:42 PM
Old 10-21-2013
Hi...
(Apologies for any typos.)

I am probably an experienced hand here... ;oD

Think of a fairly difficult project that you think shell scripting might not be able to do.
Jump in right at the deep end and start with something simple pertaining to that project.
That is exactly what I did. It was at the beginning of this year when I joined
and I knew little or nothing about shell scripting and I started bragging I was going to
do a pure text mode shell based AudioScope.

I suspect the guys on here thought "here we go again" but once the second upload was
posted I started to attain interest from my mentors. This code has eveloved into
something totally different for shell scripting and a lot of input came voluntarily from
the big guns on here...

So, upload your first incarnation here and I guarantee that once you get these guys and
gals attention you will be steered into the right direction.

The basics will soon stick and along with the accrued knowledge of the pros on here
some seriously clever stuff will start to become understandable. If you work out a
routine and it works but you are not happy with say its speed someone will comment
on an alternative. Also they will even volunteer ideas to enhance your project and will
even explain how some lines of code actually work if you ask them.

I have as near as dammit dumped Python for shell stuff purely because of some of its
limitations and finding out how to work around them...

You will soon get to _know_ the gurus that regularly give replies so keep your eyes
open for some clever tricks of the trade...

Enjoy...
This User Gave Thanks to wisecracker For This Post:
 

8 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

shell programming

I want notes for learning Shell programming (2 Replies)
Discussion started by: Neha Agarwal
2 Replies

2. Shell Programming and Scripting

Shell Programming

Provides a menu structure that allows a user to select several options - input a name and address, lookup a name and address, delete a name and address, and print a formatted report from a text database (note: this requirement assumes that you will use the program to create a database, though in... (1 Reply)
Discussion started by: DonOmar
1 Replies

3. Shell Programming and Scripting

shell programming

Hi iam new to shell programming. I would like to ask one dought abt the file handling in unix. Iam having a file1 as follows: ASDERFCX1234567890123456 POIUYTRE0098765432123456 BVCXCVBN0955644411111111 File2 ASDERFCX1234567890123456 kill@abc.com ... (8 Replies)
Discussion started by: nivas
8 Replies

4. Shell Programming and Scripting

Shell Programming

Files to be merged. File1(1.txt) ----------- 1|2|Y 2|5|N File2(2.txt) ----------- 1|abc 2|xyz 3|pqr My Code: --------- nawk ' BEGIN { FS=OFS="|" } NR==FNR { (1 Reply)
Discussion started by: greenworld
1 Replies

5. UNIX for Dummies Questions & Answers

Shell script to read lines in a text file and filter user data Shell Programming and Scripting

sxsaaas (3 Replies)
Discussion started by: VikrantD
3 Replies

6. HP-UX

Expert Recovery Shell - Fatal Error: Unrecognized disk layout

I have a B.11.31 U ia64 system where I swremove the disk driver "SerialSCSI-00 B.11.31.1303 PCI-X/PCI-E SerialSCSI" (by mistake). afterwards the system won;t boot because of the missing disk drivers. I'm trying to recover my kernel by using the image HP-ux_11_31_disc_1.iso Run an Expert... (1 Reply)
Discussion started by: black_fender
1 Replies

7. Shell Programming and Scripting

Shell Programming

Hi, I am using two files - one file contains list of service name , other file contains commands for each of these service name . I have to read each service name and check this string in 1.cfg file , if it exists , then i have to read another file (commands file ) and take the string and... (2 Replies)
Discussion started by: santhoshks
2 Replies

8. Shell Programming and Scripting

Optimizing the Shell Script [Expert Advise Needed]

I have prepared a shell script to find the duplicates based on the part of filename and retain latest. #!/bin/bash if ; then mkdir -p dup fi NOW=$(date +"%F-%H:%M:%S") LOGFILE="purge_duplicate_log-$NOW.log" LOGTIME=`date "+%Y-%m-%d %H:%M:%S"` echo... (6 Replies)
Discussion started by: gold2k8
6 Replies
lp-shell(1)						      General Commands Manual						       lp-shell(1)

NAME
lp-shell - Open an interactive launchpadlib shell. SYNOPSIS
lp-shell [-a] [-cPROGRAM] [--python] [--ipython] [service] [LP API version] DESCRIPTION
lp-shell opens an interactive Python shell with a launchpadlib.Launchpad object "lp" which is ready for use. It authenticates against Launchpad with the consumer name "udt-lp-shell". When using lp-shell with the -a option it will use the anonymous login from launchpadlib.Launchpad. By default lp-shell connects to the "production" Launchpad service using the "1.0" LP API version. If you want to connect to another Launchpad service, call lp-shell with the service name as the second argument. lp-shell supports all ser- vices known by launchpadlib Python module. Currently known are (list can be incomplete or outdated): "production", "staging", "dogfood". A different LP API version can be selected by passing the API version to use as the third argument. Current supported are: "beta", "1.0" and "devel". OPTIONS
-a Login anonymously into Launchpad. -c PROGRAM Don't enter a shell but only run the specified Python program and exit. --ipython Use an ipython shell if available (default). --python Use a regular python shell. AUTHORS
lp-shell was written by Martin Pitt <martin.pitt@ubuntu.com>. It is released under the terms of the GNU General Public License, version 2 or (at your option) any later version. lptools 27 March 2010 lp-shell(1)
All times are GMT -4. The time now is 01:28 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy