...Collier PT1420 Unit 5 Research Assignment 1 Mr. O’Leary Research Assignment All the shell I’m about to list share some common features, and the major difference in syntax generally only affect scripts writers. It is not unusual to use one shell for interactive use, but another for writing scripts. There are many other programs which read a file of commands and carry out a sequence of actions, the convention allows any of them to be used as a scripting language to create new commands. There is never only one way to perform a function, and often the choice comes down to factors like the combined lengthy and repetitive sequence of commands into a single, simple command. Generalize a sequence of operations on one set of data, into a procedure that can be applied to any similar set of data. Create new commands using combinations of utilities in ways the original authors never thought of simple shell scripts might be written as shell aliases. Create customized datasets on the fly and call applications to work on them or create customized application commands/procedures like wrapping programs over which you have no control inside an environment that you can control. You have to learn what kind what kind of problems are suited to shell scripts and review the most commonly used Unix commands that are useful in shell scripts. In general the newer shells run a little faster and scripts are often more readable because logic can be expressed more cleanly user the newer syntax...
Words: 264 - Pages: 2
...data from various sources like Oracle, SQL Server, Flat files and COBOL Sources. * Worked extensively with Slowly Changing Dimensions. * Working knowledge of Teradata as a Developer with proficiencies in Teradata SQL Assistant utilities like Fastload, Multiload, BTEQ, FastExport, and Tpump. * Experience in Teradata Data Warehouse architecture. * Proficient in application development and support, for batch processes hosted on an IBM mainframe, with a core focus in COBOL, DB2, JCL and VSAM. * Hands on experience in performance tuning, resolving on-going maintenance issues and monitoring of production runs. * Data modeling using Erwin, Star Schema, Snowflake, FACT and dimension tables. * Hands on experience in UNIX shell scripting. * Excellent communication and interpersonal skills. TECHNICAL SKILLS Frameworks | Informatica Data Director (IDD), Informatica System Integration Framework (SIF), Teradata version 12, Mainframe z/OS | Application Modules | UNIX, Informatica Application Designer, Workflow Manager, Workflow Monitor, Repository Manager, Informatica B2B...
Words: 1062 - Pages: 5
...9 9 Chapter9 Answers to Evennumbered Exercises 9 1. 2. What are two ways you can execute a shell script when you do not have execute access permission to the file containing the script? Can you execute a shell script if you do not have read access permission? You can give the name of the file containing the script as an argument to the shell (for example, sh scriptfile, where scriptfile is the name of the file containing the script). Under bash you can give the following command: $ . scriptfile Because the shell must read the commands from the file containing a shell script before it can execute the commands, you must have read permission for the file in order to execute the shell script. 3. 4. Assume that you have made the following assignment: $ person=jenny Give the output of each of the following commands: a. echo $person jenny b. echo '$person' $person c. echo "$person" jenny 5. 1 2 Chapter 9 6. Assume that the /home/jenny/grants/biblios and /home/jenny/biblios directories exist. For both (a) and (b), give Jenny’s working directory after she executes the sequence of commands given. Explain. a. $ pwd /home/jenny/grants $ CDPATH=$(pwd) $ cd $ cd biblios After executing the preceding commands, Jenny’s working directory is /home/jenny/grants/biblios. When CDPATH is set, cd searches only the directories specified by CDPATH; cd does not search the working directory unless the working directory is specified in CDPATH (by using a period). b. $ pwd /home/jenny/grants $...
Words: 737 - Pages: 3
...Unit 5 Research Assignment 1 PT1420 * A shell script is a computer program designed to be run by the Unix shell, a command line interpreter. The various dialects of shell scripts are considered to be scripting languages. * Advantages of using shell script is that the commands and syntax are exactly the same as those directly entered at the command line. The programmer does not have to switch to a totally different syntax, as they would if the script were written in a different language, or if a compiled language was used. Often, writing a shell script is much quicker than writing the equivalent code in other programming languages. The many advantages include easy program or file selection, quick start, and interactive debugging. A shell script can be used to provide a sequencing and decision-making linkage around existing programs, and for moderately sized scripts the absence of a compilation step is an advantage. Interpretive running makes it easy to write debugging code into a script and re-run it to detect and fix bugs. Non-expert users can use scripting to tailor the behavior of programs, and shell scripting provides some limited scope for multiprocessing. * Most common usage methods of PowerShell is interactive console (powershell.exe) and script files (with extension of .ps1, that is also usually executed by powershell.exe). Main features of PowerShell are: .Net integration, object pipeline, easy access to many management domains (WMI, ADSI, COM, .NET etc...
Words: 388 - Pages: 2
...Exercises stores the complete set of positional parameters as a single string 4. a. When you are writing many shell scripts, it can get tedious to give many chmod commands. This function speeds up the process. b. $ function perms { > chmod u+x $* > } c. Put the function in your .bash_profile, .bash_login, or .profile file to make it available each time you run a log in (using bash). d. Use source to execute the file you put the function in, i.e. $ source .bash_profile 5. A shell function will do nothing unless it is explicitly called by other code A shell script is a runnable, executable process, which can call other shell scripts and/or functions. The question might be worded backwards - it is necessary to write shell functions for shell scripts when certain logical functionality is required to be performed multiple times - they operate the same way. 6. $ cat listdirs file "$@" | grep directory | sed 's/:.*//'. 9. a. #!/bin/bash plus1 () { echo $(($1 + 1)); } echo $(plus1 8) export -f plus1 ./child 14 21 b. Each Name the full file name of the command is determined by searching the directories in $PATH and remembered. c. If command is not specified, a non-interactive shell exits, unless the shell option exefail is enabled, in which case if returns failure. Returns if file cannot be executed. Exercises 1. -w option on the command line 2. Array is an order list of values position by index. Hash is an unordered list...
Words: 292 - Pages: 2
...systems administration and security are also examined. Policies Faculty and students/learners will be held responsible for understanding and adhering to all policies contained within the following two documents: • University policies: You must be logged into the student website to view this document. • Instructor policies: This document is posted in the Course Materials forum. University policies are subject to change. Be sure to read the policies at the beginning of each class. Policies may be slightly different depending on the modality in which you attend class. If you have recently changed modalities, read the policies governing your current class modality. Course Materials Blum, R. (2008). Linux® command line and shell scripting bible. Indianapolis, IN: Wiley. Love, P., Merlino, J., Zimmerman, C., Reed, J. C., & Weinstein, P. (2005). Beginning Unix®. Indianapolis, IN: Wiley. Software RedHat Linux 5 (Virtual Desktop) Article References Ahmed, M. F., & Gokhale, S. (2009). Reliable operating systems: Overview and techniques. IETE Technical Review, 26(6), 461–469. Anthes, G. (2009, June 20-July 27). UNIX turns 40. Computerworld, 43(24), 16. Berlot, M., & Sang, J. (2008, January). Dealing with process overload attacks in UNIX. Information Security Journal: A Global Perspective, 17(1),...
Words: 1560 - Pages: 7
...NT 1310 | October 16 2014 | Phillip Wilson | Mr. Covington | A shell script is just a text file full of commands. It must be executable. A shell script is also a computer program designed to be run by the Unix shell, a command line interpreter. The various dialects of shell scripts are considered to be scripting languages. Typical operations performed by shell scripts include file manipulation, program execution, and printing text. Writing a shell script is much quicker than writing the equivalent code in other programming languages. The many advantages include easy program or file selection, quick start, and interactive debugging. A shell script can be used to provide sequencing and decision-making linkage around existing programs, and for moderately-sized scripts the absence of a compilation step is an advantage. Interpretive running makes it easy to write debugging code into a script and rerun it to detect and fix bugs. Non-expert users can use scripting to tailor the behavior of programs, and shell scripting provides some limited scope for multiprocessing. Most common usage methods of PowerShell are interactive console (powershell.exe) and script files (with extension of .ps1 that is also usually executed by powershell.exe). Main features of PowerShell are: .Net integration, object pipeline, easy access to many management domains (WMI, ADSI, COM, .NET etc.) and standardization that brings easy discovery and quick learning of new features after you know base functionality...
Words: 311 - Pages: 2
...Ryan Pilatowski IT 250 linux 1/23/13 1. A. make the file executable : $ chmod +x filename.sh Run the script: $ ./filename.sh B. it reads the name from stdin and cats it to journal-file rather than stdout. 2. If you replace "$@" with "$*" in the out script, cat or less would be given a single argument: a list of all files you specified on the command line enclosed within single quotation marks. This list works when you specify a single filename. When you specify more than one file, the shell reports No such file or directory because there is not a file named the string you specified on the command line (the SPACEs are not special characters when they are enclosed within single quotation marks). 3. Sort,tsort diff, patch,diff3, sdiff, cmp, comm, uniq, expand, unexpand, cut, colrm, paste, join, head, tail, grep, look, sed,awk, sed, awk, wc, tr, fold, fmt, ptx, column, nl, pr, gettext, iconv, recode, groff, gs, TeX, lex, yacc, 4. $ function pores } * Chmod u+x $1 * } * a. When might such a function be useful? * When you are writing many shell scripts, it can get tedious to give many * chmod commands. This function speeds up the process. * b. Revise the script so that it takes one or more filenames as arguments * and adds execute permission for the user for each file argument. * $ function perms { * > chmod u+x $* * > } * c. What can you do to make the function available every time you log in? * Put the...
Words: 447 - Pages: 2
...Case 2.1 1) Script pad can be defined as an opportunity because it helps answer several problems which will push the customer to buy it. Script pad is attractive because is a company that can literally save lives (7,000 deaths occur each year in the United States as the result of prescription writing mistakes.) and it is easy to use it. Timely, because in 2009, the U.S. Congress authorized funding to promote electronic health records as part of the economic stimulus package. So the electronic prescription is growing up. 2) The environment around Script pad is favorable because the governement want to promote electronic health records, Therefore the electronic prescriptions will increasingly be asked. 3) At first my reaction wil be bad because the prescprtion hand does not cost me anything. Fortunately, the application makes life easier for customers and it is safer than hand prescpition and the government pushes to modernized the management of health I'll end to adopt it. Over the cost of the iphone and subscription this aplication offers several advantages including security (greatly reduces errors) ease (easy to use) and effectiveness (prescription sent directly to the pharmacy) for me and customer. 4) The pharmacy will be more reticent in front of this project because the application takes a commission on the sale, which reduces her margin especially as the competition is fierce with the online pharmacy is growing in the market. 5) The application...
Words: 340 - Pages: 2
...point where she doesn't even cry anymore because she realizes that the only way to solve the issue(s) is to remove herself from it. Revelations, Part 5} Queen, as a representation of the Divine Feminine, it is not your natural state to toil or chase companionship, chase money, or chase your dreams. Taking diligent action is vital to powerfully manifest, but as a woman, you must also remember that you have a natural ability to draw to you whatever you need, want and desire on the Royal Path. It’s time to wake up and realize that you can achieve more through grace than “hustling hard”. Watch the video as I reveal the #1 way to activate, develop and strengthen your Divine Feminine power of attraction. Queen, you have the power to write the script and define who you are as a woman, a Mother, a wife, daughter or sister. Don’t allow someone else’s limitations to control your life I agree. You don't necessarily have to hold it in though. It can be issues that she's repeatedly expressed concern about and the other involved party or parties don't get involved in resolving the issue(s) and then she gets fed up. Mental Health Care...
Words: 263 - Pages: 2
...Justin Rodenbaugh Week 3 CO2520 1. The perception factor here is a script. The gentleman ordering food probably expected to just walk up to the counter and order what he wanted to eat. Instead the cashier looks like she is trying to get him to buy something else than what he had ordered. This causes a problem because the man’s posture in the picture seems to indicate that he is annoyed or maybe does not want to order what the cashier is pointing to on the register. This falls in line with the script that the person’s job has laid out for their employees to follow, this can usually lead to people getting annoyed or frustrated when their own personal script for things is added to. 1. Our relationships affect our perception and communication by giving us the ability to perceive and find ways to make relationships work and be comfortable. When we get hurt in a relationship either by betrayal or mistrust, this in turn causes us to look at other people with a look of distrust just because of one person that hurt us, this in turn also helps us later on to perceive whether or not our next relationship later on is going anywhere or falling through the cracks. 2. I imagine the conversation in the picture to go something like this, “Hello welcome and what can we get for you today?” Customer “I would like a number one combo meal please.” Worker “would you like to add our new dessert to your meal?” Customer “No I only want the number one” the worker might then suggest...
Words: 319 - Pages: 2
...Mastering Unix Shell Scripting Randal K. Michael Free & Share & Open The Dear Valued Customer, WILEY advantage We realize you’re a busy professional with deadlines to hit. Whether your goal is to learn a new technology or solve a critical problem, we want to be there to lend you a hand. Our primary objective is to provide you with the insight and knowledge you need to stay atop the highly competitive and everchanging technology industry. Wiley Publishing, Inc., offers books on a wide variety of technical categories, including security, data warehousing, software development tools, and networking — everything you need to reach your peak. Regardless of your level of expertise, the Wiley family of books has you covered. • For Dummies – The fun and easy way to learn • The Weekend Crash Course –The fastest way to learn a new tool or technology • Visual – For those who prefer to learn a new topic visually • The Bible – The 100% comprehensive tutorial and reference • The Wiley Professional list – Practical and reliable resources for IT professionals The book you hold now, Mastering Unix Shell Scripting, is the first book to provide end-to-end scripting solutions that will solve real-world system administration problems for those who have to automate these often complex and repetitive tasks. Starting with a sample task and targeting the most common Unix systems: Solaris, Linux, AIX, and HP-UX with specific command structures, this book will save precious time with hands-on...
Words: 145371 - Pages: 582
...this point, sometimes a shell script does not execute because there is an error in one or more commands within the script. For example, perhaps you entered a colon instead of a semicolon or left out a bracket. Another common problem is leaving out a space or not putting a space in the correct location. Now that you have some experience developing shell scripts and have possibly encountered some problems, you can appreciate why it is important to have a tool to help you troubleshoot errors. The sh command that is used to run a shell script includes several options for debugging. Syntax sh [-options] [shell script] Dissection ■ In UNIX and Linux, it calls the command interpreter for shell scripts;and in Linux, it uses the Bash shell with the command interpreter ■ Useful options include: -n checks the syntax of a shell script, but does not execute command lines -v displays the lines of code while executing a shell script -x displays the command and arguments as a shell script is run Two of the most commonly used sh options are -v and -x. The -v option displays the lines of code in the script as they are read by the interpreter. The -x option shows somewhat different information by displaying the command and accompanying arguments line by line as they are run. By using the sh command with these options, you can view the shell script line by line as it is running and determine the location and nature of an error on a line when a script fails. Try Hands-on Project...
Words: 315 - Pages: 2
................................................................................................................................................3 7. Copyright information.........................................................................................................................3 8. What do you need? ...............................................................................................................................4 9. Conventions used in this document.....................................................................................................4 10. Organization of this document...........................................................................................................5 Chapter 1. Bash and Bash scripts...
Words: 29161 - Pages: 117
...introduction, I provide any overview of the concepts regarding shell scripts. Explaining what is a shell script is and describing several common shells. Later, a tutorial is made available for demonstration how to backup a file or folder using a tool to accomplish these tasks. The SNTbackup is a shell script backup tool that gives users the option to select to select a file or folder to be backed up. A detail demonstration with screenshots is provided as a visual aid to readers. I used a simple Linux shell script to back-up the home directory of my system. The script uses the tar command to execute this task. SNTback is a simple, effective, fully customizable backup script that protects your folder by creating a duplicate of the specific folder. The duplicate of the selected folder is the place in a location of the user’s preference. Users will find the SNTbackup as a resource which allows folders such as directories to be back-up in no time....
Words: 1666 - Pages: 7