10-05-2013
Help with Linux shell
Taking a class and having trouble with this whole section.
1. What is the name of the action the shell performs on your command-line after you hit the ENTER key (i.e., to cut your command-line syntax into its constituent tokens, including its commands, options and arguments)?
Hint: It is a word that begins with a “p”
2. What is the name of the important shell variable that is used to find where the command you entered might be stored in the file system, allowing you to make changes to these locations as needed (i.e., to add your own, personal ~/bin directory to the search list)?
Hint: It is a word that begins with a “P”
3. Figure out what the following sequence of commands is trying to accomplish - that is, the end result - and write a single command-line syntax to achieve the same result, using sort as a filter (i.e., don't use sort as the first command), and without creating any new files at all (that is, other than the one that already existed before you started your command-line, and that serves as the input in this example). Do not create and then delete files in your solution. Type your command-line solution:
Hint: Do not use any temp files...
$ sort list > temp
$ lpr temp
$ rm temp
10 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
Suppose I have a script named "sc.sh"
in the script how to print out its name "sc.sh"? (3 Replies)
Discussion started by: meili100
3 Replies
2. Shell Programming and Scripting
HI im a novice with shell scripts but i need help with a random script I have this folder filled with 500 different file names... I need help creating a script that will take each filename and make a new folder named that filename and then move that file into the newly created folder. Then the... (1 Reply)
Discussion started by: emachala
1 Replies
3. Shell Programming and Scripting
In shell Can I pass " to a program ? If not what is the work around ..?
Can I define * as a wild card charecter that will return all the values from
the files ..?
I am trying to create a tool that will return the values from a property file . This tool has to support all the wild card... (1 Reply)
Discussion started by: app1sxv
1 Replies
4. Shell Programming and Scripting
Hi,
I have been working on Sun Solaris since a long time. Recently I got to work on RH Linux. My Linux version details are:
Linux 2.6.18-164.el5 #1 SMP Tue Aug 18 15:51:48 EDT 2009 x86_64 x86_64 x86_64 GNU/Linux
I have a simple command in my shell script:
export BKPTAG=`date... (3 Replies)
Discussion started by: sagarparadkar
3 Replies
5. Shell Programming and Scripting
Hi all,
I am trying to make a Nodemanager work in RHEL 5
I got this script from 'oraclemiddleware.wordpress.com', and made appropriate changes to suit my weblogic installation.
I keep getting the error, "line 82: syntax error: unexpected end of file".
I have checked every line to make sure all... (4 Replies)
Discussion started by: chakrv1
4 Replies
6. Homework & Coursework Questions
Hi Guys
I am new to Linux Shell Scripting . Can any one help me with this Task...files are attached for reference
Task 1: write a script to generate a large size report file MX0002_new.XML by using the template MX0001_new.XML. Shell script is recomended, and it can run on Linux without... (2 Replies)
Discussion started by: samy_1811
2 Replies
7. Shell Programming and Scripting
Hello,
Please, how can I complete this script:
Thank you (2 Replies)
Discussion started by: chercheur857
2 Replies
8. UNIX for Dummies Questions & Answers
we need help with the syntax with this shell script,
if you could create this shell script we can donate to a charity etc.
we need to set up a directory called user3
inside directory user3 we need to create the following files :
afile, anyfile, anotherfile, afiletest, bfile. bfiletest, cfile,... (3 Replies)
Discussion started by: cometboy
3 Replies
9. Shell Programming and Scripting
I have Linux x86_64 x86_64 x86_64 GNU/Linux
I thought that Linux can use only bash shell
however, when I wrote the code:
#!/bin/sh
NAME=`basename $0 .sh`
Today=`date '+%Y%m%d'`
TIMESTAMP=`date +%H:%M:%S`
LOCAL_SERVER=`hostname`
let countcla=0
countcla=`expr ${countcla} + 1`
... (18 Replies)
Discussion started by: digioleg54
18 Replies
10. UNIX for Beginners Questions & Answers
I have a csv file that looks like this
Name,Food,Sport
James,Curry,Gym
Darren,Pizza,Football
Jim,Fish,Hockey
James,Sushi,Tennis
My code looks like this
IFS=","
sed 1d $file_name | while read Name Food Sport
do
mkdir -p $Name
#echo "=================="
#echo "Name: $Name" (3 Replies)
Discussion started by: darklord173
3 Replies
LEARN ABOUT DEBIAN
mb-applet-launcher
mb-applet-launcher(1) General Commands Manual mb-applet-launcher(1)
NAME
mb-applet-launcher - an application launcher panel applet
SYNOPSIS
mb-applet-launcher [options] [action] image_file application
DESCRIPTION
mb-applet-launcher is a panel applet which can be used to start a given application. The applet displays the PNG or XPM file given on the
command line as an icon, and when the user clicks on the icon the application is started.
Matchbox is a base environment for the X Window System running on non-desktop embedded platforms such as handhelds, set-top boxes, kiosks
and anything else for which screen space, input mechanisms or system resources are limited.
OPTIONS
-display display
X display to connect to
--title title
--no-animation
Disable any animations
--start, -s
Start application immediately
The default action is to iconize/uniconize the selected application. Other actions can be specified as command-line options:
--kill, -k
Destroy the application
--respawn, -l
Respawn multiple instances of the application
--message, -m
Display output from the application as a message from the panel
Alternatively, a valid .desktop file can be given:
--desktop .desktop_file
Any actions given with this option will have no effect. Similar behaviour can be achieved by including a `SingleInstance=True' key
pair in the .desktop file.
AUTHOR
mb-applet-launcher was written by Matthew Allum <mallum@o-hand.com>.
Jul 17 2004 mb-applet-launcher(1)