Start networking and exchanging professional insights

Register now or log in to join your professional community.

Follow

What are some practices for writing shell scripts?

user-image
Question added by dana tutunji , Architect , Helou Trading Co
Date Posted: 2013/06/30

1-Develop and test a program to reenter fields during data entry2-Create a program algorithm to solve a cursor repositioning problem3-Create shell functions and use them in a program4-Develop and test a program to eliminate duplicate records5-Load shell functions automatically when you log in6-.
Automating your daily tasks.
For example, to back up all the programs at the end of the day.
7- Executing important system procedures, like shutting down the system,  formatting a disk, creating a file system etc.

Ravi K
by Ravi K , RAKBANK

you can try starting off with writing a loop to cat /etc/passwd and then extracting the user id using awk.
after that you can use the userid to list specific properties using for.

More Questions Like This