Search Results

Search: Posts Made By: kaustubh
5,794
Posted By kaustubh
Haha. I know that's quite silly, Just to practice...
Haha. I know that's quite silly, Just to practice manipulation with files with sed and awk and to try producing different outputs, nothing else.
5,794
Posted By kaustubh
WoW! That was fast and it worked! Thanks!
WoW! That was fast and it worked! Thanks!
5,794
Posted By kaustubh
Syntax error near unexpected token 'elif'
Solaris 10
This is my script:


#!/bin/bash
#Script to print number of users and print list of them
NO=`awk < /etc/passwd -F: '{ print $1 }' | wc -l`
echo There are $NO users on system.
echo...
2,149
Posted By kaustubh
Thanks! it worked! What about second question?
Thanks! it worked! What about second question?
2,149
Posted By kaustubh
Shell script newbie, what is problem with my script?
Hello,
Ubuntu server 11.10
can anybody help what is problem with my shell script?

#!/bin/bash
#script to find out currently logged on user is root or not.
if [[$EUID -eq 0]]
then
echo "You...
Showing results 1 to 5 of 5

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