Search Results

Search: Posts Made By: I-1
1,558
Posted By I-1
So lets say I execure the script with the number...
So lets say I execure the script with the number 3
./script.sh 3
it will see that $n = 3
So when this is the case it will run what is between "do" and "done"
so it creates a directory "map_1"...
1,558
Posted By I-1
need an explanation on this script...
The following script will create a directory in a directory and will go on as many times as the number you will give in.

I am trying to find out how it works ... can someone please help me with...
2,999
Posted By I-1
its still not working... This is what I get:...
its still not working...

This is what I get:

root@CISCO-LAB-PC:/home/iwan/scripts# ./script55.sh
=====================================
Please Select a Script...
2,999
Posted By I-1
Ive checked both scripts but they are nor working...
Ive checked both scripts but they are nor working :-(
I am using "#!/bin/sh" to run the script but it gives me an error.

Can you please help me fix this?

This is the eerror that I get:

...
2,999
Posted By I-1
Thanks for your explanation and the script ... ...
Thanks for your explanation and the script ...
I see that the script has do be calles "script" and then a number and then a number.

Is it also possible to dynamically read the directory?
lets...
2,999
Posted By I-1
script that reads all the scripts in the directory and run them within that script
Hi I am trying to write a shell script that is reading all the scripts in the current directory (currently 5) and is allowing me to run the scripts that is in the directory.
I want that this scripts...
6,854
Posted By I-1
# n is 1 by default n=1 # this is a loop...
# n is 1 by default
n=1
# this is a loop where it actually says when n is less then 1 or on do something
while [ $n -le $1 ]
# this part I don't understand
do
dir=map_$n
mkdir "$dir" &&...
6,854
Posted By I-1
thanks tyler_durden & cfajohnson, Can you...
thanks tyler_durden & cfajohnson,

Can you also put in the comments tor this what does what?

Thanks
6,537
Posted By I-1
thanks for the explanation cfajohnson
thanks for the explanation cfajohnson
6,854
Posted By I-1
help needed with creating challenging bash script with creating directories
Hi,

Can someone help me with creating a bash shell script.
I need to create a script that gets a positive number n as an argument.
The script must create n directories in the current directory...
6,537
Posted By I-1
Hi, Thanks for this solution ... Can you...
Hi,

Thanks for this solution ...
Can you please put in with comments what does what?

Thanks,
6,537
Posted By I-1
get positive number n as argument script must calculate the factorial of its argument
Can someone please help me with this SHELL script?

I need to create a script that gets a positive number n as an argument. The script must calculate the factorial of its argument. In other words,...
3,856
Posted By I-1
Hi, Thanks for the help I found out after...
Hi,

Thanks for the help I found out after trying and using google that this is the way to do it:


#!/bin/sh
echo "Please type in a filename:"
read filename
if
[ -f ./$filename ];...
6,013
Posted By I-1
I am a n00b when it comes to shell scripting ......
I am a n00b when it comes to shell scripting ... but this is one of the things you cant miss when you read teh guides and books on this subject :-)
3,856
Posted By I-1
help needed with script that gets a filename as argument (with an if/else statement)
Hi,

I am trying to create a script just to study BASH scripting, but I have some problems.

I need to create a script that gets a filename as an argument. The script should behave as follows: ...
6,013
Posted By I-1
Hi, I think I allready found the solution...
Hi,

I think I allready found the solution ...


#!/bin/sh
echo "Please give in the filename"
read NEW_FILENAME
#read the current directory in long listing and sort by filesize (small to...
6,013
Posted By I-1
BASH script question / create a script that gets a filename as an argument
Hi,

I want to create a script that gets a filename as an argument.
The script should generate a listing in long list format of the current directory, sorted by file size.
This list must be...
4,222
Posted By I-1
I still dont understand it
I still dont understand it
12,011
Posted By I-1
How do I do this per page? The file has...
How do I do this per page?

The file has almost 20000 lines
12,011
Posted By I-1
grep/cat/more -- search in a txt file and display content from a specific "keyword"
Hi,

I have a .txt file

Sample:

=====================
NEXT HOST
=====================
AEADBAS001
ip access-list extended BLA_Incoming_Filter
ip access-list extended...
4,222
Posted By I-1
anbu23 Can you please explain me this line :...
anbu23

Can you please explain me this line :


What I understand of the first part is:
if something is found that begins (^) with access-list trough the complete document ($0) ... then ???
...
4,222
Posted By I-1
Thanks anbu23, This works great! I...
Thanks anbu23,

This works great!

I think I need to start learning this AWK scripting also ...

Thanks,
4,222
Posted By I-1
Hi, Thanks for the 2 commands you provided....
Hi,

Thanks for the 2 commands you provided.
But it's not working well ...

I have another file see below ...

So what I want is that it only shows 1 access-list line if the number is...
4,222
Posted By I-1
how do I filter double lines from a txt file
Hi,

I have a file with the following:

access-list.txt

router1
access-list 1 permit any any
access-list 1 deny any any
router2
access-list 2 permit any any
access-list 2 deny any any...
4,362
Posted By I-1
Hi, What if I dont use solaris? Is there...
Hi,

What if I dont use solaris?
Is there another way?

Thanks,
I-1
Showing results 1 to 25 of 28

 
All times are GMT -4. The time now is 06:16 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy