I am in need of some help with UNIX/Linux, particularly sed and awk:
Please help me Display from /etc/passwd a list of users
and their shells for those using the
Korn shell or Bash shell. Order the output by the absolute pathname
of the shell used.
Thank you.
from /etc/passwd
first we need to cut itaccording to required specifications
1)cut -d: -f1/etc/passwd
then now use sed command:
2)sed 's/:.*//' /etc/passwd
this is to make sure that it seperates the required format
then the last command which is to be used is:
awk -F: '{print $1}' /etc/passwd
this is used to print the requiired format
I am in need of some help with UNIX/Linux, particularly sed and awk: Please help me...
I am taking an introductory course in unix/linux shell programming and need some help. Can you tell me what command I would use to make the variable myName readable by child process
Can you help me? I am taking an INTRODUCTORY unix/linux shell programming course and need to know what the following command will do. Need a SIMPLE answer please. onsystem john1 &
I need some help with the cp command in Unix/Linux. I need to copy all the files in my current directory A03 into the backup directory. How do I do this? I am taking an introductory unix/linux course so I need a basic answer. Thanks.
I need some help with Linux I want to delete the line by using sed: echo 'abc123@email.com' | sed '/\S\@\S\.\S/d' this command does not work. What is the problem?
Unix questions, i need help on Hint: Commands to study to answer this question: predefined shell variables, and .profile script file, echo SHELL, HOME, PATH, MAIL and TERM are predefined shell variables. You can use the value of a shell variable in a shell command putting $ in front of it. For example, to display the value of the HOME directory of the user, specify $HOME in the echo command like echo $HOME. Do not give just the value of...
I need help with my homework assignment Linux systems keep user account information in the passwd file and the encrypted password in the shadow file. The passwd file containing account information might look like this: smithj:x:1001:1001:John Smith:/home/smithj:/bin/bash The shadow file containing password and account expiration information for users might look like this: smithj:KJDKKkkLLjjwlnttqoiybnm.:10063:0:99999:7::: The fields in the shadow file are separated by a colon, with the first field being the username and the second being the password. Under normal circumstances,...
UNIX/LINUX Help. I need to modify this script so that the output of the file name is changed from you_someAssignment.txt to You.someAssignment.txt. #!/bin/sh if [ $# -eq 1 ]; then STUDENTNAME=$USER ASSIGNMENT=$1 else echo "usage: `basename $0` [assignment]" exit 1 fi if [ ! -d "$ASSIGNMENT" ]; then # Control will enter here if $ASSIGNMENT doesn't exist. mkdir $ASSIGNMENT fi # Move into the directory cd $ASSIGNMENT # Variable for the filename FILENAME=$USER\_$ASSIGNMENT.txt HOST=$(hostname) DATE=$(date +"%m-%d-%Y") TIME=$(date +"%r") if [...
I am a college student taking an intro to linux shell programming course and need some help with this question. I need to write an until statement as indicated: Check to see if the file cis132 exists in the current directory. If it does not a message will be printed every 10 seconds indicating that file does not exist. Once the file is created the message will stop. Thanks for your help.
I am a college student taking an INTRODUCTORY linux shell programming course and need some help with writing a for statement. How would I write a for statement to process all the arguments at the command line and indicate if the argument contains the name of a student in my class. The names of the students are in the file cis132students. I realize you do not have the file but if you could write it I could see if it...