Sponsored Content
Top Forums Shell Programming and Scripting Editing a file using a script Post 36820 by Ypnos on Thursday 5th of June 2003 10:05:53 AM
Old 06-05-2003
Shell:
# echo $SHELL
/bin/sh


It hasn't worked either Smilie
The program ran, it seemed to be doing something for a few moments, then returned to prompt. Checked the files and they are unaltered...
 

10 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

Editing a file in a shell script

Using Solaris 8. I need to create a shell script that will edit a text file. I need to look in the text file and do a search and replace. For instance, the text file name is always 'filename'. I need to open filename and replace every instance of 'oldtext' with 'newtext'. 'oldtext' is static. ... (3 Replies)
Discussion started by: jowpup
3 Replies

2. Shell Programming and Scripting

editing a file via a shell script ??

Morning All: I know this might be easy but since I don't do this very often I get stumped real quick... Sun box Solaris 8 ksh... I need to edit a file via a shell script. In this file I need to locate one specific line and then remove that line plus the next 20 line below that.... Any... (2 Replies)
Discussion started by: jimmyc
2 Replies

3. Shell Programming and Scripting

editing excel file through shell script

Hi, I am having a business file in excel having charts based on data already present on it. I would like to add new rows after the existing data and refesh the chart on it using shell script. For example-- In excel file in "sheet1", There is some data in first 10 rows ( from column A to F).... (0 Replies)
Discussion started by: sanjay1979
0 Replies

4. Shell Programming and Scripting

editing a file using shell script

HI all, I have file in the below format 1111111111_222222222_3333333 111111_22222_33333 11111111_222222_33333333333 i need to display this file like this 2222222_1111111111 22222_11111111 22222222222_1111111111111 can anyone help me with this Thanks in advance (1 Reply)
Discussion started by: saravanan71184
1 Replies

5. Shell Programming and Scripting

editing a file in a script

Gurus, I need to write a shell script that will calculate hash value of a file, opens the file in an application for example vi editor. The application can read or modify the contents of the file. When application exists second part of my script will kick in and recalculate the hash value. File... (1 Reply)
Discussion started by: c0kazaz
1 Replies

6. Shell Programming and Scripting

Problems editing file with awk in bash script

Hello dear users, here I have a script to manipulate .csv files that are like this originally: And I need to make a script to delete certain fields. Each field is separated with a comma. So, here is my script (at least a part of it): Field $1 is composed of a name, and then a... (5 Replies)
Discussion started by: sr00t
5 Replies

7. Shell Programming and Scripting

editing single line in html file in perl script

Hi Folks, It is regarding the perl scripting. I have an html file(many files) which contains the below line in the body tag. <body> <P><STRONG><FONT face="comic sans ms,cursive,sans-serif"><EM>Hello</EM></FONT></STRONG></P> </body> Now I want to read that html file through perl... (3 Replies)
Discussion started by: giridhar276
3 Replies

8. Shell Programming and Scripting

Editing a file on remote server using shell script locally

Hi All, I have below requirements for my project: 1. Building a shell script which connects to a remote server 2. running script on local machine as user 'A' 3. connecting to server using user 'B' with password 4. login with a powerbroker role 'P' (asks for same password as 'B') on that... (1 Reply)
Discussion started by: Nishant Ladiwal
1 Replies

9. Shell Programming and Scripting

Editing a file on remote server using shell script locally

Hi Scott, My previous post was not for any school or college projects. I am currently working with a IT company (Cannot provide more details than this). I am trying to implement the below script in my day-to-day work, Apologies for the confusion in previous post :). My question remains same... (4 Replies)
Discussion started by: Nishant Ladiwal
4 Replies

10. Shell Programming and Scripting

Parsing and Editing a json file with bash script

I am trying to automate editing of a json file using bash script. The file I initially receive is { "appMap": { "URL1": { "name": "a" }, "URL2": { "name": "b" }, "URL3": { "name": "c" }, } WHat I would like to do is replace... (5 Replies)
Discussion started by: Junaid Subhani
5 Replies
PAW(1)							      General Commands Manual							    PAW(1)

NAME
paw - invoke the "Physics Analysis Workstation" package SYNOPSIS
paw [-b macro_name] [-w workstation_type] [-n] paw++ [-b macro_name] [-n] DESCRIPTION
PAW is an interactive utility for visualizing experimental data on a computer graphics display. It may be run in batch mode if desired for very large and time consuming data analyses; typically, however, the user will decide on an analysis procedure interactively before running a batch job. PAW combines a handful of CERN High Energy Physics Library systems that may also be used individually in software that processes and dis- plays data. The purpose of PAW is to provide many common analysis and display procedures that would be duplicated needlessly by individual programmers, to supply a flexible way to invoke these common procedures, and yet also to allow user customization where necessary. Paw++ is a Motif-based version of PAW. OPTIONS When paw starts, the macro pawlogon.kumac in the current directory is executed. If this macro doesn't exist the system tries to execute the macro .pawlogon.kumac in the home directory. -n The macro pawlogon is not executed. -b macro_name The macro specified is executed in batch mode and paw exits when the macro ends. -w workstation_type PAW starts immediately without prompting for the workstation type. If workstation_type = 0, paw starts without graphics. When the X11 version of paw is used, a list of 10 valid workstation types is provided in the file higz_windows.dat. By default this file is in the current directory. If it is not, the one in the home directory is used. If it is not in the home directory, one is automatically created in the current directory. Each line in this file describes the position and the size of the window. To access one of the described windows it is enough to give the line number in reply to the prompt "Workstation type" ENVIRONMENT VARIABLES
HIGZPRINTER Specifies the command line executed when the command PICTURE/PRINT is invoked. KUIPPAGER, PAGER Checked in this order to determine what pager program to use. If neither are set, 'sensible-pager' is used in Debian. KUIPEDITOR, EDITOR Checked in this order to determine what editor to use. If neither are set, 'sensible-editor' is used in Debian. KUIPPSVIEWER, PSVIEWER Checked in this order to determine the program to use for viewing PostScript. If neither are set, 'gv' is used. $ENV() Any environment variable can be accessed in paw with the function $ENV(). SEE ALSO
o the online help (PAW command HELP) o the WWW pages: http://cern.ch/paw/ o the tutorial: http://cern.ch/paw/tutorial/ o the FAQ: http://wwwasd.web.cern.ch/wwwasd/cgi-bin/listpawfaqs.pl o the reference manual: http://cern.ch/paw/reference_manual/ o kuesvr(7) - the KUIP edit server o kxterm(1) - the program used by Paw++ as a command interface o pawserv(8) - a server that listens for remote PAW connections COPYRIGHT
(C) Copyright CERN, Geneva 1995. Physics Analysis Workstation PAW(1)
All times are GMT -4. The time now is 01:24 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy