Hi all, I'm a student and a real bad student when it comes to shell scripts.
The question given is,
Shell script that accepts filenames specified as arguments and creates a shell script that contains this file as well as the code to recreate these files.
Hi friends you can solve my question about make 3 shell scripts?
Quote:
Write a shell script such that, given multiple files as arguments, showing, for each of them, his name and the number of lines it contains. Try it with any file.
2.
1. The problem statement, all variables and given/known data:
Problem 1:
I need to create a shell script the takes three arguments and echo's out "There once was a ____that____who like to_____"
The arguments go where the blanks are.
Problemt 2:
-Do an LS and store the listings in a file
-Open the file in emacs.
Hi All,
I want to pass few dynamic arguments to shell script. The number of arguments differ each time I call the script.
I want to print the arguments using the for loop as below. But not working out.
Code:
for (( i=1; i<=$#; i++ ))
do
echo $"($i)"
done
Code:
/bin/sh test.sh arg1 arg2 arg3
Any one please help.
I have a shell script that accepts an argument and uses that in the script. So to run the script I type
/path/to/script argument
The problem is when trying to setup that file to run using the at utility. I have tried
at -f /path/to/script argument 17:45
at -f '/path/to/script argument' 17:45
but neither of these options work.
I am new to schell scripting . My objective is to write a ksh shell script that performs following tasks: -
1. Script reads all command line arguments (arguments are file names) and checks if it contains charachters "abc" in it.
2. If it contains "abc" it will execute a binary file xyz <command line arguments>
Note: -
1. arguments can be from 1 to n.
2.
I have a shell script that takes 2 arguments.
I am writing a shell script to uncompress files in a directory, then call a Perl script to search the files for given terms, store those terms in a different output file , and compress the output. I get a syntax error with my use of foreach. Below is my script.
Code:
#!/bin/csh -fxv
if (!
Code:
echo $result=exec("./permit.sh".$_FILES["file"]["name"]);
pls suggest some other method to run shell script in php .:wall::mad: