Search Results

Search: Posts Made By: Miki1579
992
Posted By Miki1579
Calling variables in case
Hey guys,

I got a little problem with calling variables in my case

This is a simple version of my script:

var1=1
var2=2

while [ $1 ]
do
case $1 in
"a")
var1=$var2;
...
1,510
Posted By Miki1579
Works perfectly thank you very much !
Works perfectly thank you very much !
1,510
Posted By Miki1579
Loop to read parameters and stop
Hey guys,

How do I make a loop that reads all the parameters en then stop when there are no parameters anymore ?
Something that gives an output like this:

./Script.sh parameter1 parameter2...
2,614
Posted By Miki1579
Works great thanks guys !
Works great thanks guys !
2,614
Posted By Miki1579
Find the length of a path
Hey,

I got a question: how do I find the length of a path ?

this is the context:

I used this funtion find:
DIR="/home/name/directory"
find DIR -name "*.extension"

The output is then:...
2,392
Posted By Miki1579
Search for file extensions in the given directories
Hey guys,

I'm lost... I need to make a script that will work in this way:

./script.sh -e sh /usr/bin /home/student

this script will result in this output:

amuFormat.sh /usr/bin...
Showing results 1 to 6 of 6

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