Thread: Bash shell scripts
April 8th, 2007, 04:28 AM #1
Bash shell scripts
For educational purposes, i aquired and installed a linux distro ( ubuntu server ).
I thought about writing some scripts in VI to make others ssh'ing into it's lives easier.
They will be using the bash shell so it must work in Bash.
1st script idea.
I want it to display the users last login date/time as well as users last logout date/time. Then it should display under that the pcurrent server's name connected to, and the actual date when they connected.
I forget how you make scripts ignore commands ir unput variables, wasnt it like $username, etc.
2nd script idea.
Because of the nature of my servers usage. i want a script that will display all the executable files for them in order of last modification.
this one is like a pipe to | sort or something.
Id like them to have a script that creates a tree looking output into terminal with whatever directory they are currently in at the top and sub directories underneath.
i dont know how id go about with this one, still learning console commands. Any help with these would be aprpeciated. My level of knowledge with unix and Bash are moderate.Mild Computer Repairman By Day
Bloodthirsty Space Pirate By Night
Users Browsing this Thread
There are currently 1 users browsing this thread. (0 members and 1 guests)
By MeshuggaH in forum Linux and UnixReplies: 1Last Post: May 6th, 2004, 11:41 AM
By [Neo770] in forum Linux and UnixReplies: 5Last Post: April 21st, 2004, 11:12 PM
By NeoStarO1 in forum Applications and Operating SystemsReplies: 1Last Post: August 15th, 2002, 03:29 PM
By M_Six in forum Suggestion BoxReplies: 1Last Post: June 17th, 2002, 01:49 AM
By Kuasimodem in forum IMO CommunityReplies: 0Last Post: February 25th, 2002, 10:25 PM