10 More Discussions You Might Find Interesting
1. UNIX for Beginners Questions & Answers
Let's say I have a file written in C programming
...
int
function A (Param1, Param2)
{
....
}
How to grep this function?
I tried grep -ER '^functionA(.*)/n{' filename > result.txt
Not work :mad:
Please use CODE tags on all sample input, output, and code segments; not just on shell... (4 Replies)
Discussion started by: cmdcmd
4 Replies
2. Shell Programming and Scripting
I want to make a config file which contain all the paths.
i want to read the config file line by line and pass as an argument on my below function.
Replace all the path with reading config path line by line and pass in respective functions.
how can i achieve that?
Kindly guide.
... (6 Replies)
Discussion started by: sadique.manzar
6 Replies
3. Shell Programming and Scripting
The file starts like this:
Directory: <path to the script>
Script: <script fife name>
#!bin/ksh
##Comments
<actual script>
What is the use of the first two lines in the script? What if I save the file without them? What will be the effect? They are not comments. Im very new to this,... (4 Replies)
Discussion started by: remytom
4 Replies
4. Shell Programming and Scripting
Hi everybody,
I want your help on what, I suppose, might seem a simple task to many of you.
the deal is to write a script that will look in a specific folder to see if there is any file whose size is bigger than say 1M and if so to execute a command.
like
if
then
log_rotate
fi
... (3 Replies)
Discussion started by: lenci_xc
3 Replies
5. UNIX for Advanced & Expert Users
Hi,
We have installed linux6(RHEL) OS and installed datastage application on that.
First time installation worked fine and our all services related to datastage was up and running.
When we stopped the datastage and restarted its giving below error while restart:-
./uv -admin -start
... (0 Replies)
Discussion started by: prasson_ibm
0 Replies
6. Fedora
Hi Folks,
I have a script called program.sh which was written by someone. I am supposed to edit it for my necessities.
There is a line in the script that is as follows
if ]; then
echo -e "Option limit should be positive number and less than 1. Program aborts!"
exit 1
... (27 Replies)
Discussion started by: jacobs.smith
27 Replies
7. Homework & Coursework Questions
Use and complete the template provided. The entire template must be completed. If you don't, your post may be deleted!
1. The problem statement, all variables and given/known data:
I must write a shell script that calls two external Perl functions--one of which sorts the data in a file, and... (6 Replies)
Discussion started by: kowit010
6 Replies
8. Red Hat
please help me in this script
shell script :1
***********
>cat file1.sh
#!/bin/bash
echo "this is first file"
function var()
{
a=10
b=11
}
function var_1()
{
c=12
d=13 (2 Replies)
Discussion started by: ponmuthu
2 Replies
9. Shell Programming and Scripting
This is my function which is creating three variables based on counter & writing these variable to database by calling another function writeRecord
but only one record is getting wrote in DB.... Please advise ASAP...:confused:
function InsertFtg
{
FTGSTR=""
echo "Saurabh is GREAT $#"
let... (2 Replies)
Discussion started by: omkar.sonawane
2 Replies
10. Shell Programming and Scripting
hi,
i am a newbie and have to write a rather complicated script. Assume that i have a variable called x and a C source code file say file1.c (these are the inputs of the script) and i need to find the names of all the functions in the C file containing x.Take the following code as an example:
... (2 Replies)
Discussion started by: samantha grace
2 Replies