Hello,
I am trying to write a shell script that maintains the health of the passwd file. The goal is to check for duplicate usernames, UID's etc. I am able to find and sort out the UID and login names via awk (which I would like to use), but I can't figure out how to save the record field into a `sh` variable so I can use it for further testing.
Hi guru,
I'm making crazy cause an issue on a ksh shell I made.
In this shell I want to execute unix command on a remote machine using an ssh connection like ssh user@host 'command'.....
The command is very simply, is an ls on a remote directory but it give me an unexpected result.
The command is built using a variable:
ssh user@host 'ls ${var}' where var is a concatenation of others variabl
/etc/passwd
The /etc/passwd file is a text file that contains important information about each user in Linux Operating Systems.
Some of this info, is username, UID, GID, shell, home directory, and some other.
From Wikipedia:
/etc/passwd
The /etc/passwd file is a text file that contains important information about each user in Linux Operating Systems.
Some of this info, is username, UID, GID, shell, home directory, and some other.
From Wikipedia:
Write a shell script to emulate the Id command of PRIME which lists files and directories. It list files first with a header FILES and then directories with a header DIRECTORIES.
First I write a configfile with all my parameters like this
path="/home/test/"
I name it test.conf.
Then I write a shell script with this content, name it test, and make it executable with chmod +x.
#!/bin/bash
#read the config file
.
I have directory path in which there are several sub directories. In all these sub dir there will be one env.cnf file.
HI there. My teacher asked us to write a code for this question
Write a Unix shell script named 'mode' that accepts two or more arguments, a file mode, a command and an optional list of parameters and performs the given command with the optional parameters on all files with that given mode.
Write a shell script to emulate the Id command of PRIMOS which lists files and directories. It list files first with a header FILES and then directories with a header DIRECTORIES.