01-18-2014
What have your tried so far? Because this looks suspiciously like homework/classwork and for such questions there is a special forum.
Further, regardless of being homework or not, it generally helps if you describe the environment you are working with: which shell are you using, on which UNIX/Linux systems does this have to run, what are the data types you expect and want to test, etc., etc. ...
I suggest you first explain what you want to do in more detail, only then we can really help you at all.
bakunin
10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Hi All
Can anyone let me have a easy way to test if no input was given to a standard read. I would think of using the lenght of the variable, however this seems to be a long cut.
Thx
J (8 Replies)
Discussion started by: jhansrod
8 Replies
2. UNIX for Dummies Questions & Answers
What script can I use to catch errors in a shell script if user inputs alpha numeric characters instead on integers from the keyboard? (0 Replies)
Discussion started by: Pauline mugisha
0 Replies
3. Shell Programming and Scripting
There are times where I want to use putty(vt100 TERM) and hummingbird (XTERM) is there a way to test what terminal connection I am using in my .profile so I can set my commands like stty erase correctly. (4 Replies)
Discussion started by: BeefStu
4 Replies
4. HP-UX
Hi,
I'm trying to download a compatible Oracle Client software for a HP-UX machine. I'd like to know if ...
1) HP-UX is 32 bit or 64 bit?
2) Processor type - Itanium or regular?
when I execute uname -a I get
HP-UX B.11.11 U 9000/800 728684161 unlimited-user license
Based on the... (7 Replies)
Discussion started by: luft
7 Replies
5. Shell Programming and Scripting
Ok, I have a script with a commandline option that allows the user to add a custom function to the script file. I have tried everything in my limited knowledge of sed to get this to work and keep coming up short. I need sed to search for a line starting with a pattern, I've got that part so far,... (0 Replies)
Discussion started by: DC Slick
0 Replies
6. Shell Programming and Scripting
I want a script that will add comments to a file before check-in files. comments depend on type of files.
i have a script to list files in the directory that will be checked-in
There are xml, js, html, vm files. vm will use comments like c/c++ ( // or /*..*/)
can you help me add a comment line... (0 Replies)
Discussion started by: pradeepmacha
0 Replies
7. Shell Programming and Scripting
Hi,
echo "Enter file name of input file list along with absolute path : "
read inputFileList
if
then
for string in `cat inputFileList`
do
echo $string
done
else
echo " file does not exist"
fi
From the above code, if the user enters a invalid file... (1 Reply)
Discussion started by: i.srini89
1 Replies
8. Shell Programming and Scripting
Hi,
can some one help me how to encrypt and decrypt a file.
AIM: reade user input, encrypt it and save it to file.
while decryption read the encrypted file decrypt it and save the output in some variable.
Example: consider we have Credentials.txt file with content username: password... (5 Replies)
Discussion started by: saichand1985
5 Replies
9. Shell Programming and Scripting
I am trying to allow a user to enter in text and then store that text in a variable $gene to run in an awk command in which those values are used to run some calculations. I am getting syntax errors however, when I try. Thank you :).
The awk runs great if it is a pre-defined file that is used,... (7 Replies)
Discussion started by: cmccabe
7 Replies
10. Shell Programming and Scripting
Hello,
I am running under ubuntu1 14.04 and I have a script which is sending given process names to vanish so that I'd see less output when I run most popular tools like top etc in terminal window. In usual method it works.
Whenever I restart the system, I have to enter the same data from... (2 Replies)
Discussion started by: baris35
2 Replies
LEARN ABOUT DEBIAN
tsplay
TSPLAY(1) User Commands TSPLAY(1)
NAME
tsplay - play the given TS or PS file 'at' the nominated host, or to an output file
DESCRIPTION
Play the given file (containing Transport Stream or Program Stream data) 'at' the nominated host, or to an output file. The output is
always Transport Stream. With no switches, tsplay will give a brief summary of its basic usage. Otherwise:
-help detail[s]
Show an expanded version of the help you get if you run tsplay with no arguments
-help ts
Show help specific to playing TS data
-help ps
Show help specific to playing PS data
-help tuning
Show help about how to tune the program's operation
-help test[ing]
Show help on switches that can be useful in testing the target application (the video player)
-help debug[ging] Show help on debugging this application.
-help Show this message
-help all
Show all available help (equivalent to each of the above specific helps, in order)
Otherwise:
-help detail[s]
Show an expanded version of the help you get if you run tsplay with no arguments
-help ts
Show help specific to playing TS data
-help ps
Show help specific to playing PS data
-help tuning
Show help about how to tune the program's operation
-help test[ing]
Show help on switches that can be useful in testing the target application (the video player)
-help debug[ging] Show help on debugging this application.
-help Show this message
-help all
Show all available help (equivalent to each of the above specific helps, in order)
SEE ALSO
The full documentation for tsplay is maintained as a Texinfo manual. Please check http://tstools.berlios.de for more information.
tsplay 1.11 November 2008 TSPLAY(1)