Search Results

Search: Posts Made By: new2Linux
5,633
Posted By new2Linux
unfortunately didnt work, thats what ive done ...
unfortunately didnt work, thats what ive done

'*')

ls "$@"
;;


d)

clear
echo " "
test -f $FileName #check if the name of directory is...
5,633
Posted By new2Linux
from the command line ls * output ...
from the command line
ls *
output

filename1 filename2 filename3 filename4

directory1:
bashScript1 bashScript2 bashScript3

directory2:
ShellScript1 ShellScript2 ShellScript3
...
5,633
Posted By new2Linux
im just beginner with bash, so i totally agree...
im just beginner with bash,
so i totally agree with you about what you said i wont be able to handle all filespec.

what do u suggest for me to handle at least outputting or listing the directory...
5,633
Posted By new2Linux
Thanks for the help guys, actually im writing a...
Thanks for the help guys, actually im writing a script that does the same functions as ls command, i wrote a script that does -l option and -f to create a file and -d to create a directory, but i...
5,633
Posted By new2Linux
handling filespec in bash script
hi there,
i just need a help handling the output of filespec in case has been picked

im writing a bash script similar to the command ls,
and ive done everything except handing the filespec...
1,840
Posted By new2Linux
put the : before a not a: follow this...
put the : before a not a:

follow this example and you should be able to figur it out:

while getopts :xy:z var
do
case $var in
x) echo x found;;
y) echo y found with $OPTARG;;
z) echo z...
2,480
Posted By new2Linux
Im not sure whether its gonna help you or not, ...
Im not sure whether its gonna help you or not,
but what popped to my mind:

in case you know which line is :
you can use sed in deleting line

in case you are looking inside a file and you...
1,613
Posted By new2Linux
:eek: 0ops, you missed understanding, its not...
:eek: 0ops, you missed understanding, its not homework or quiz, its just exercise from a book.

Ive googled before i post, and i got some result but didn't work quit right,
i wont post something...
1,613
Posted By new2Linux
validating a file or directory
Hi there,
im writing a script and trying the get the 2nd parameter and check it if its valid file or valid directory,
Example:

./test -a quiz1

i need to check quiz1 ($2)
if it matches...
6,337
Posted By new2Linux
Thanks guys that was really helpful.
Thanks guys that was really helpful.
6,337
Posted By new2Linux
Ive got output: root 2 0 0...
Ive got output:

root 2 0 0 Jun16 ? 00:00:00 [kthreadd]
root 3 2 0 Jun16 ? 00:00:00 [migration/0]
root 4 2 0 Jun16 ? 00:00:00...
6,337
Posted By new2Linux
daemons definition
hi there,
can somebody give me a definition for daemons, or example what are they !!
and what the use for?

i've done some research and all what i found is /etc/...
or /usr/bin/...

and i...
5,992
Posted By new2Linux
Have you tried to write a function for it !! ...
Have you tried to write a function for it !!

for instance: after the code that you have wrote you can check its return value by
echo $?
if the output was zero, so the command has executed...
20,158
Posted By new2Linux
comparing two arrays
actually i need to do all what you have mentioned,

- user 1 enter a word
- user2 try to guess by entering a character,
- checking if this character matches any character in the word...
1,531
Posted By new2Linux
how to avoid entering wildcards in a word
Hi everybody,
im writing a bash script, and receiving entry from a user, and i need to check if the word has any wildcards in.
do u have any ideas please .

thanks .
20,158
Posted By new2Linux
comparing two arrays or strings in bash
Hi there,
im having issue with comparing two variables, in a bash script.
im trying to do the following:
- get a word from user 1
- split the word into array
- get a character from user2 ...
Showing results 1 to 16 of 16

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