09-18-2008
yes, i sure.
my question is
__________________________
Hi,
i have one file, filename -> a.txt, i want that simple way just enter command and it will do that, not through redirection way.
AAAAAAAAAAAAAAAAAAAAAAA
BBBBBBBBBBBBBBBBBBBBBBB
CCCCCCCCCCCCCCCCCCCCCCC
DDDDDDDDDDDDDDDDDDDDDDD
EEEEEEEEEEEEEEEEEEEEEEE
FFFFFFFFFFFFFFFFFFFFFFF
i want to disable line2 like
#BBBBBBBBBBBBBBBBBBBBBBB
and wants to add another line after line4 [ZZZZZZZZZZZZZZZZZZ] so output shows like that.
AAAAAAAAAAAAAAAAAAAAAAA
#BBBBBBBBBBBBBBBBBBBBBBB
CCCCCCCCCCCCCCCCCCCCCCC
DDDDDDDDDDDDDDDDDDDDDDD
ZZZZZZZZZZZZZZZZZZZZZZZ
EEEEEEEEEEEEEEEEEEEEEEE
FFFFFFFFFFFFFFFFFFFFFFF
10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Hi, I am a new Unix user and I would like to know which link to go to in order to learn Unix online. Something like tutorials for beginners (1 Reply)
Discussion started by: John K. Mbuki
1 Replies
2. UNIX for Advanced & Expert Users
Hi
when i execute the below command
sftp -b ftpCommand.ksh remoteuser@remoterserver
i am getting the error "-b requires an argument greater than zero"
Please can any one help me. (1 Reply)
Discussion started by: vgs
1 Replies
3. Shell Programming and Scripting
Hi
when i execute the below command
sftp -b ftpCommand.ksh remoteuser@remoterserver
i am getting the error "-b requires an argument greater than zero"
Please can any one help me. (4 Replies)
Discussion started by: vgs
4 Replies
4. UNIX for Advanced & Expert Users
Hi Gurus:)
I have to connect from a SunOS 5.10 to a 5.8 using sftp in BatchMode. For this, I have generated a Public-Key (ssh-keygen -b 1024 -P "" -t dsa) on the 5.10 and saved it in ~remote-user/.ssh/authorized-keys on the 5.8.
Then, running either one of ssh or sftp, it asks for the... (24 Replies)
Discussion started by: unilover
24 Replies
5. SuSE
hello every one,
here i am attempting to install freedce-1.1.0.7 on HP-UX machine.
in that process i ran a command ./configure at command prompt.
it's throughing the following error;
configure: error: freedce requires libdcethreads!
here i am pasting the ./configure output with... (1 Reply)
Discussion started by: mannam srinivas
1 Replies
6. Shell Programming and Scripting
Greetings,
Newbie here on the site. I have searched for a similar issue but am not finding one.
I have a script that invokes a command if text is found in a file.
The command asks for a y/n response, but is not an option on the command, i.e. `command -y`.
I am familiar with the <<EOF, but I... (5 Replies)
Discussion started by: 22blaze
5 Replies
7. Shell Programming and Scripting
Hi,
i need to change a file with perl having contents below, but it will not do any action if change is being already made.
file.txt
AAAAAA
BBBBBB
CCCCCC
output.txt (that required)
AAAAAA
#BBBBB
DDDDDD
CCCCCC
Thanks, (2 Replies)
Discussion started by: learnbash
2 Replies
8. Solaris
Can anybody help me how can we upgrade to Solaris 10 requires Update 4 (08/07) from Solaris 10 6/06.
cat /etc/release
Solaris 10 6/06 s10s_u2wos_09a SPARC
Copyright 2006 Sun Microsystems, Inc. All Rights Reserved.
Use is subject to... (4 Replies)
Discussion started by: Asteroid
4 Replies
9. Shell Programming and Scripting
Hi, I am creating a ksh script to search for a string of text inside files within a directory tree. Some of these file are going to be read/execute only. I know to use chmod to change the permissions of the file, but I want to preserve the original permissions after writing to the file. How can I... (3 Replies)
Discussion started by: right_coaster
3 Replies
10. Shell Programming and Scripting
Hi,
I am associated with a project where we received multiple incident on daily basis for different support groups like(unix support,windows support,vms support).
We use HP service centre as a ticketing tool where we gets all the incidents generated automatically when something went wrong on... (2 Replies)
Discussion started by: naman agarwal
2 Replies
CHSH(1) User Commands CHSH(1)
NAME
chsh - change login shell
SYNOPSIS
chsh [options] [LOGIN]
DESCRIPTION
The chsh command changes the user login shell. This determines the name of the user's initial login command. A normal user may only change
the login shell for her own account; the superuser may change the login shell for any account.
OPTIONS
The options which apply to the chsh command are:
-h, --help
Display help message and exit.
-R, --root CHROOT_DIR
Apply changes in the CHROOT_DIR directory and use the configuration files from the CHROOT_DIR directory.
-s, --shell SHELL
The name of the user's new login shell. Setting this field to blank causes the system to select the default login shell.
If the -s option is not selected, chsh operates in an interactive fashion, prompting the user with the current login shell. Enter the new
value to change the shell, or leave the line blank to use the current one. The current shell is displayed between a pair of [ ] marks.
NOTE
The only restriction placed on the login shell is that the command name must be listed in /etc/shells, unless the invoker is the superuser,
and then any value may be added. An account with a restricted login shell may not change her login shell. For this reason, placing /bin/rsh
in /etc/shells is discouraged since accidentally changing to a restricted shell would prevent the user from ever changing her login shell
back to its original value.
FILES
/etc/passwd
User account information.
/etc/shells
List of valid login shells.
/etc/login.defs
Shadow password suite configuration.
SEE ALSO
chfn(1), login.defs(5), passwd(5).
shadow-utils 4.5 01/25/2018 CHSH(1)