Im trying to print /etc/passwd with a variable connecting to /etc group/
But when im trying to print the output, /etc/group is printing also. Can i ask for help on what command to use
so it will ignore /etc/group and only print /etc/passwd.
here's the sample script. pages number and the /10 entry line pages should be used also.
I have a script that askes users to enter in an oracle account and password, The information is displayed on the screen as they type it. Does anyone know how I can hide this output?
:confused: (1 Reply)
I am trying to have a script ping all the clients then output it to a file so I know which clients are off then have the next script pull the ones that are online and reboot them.
This is what I am running with right now. If there is something KISS then by all means please let me know.
... (3 Replies)
hi
i m trying to print the permissions for a file in output
echo name
read name
touch name.txt
permission=$((ls -l $name.txt))
echo permission
please suggest where i went wrong? (2 Replies)
Hi Expert,
I want to print CPU and Memory utilization into a text file. I am using "prstat -Z" to see the output on screen. When I run below command
prstat -Z | grep httpd | awk '{print$3} '>> output.txt
but it is not printing to file. Also I want to be below header on output
PID USERNAME ... (6 Replies)
I have n files and I am using cat to combine them in to one.
Before that simply add the name of the output file to 4th column and then print the output. Is it possible ?
input1
chr start end name 0 + key
input2
chr start end name 0 + key
inputn... (1 Reply)
Hi All,
I have around 900 Select Sql's which I would like to run in an awk script and print the output of those sql's in an txt file.
Can you anyone pls let me know how do I do it and execute the awk script? Thanks. (4 Replies)
Hi Friends,
This is the only solution to my task. So, any help is highly appreciated.
I have a file
cat input1.bed
chr1 100 200 abc
chr1 120 300 def
chr1 145 226 ghi
chr2 567 600 unix
Now, I have another file by name
input2.bed (This file is a binary file not readable by the... (7 Replies)
Hi All,
I have written one script, which is connecting 3 diffrent servers and executing script placed on those.
It is smthing like:
spawn ssh user@server1
expect "*? assword:"
send "pw \r"
expect "$"
send " sh ./filename1 \r"
expect "$"
expect eof
spawn ssh user@server2
expect "*?... (7 Replies)
Hi,
I need to somehow pipe the password to a command and run some SQL, for example, something like echo $password | sqlplus -s system @query01.sql
To make it not so obvious, I decided to try out writing a small C program that basically just do echo $password. So now I just do x9.out | sqlplus... (8 Replies)
I have a python script that gives output called test.png. By using the following command I run the script every 2 seconds. What is the easiest way to save the output as follows ( test.png (1st output), tes1.png (second output), tes2.png ....)
Command I i use
while sleep 2; do python... (1 Reply)
Discussion started by: quincyjones
1 Replies
LEARN ABOUT SUSE
vipw
vipw(8) System Manager's Manual vipw(8)NAME
vipw,vigr - edit the password, group or shadow file
SYNOPSIS
vipw [-g|-p|-s]
vigr [-g|-p|-s]
DESCRIPTION
vipw/vigr edits the passwd,group or shadow file after setting the appropriate locks to prevent file corruption. vipw edits per default the
/etc/passwd file, vigr the /etc/group file. Extended attributes (like ACLs or security attributes) are preserved.
ENVIRONMENT
EDITOR If the environment variable exists, the editor specified by this variable is used instead of the default vi(1).
OPTIONS -g, --group
Edit /etc/group.
-p, --passwd
Edit /etc/passwd.
-s, --shadow
Edit /etc/shadow.
-u, --usage
Print a usage message and exit.
--help
Print a more verbose help text and exit.
Print version information and exit.
FILES
/etc/group - group account information
/etc/passwd - user account information
/etc/shadow - shadow account information
SEE ALSO attr(5), passwd(1), passwd(5), shadow(5), vi(1)AUTHOR
Thorsten Kukuk <kukuk@suse.de>
pwdutils October 2003 vipw(8)