Sponsored Content
Homework and Emergencies Homework & Coursework Questions Edit the file in shell script Post 302897368 by Don Cragun on Sunday 13th of April 2014 06:04:07 PM
Old 04-13-2014
The vi utility is an interactive editor, not a scripting editor. Look at the man pages for ex, ed, and sed for utilities that are intended to be used to edit files in scripts.
 

10 More Discussions You Might Find Interesting

1. AIX

How to edit txt file by shell script?

What I want to do is just delete some lines from a text file, I know it's easy using copy and redirect function, but what I have to do is edit this file (delete the lines) directly, as new lines may be added to the text file during this period. Can AIX do this ? # cat text 1:line1 2:line2... (3 Replies)
Discussion started by: dupeng
3 Replies

2. Shell Programming and Scripting

shell script to edit the content of a file

Hi I need some help using shell script to edit a file. My original file has the following format: /txt/email/myemail.txt /txt/email/myemail2.txt /pdf/email/myemail.pdf /pdf/email/myemail2.pdf /doc/email/myemail.doc /doc/email/myemail2.doc I need to read each line. If the path is... (3 Replies)
Discussion started by: tiger99
3 Replies

3. Shell Programming and Scripting

Edit a config file using shell script

I need to edit a config file using shell script. i.e., Search with the 'key' string and edit the 'value'. For eg: below is what I have in the config file "configfile.cfg". Key1=OldValue1 Key2=OldValue2 I want to search for "Key1" and change "OldValue1" to "NewValue1" Thanks for your... (7 Replies)
Discussion started by: rajeshomallur
7 Replies

4. Shell Programming and Scripting

shell script to edit file and delete entry

Can anyone provide me a shell script to edit a xml file and delete one entry. To do manually i can edit(vi editor) the file and 'dd' will delete the file.But I wiluld to know if I can do with a script. Thanks in advance Tannu (6 Replies)
Discussion started by: tannu
6 Replies

5. Shell Programming and Scripting

How to edit particular cell of csv file using shell script

I have one csv file and in that I want update particular cell. I know the row and coloumn number for that respective. Please help me... (6 Replies)
Discussion started by: deepak_p86
6 Replies

6. Shell Programming and Scripting

Can we edit crontab using a shell script

Hi, Can some one tell me if we can configure the jobs in crontab using a shell script. I know it can be done easily by using "crontab -e", but i just want to know whether we can add a job into the crontab using a shell script. If it can be done, plz suggest the procedure to do it. If it... (6 Replies)
Discussion started by: rudrarajumk
6 Replies

7. Shell Programming and Scripting

Shell script to edit a file

Hello, I have a big file in wich I would like to rename inside this exactly the string '_ME' and not rename in case we have 'ABC_MELANGE'. Is there a way to do it by using a shell script? Any tip will be apreciated. The file is like described bellow, after using command more filename : ... (3 Replies)
Discussion started by: Titas
3 Replies

8. Shell Programming and Scripting

shell script to edit a file

i have a file called number which contains data as 1 2 3 4 5 6 7 8 9 0 9 8 7 6 5 4 3 2 1 0 0 1 2 3 4 needed a shell script to print the output as 1 7 7 1 4 and (2 Replies)
Discussion started by: jacky29
2 Replies

9. Shell Programming and Scripting

Automating using shell script : edit the file in a directory

I am trying to automate hadoop installation procedure using shell script. It involves go to perticular directory and add some more lines to the file /etc/sysctl.conf. How this can be done? Regards Navaz (1 Reply)
Discussion started by: Abdul Navaz
1 Replies

10. Shell Programming and Scripting

Open and edit a file using a shell script

Hello Folks, I have a file named as date.dat present at /tmp/abc location which has following data - 20161030,20161031,20161101 I need to remove this line and replace it with something like below - $param1,$param2,$param3 Param1, Param2 and param3 stores the date based on some calculation in... (1 Reply)
Discussion started by: ektubbe
1 Replies
BLAZE(1)						    BlazeBlogger Documentation							  BLAZE(1)

NAME
blaze - allows you to run BlazeBlogger utilities with a single command SYNOPSIS
blaze command [option...] blaze help|man [command] blaze -h|-v DESCRIPTION
blaze provides a common way to run BlazeBlogger utilities with a single command. OPTIONS
Command Line Options -h, --help Displays usage information and exits. -v, --version Displays version information and exits. Available Commands init, in Runs blaze-init, a utility that either creates a BlazeBlogger repository, or recovers a previously corrupted one. config, cf, cfg Runs blaze-config, a utility that either displays, or sets BlazeBlogger configuration options. add Runs blaze-add, a utility that adds a blog post or a page to the BlazeBlogger repository. edit, ed Runs blaze-edit, a utility that edits a blog post or a page in the BlazeBlogger repository. remove, rm, del Runs blaze-remove, a utility that removes a blog post or a page from the BlazeBlogger repository. list, ls Runs blaze-list, a utility that lists blog posts or pages in the BlazeBlogger repository. make, mk Runs blaze-make, a utility that generates a blog from the BlazeBlogger repository. log Runs blaze-log, a utility that displays the BlazeBlogger repository log. help Displays usage information, either for the utility itself, or for the selected command. man Displays a manual page, either for the utility itself, or for the selected command. version, vs, ver Displays version information. ENVIRONMENT
EDITOR Unless the core.editor option is set, blaze tries to use system-wide settings to decide which editor to use. SEE ALSO
blaze-init(1), blaze-config(1), blaze-add(1), blaze-edit(1), blaze-remove(1), blaze-list(1), blaze-make(1), blaze-log(1) BUGS
To report a bug or to send a patch, please, add a new issue to the bug tracker at <http://code.google.com/p/blazeblogger/issues/>, or visit the discussion group at <http://groups.google.com/group/blazeblogger/>. COPYRIGHT
Copyright (C) 2009-2011 Jaromir Hradilek This program is free software; see the source for copying conditions. It is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. Version 1.2.0 2011-02-18 BLAZE(1)
All times are GMT -4. The time now is 12:31 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy