10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
while getopts ":n:" opt; do
case "$opt" in
echo "host =... (7 Replies)
Discussion started by: Vishal_dba
2. Shell Programming and Scripting
Is there any simple way to get/identify the variables that are used in a file and print those variable names. If I have something like this in a file,
I want to display the variables 'var', 'var2' and 'var3' from that file. I tried something like... (6 Replies)
Discussion started by: pvamsikr
3. Shell Programming and Scripting
I have the below scenario in my environment
Developers used to copy file from windows to Linux box. Some time on the copied file developers miss to run the dos2unix utility. Because of this script gets failed during the execution. Most of the failures are due to the dos2unix format... (7 Replies)
Discussion started by: kalpeer
4. Shell Programming and Scripting
Can someone let me know how could I achieve this
In one of per script I am calling the shell script but I need to so one thing that is one shell script call I need to pass pne argument.In below code I am calling my ftp script but here I want to pass one argument so how could I do this (e.g:... (5 Replies)
Discussion started by: anuragpgtgerman
5. Shell Programming and Scripting
I am creating a startup script for an application. This application's startup script is in bash. It will also need to call a perl script (which I will not be able to modify) for the application environment prior to calling the application. The problem is that this perl script creates a new shell... (5 Replies)
Discussion started by: leepet01
6. Shell Programming and Scripting
Hi everyone I am new to the forums.
I haven't done much linux myself but I have been asked if I can do the following.
Write a linux script that needs to scan a certain folder every x amount of minutes and if there is a file in the folder then it needs to call a different script.
Is this... (2 Replies)
Discussion started by: Bosbaba
7. Shell Programming and Scripting
i am beginner on shell scripting .and i am working on my project work on ad hoc network
i wrote a batch (.sh) to do a looping and execute a tcl script i wrote before in each iteration ..but i got this problem "
syntax error near unexpected token `('... (1 Reply)
Discussion started by: marcoss90
8. Shell Programming and Scripting
I have two files. File1 or the master file contains two columns separated by a delimiter:
File 2 which is the file to be processed has only a single column
What I need is an awk script to identify unique names from file 2 which are not found in the... (6 Replies)
Discussion started by: gimley
9. Shell Programming and Scripting
Have a script that I'm trying to adapt for something else, but I do not understand the following lines. Can anyone help?
I know what expr does, `expr 8 + 2`, but:
FILENAME=`expr //$FILE : '.*/\(.*\)'`
UNPACKDIR=`echo $FILE | sed -e s/$FILENAME//g`
Thanks (6 Replies)
Discussion started by: bound4h
10. Shell Programming and Scripting
I am new to BASH and writing a small script to identify the SHELL .
echo "it's Bash"
echo "it's not Bash"
$ bash -x a.sh
a.sh: line 4:
where am I missing . PLease advice . (10 Replies)
Discussion started by: talashil