Hi
View/Edit a file in unix is quite easy indeed.You may like the following to use
1 cat <file_name>
2 cat><filename>
3 vi <filename>
Note that 1st option is to VIEW file only.You will not be able to write in this mode.
2nd and 3rd options make you enable to edit a file.
Be cautious when you edit a file using 3rd option as it may need a bit more knowledge about VI editor prior to use.
But there is no harm in using the 2nd option mentioned above
thanks .
Suggesting redirecting output from the cat utility to edit a file is an EXTREMELY dangerous suggestion for a new user. The first thing that the command:
does is delete everything in the file named filename. The user then has to retype the exact original contents of every line in the original file except for the changes to be made to the single line that you want to change.
This User Gave Thanks to Don Cragun For This Post:
hi All,
Plz let me know how to edit a file with 2000000 records.
each record contains with 40 field seperated by |.
i want modify 455487 record, but i am uable to edit this large file using vi editor in unix.
plz let me know how to modify this file.
Thanks in advance.
-Bali Reddy (3 Replies)
I am getting the fallowing error when i am trying to execute the scp commomd in shell script
warning: You have no controlling tty. Cannot read confirmation.
warning: Authentication failed.
Disconnected; key exchange or algorithm negotiation failed (Key exchange failed.).
scp2: warning: ssh2... (1 Reply)
Hi,
Can anyone help me. I am a new user in unix. I want to transfer (ftp) a file from one unix server to another server. Kindly help me.
more details:
server 1
file_name a.lst
path: :/temp
server 2
path : /develp/temp
Thanks,
Raj, (2 Replies)
I'm trying to write a Perl script where a file from a UNIX server box connects to a Windows server box and copies that file into the Window box.
The main problem I have right now is that whenever I try to connect to the Windows box, the connection is refused.
The error message that always pops... (2 Replies)
Is it possible to upload a file from unix server to sharepoint server through shell or perl scripting. I have the sharepoint link where it needs to be uploaded.
Could you please share your views on this ? (0 Replies)
Dear All,
Can someone help to command or program to transfer the file from windows to Unix server and from one unix server to another Unix server in secure way.
I would request no samba client. (4 Replies)
HI Guys,
I want to download files from FTP Server to my Unix server.
I have tried , buy No Luck .
Below Command i have tried.
1-Wget - Error "wget' not found"
2.ftp -n $HOST ...Not Working.
3.scp -i ftp://user:passowrd@hostname:21/ran/on/test.txt
Any Suggestion (2 Replies)
Hello, I'm working with Solaris and I need to share files between Windows Server 2012 and Solaris through an authentication with an Active Directory user, where Windows Server is the "main server". All was going good, until after see the WS files and I tried to open one and modify it, but I cannot... (1 Reply)
Discussion started by: QeratD0
1 Replies
LEARN ABOUT SUNOS
deploytool
deploytool(1m) Application Server Utility deploytool(1m)NAME
deploytool - launches the deploytool utility to deploy, package, and edit your J2EE applications
SYNOPSIS
deploytool [--help] [--userdir user_directory] [--configdir configuration_directory]
Use the deploytool utility to deploy and package your J2EE applications and components, create and edit J2EE deployment descriptors, and
create and edit J2EE Application Server specific deployment descriptors. If the application is not J2EE compliant, an error message is dis-
played.
Only one session of the deploytool utility can run with a specific user directory. A lock file is created to ensure that only one utility
session is running. A message is displayed if a lock file is detected.
OPTIONS --help displays the arguments for launching the AssemblyTool.
--userdir identifies the user directory. The default user directory is .deploytool under your home directory. Only one
deploytool session can be running per user directory. A lock file is created under the user directory to ensure
that only one session of the deploytool is running. The deploytool utility uses this directory to store configura-
tion information.
o On Solaris, the default directory is at ~/.deploytool
--configdir identifies the configuration directory. The configuration directory is where the asenv.conf file is located.
On Solaris the asenv.conf can be found at:
o Bundled installation: /etc/appserver
o Unbundled installation: default is /etc/opt/SUNWappserver7 or user specified
o Evaluation installation: AS_SERVER_INSTALL/config. Where AS_SERVER_INSTALL is the directory where you have
installed the Java 2 Platform, Enterprise Edition 1.4 Application Server Beta 2.
EXAMPLES
Example 1: Using deploytool
example% deploytool --userdir /myapplication --config_dir /myconfigdir
Where --userdir specifies the destination directory, and -config_dir identifies the configuration directory.
SEE ALSO verifier(1M)Sun Java System Application Server March 2004 deploytool(1m)