Search Results

Search: Posts Made By: yang
31,594
Posted By yang
sorry..i tried using all these code..but it dun...
sorry..i tried using all these code..but it dun work
i have the following code

while test -z $username
do
echo -n "enter username: " ;read username
done

this code gives me an error if i...
3,112
Posted By yang
i wil lbe using shell script and ubuntu to test..
i wil lbe using shell script and ubuntu to test..
3,112
Posted By yang
how to do file locking?
how to ensure all files are being locked while updateing some files?
example when i want to update the password and shadow file in unix. how do i implement file locking??

please advice
thanks
31,594
Posted By yang
if i am taking user input and the input contain...
if i am taking user input and the input contain space??
31,594
Posted By yang
how to check if a string consist of any space?
hi all
how do i check if a string consist of any space by using shell script.
i have the following code
while test -z $string
do
//prompting for another string if string is length 0
done
...
4,415
Posted By yang
oh..ok..thanks a lot..
oh..ok..thanks a lot..
7,649
Posted By yang
ok..thanks a lot..it works
ok..thanks a lot..it works
3,010
Posted By yang
this is my first time using shell and i know...
this is my first time using shell and i know nothing.
erh...i need some sample code...
or do you have any site that is idiot proof?
thanks..
4,415
Posted By yang
create directory
how do i create a directory.
how do check if the directory exist and it is valid?

thanks
3,010
Posted By yang
file locking
how do i implement file locking in unix?
example if i want to update a file, i would like to use file locking. how do i implement it?
i am using shell script
thanks
7,649
Posted By yang
what does NF mean? can i assign a variable to the...
what does NF mean? can i assign a variable to the number that is printed out?
7,649
Posted By yang
can it reference to a variable? example like...
can it reference to a variable?

example like
teststring= "wsd:ggs:ttj:sss"

how can i print out '4', separate the string with deliminter ':'
7,649
Posted By yang
sorry..it works..thanks a lot...
sorry..it works..thanks a lot...
7,649
Posted By yang
sorry.i dun understand what you mean. example...
sorry.i dun understand what you mean.
example a:c:d
i want it to return me 3 by counting how many field
7,649
Posted By yang
count the number of field in a string with deliminter
hi
i am new to shell and would like ask some question about shell

how am i suppose to count the number of fields with delementer example
a:b:c:d
would return me 4
how am i going to do it...
Showing results 1 to 15 of 15

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