Sponsored Content
Top Forums Shell Programming and Scripting Problems editing file with awk in bash script Post 302501705 by bartus11 on Friday 4th of March 2011 10:16:14 AM
Old 03-04-2011
Post desired output for that sample line.
 

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

File editing using awk

Hi All, I have a file, say test.dat which is "|" separated. It has 50K records in it. One of the field in the file has the data in the format 'mm/dd/yyyy'. I need to edit the file by changing the format to 'yyyy/mm/dd' in the same field where as the rest of the data remain untouched. Please... (2 Replies)
Discussion started by: rinku11
2 Replies

2. Shell Programming and Scripting

Editing the File using Awk

I have input file that is having below text 098769 178902 234678 I want to modify the input file like below. '098769', '178902', '234678' Can you please help to get this. I tried but i am not getting this. (3 Replies)
Discussion started by: awk_beginner
3 Replies

3. Shell Programming and Scripting

Editing File using awk/sed

Hello Awk Gurus, Can anyone of you help me with the below problem. I have got a file having data in below format pmFaultyTransportBlocks ----------------------- 9842993 pmFrmNoOfDiscRachFrames ----------------------- NULL pmNoRecRandomAccSuccess -----------------------... (4 Replies)
Discussion started by: Mohammed
4 Replies

4. UNIX for Dummies Questions & Answers

Pls help me with file editing using awk

Hi all, Pls help me with file editing using awk. I have a text file with the below format. "STANDARD VOLUME ","2009","BUX","V","JCBH49","NF", 001413 "VENDOR MATERIAL-STD ","2009","BUX","V","JCBH49","NF", 009948 "INBOUND TRANS-STD ... (2 Replies)
Discussion started by: srinivas.maddy
2 Replies

5. Web Development

bash script editing my apache config files

okay i'm going to try to say this uber-simple: I use dropbox (file-sync service). in order for dropbox sync files, they must be its children eg. somewhere under /home/jzacsh/Dropbox]. I want to now use it to keep my development files in sync across my machines: easy: just move my dev. files... (2 Replies)
Discussion started by: jzacsh
2 Replies

6. Shell Programming and Scripting

Execution Problems with bash script

Hello, can someone please help me to fix this script, I have a 2 files, one file has hostname information and second file has console information of the hosts in each line, I have written a script which actually reads each line in hostname file and should grep in the console file and paste the... (8 Replies)
Discussion started by: bobby320
8 Replies

7. Shell Programming and Scripting

Execution problems with BASH Shell Script

Hi I need help with my coding , first time I'm working with bash . What i must do is check if there is 3 .txt files if there is not 3 of them i must give an error code , if al three is there i must first arrange them in alphabetical order and then take the last word in al 3 of the .txt files... (1 Reply)
Discussion started by: linux newb
1 Replies

8. Shell Programming and Scripting

editing file with awk cut and sed

HI All, I am new to unix. I have a file would like to do some editing by using awk, cut and sed. Could anyone help? This file contain 100 lines. There are one line for example: 2,"102343454",5060,"579668","579668","579668","SIP",,,"825922","035885221283026",1,268,"00:59:00.782 APR 17... (2 Replies)
Discussion started by: mimilaw
2 Replies

9. 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

10. Shell Programming and Scripting

sed problems - Bash Script

Hi I keep getting the following error sed: -e expression #1, char 32: unterminated `s' command sed: -e expression #1, char 35: unterminated `s' command sed: -e expression #1, char 35: unterminated `s' command whenever I use the following bash script #! /bin/bash... (2 Replies)
Discussion started by: spbr
2 Replies
ggv(1)								   User Commands							    ggv(1)

NAME
ggv - GNOME PostScript and PDF previewer SYNOPSIS
ggv [gnome-std-options] filename [filename2...] DESCRIPTION
GNOME Ghostview (ggv) is the GNOME PostScript viewer program. This PostScript viewer application is based on the (non-GNOME) GNU Ghostview application. ggv is a frontend for Ghostscript, an interpreter of PostScript that is able to properly render PostScript documents in a dis- play or a printer. ggv serves as a layer that isolates the user from the cumbersome options and interface of Ghostscript, and, at the same time, provides extra features such as panning and persistent user settings. One of the main features of ggv is its antialiasing functional- ity. The ggv user interface allows you to drag PostScript files into ggv, or to move the PostScript display by dragging the mouse in the pager window or the main window. ggv can display more than one document at a time. ggv provides transparent support for compressed Post- Script and PDF files. OPTIONS
The following options are supported: gnome-std-optionStandard options available for use with most GNOME applications. See gnome-std-options(5) for more information. OPERANDS
The following operands are supported: filename The name of the file to be previewed. One or more filenames may be specified on the command-line. ggv will create a sepa- rate window for each document. The specified file should be either a PostScript or PDF file. EXAMPLES
Example 1: Previewing the PostScript file "sample.ps" example% ggv sample.ps EXIT STATUS
The following exit values are returned: 0 Application exited successfully >0 Application exited with failure FILES
The following files are used by this application: /usr/bin/ggv Executable for GNOME PostScript and PDF previewer ATTRIBUTES
See attributes(5) for descriptions of the following attributes: +-----------------------------+-----------------------------+ | ATTRIBUTE TYPE | ATTRIBUTE VALUE | +-----------------------------+-----------------------------+ |Availability |SUNWgnome-ps-viewer | +-----------------------------+-----------------------------+ |Interface stability |External | +-----------------------------+-----------------------------+ SEE ALSO
GNOME Ghostview Manual Latest version of the GNOME Desktop User Guide for your platform. gs(1), gnome-std-options(5) NOTES
If you are unable to load a PostScript file, check the beginning of the file (uncompressed if necessary). The file might not be a Post- Script file, or it may have been created on a system that uses a different character for line ending than that used by UNIX (for example, an Apple Macintosh). The simplest solution for the latter is to write a small PERL script that converts the file into the correct format. Written by Brian Cameron (Sun Microsystems Inc., 2003), Jaka Mocnik (jaka.mocnik@kiss.uni-lj.si), Daniel M. German (dmg@csg.uwaterloo.ca), Jan Schaumann (jschauma@netmeister.org). SunOS 5.10 2 Oct 2003 ggv(1)
All times are GMT -4. The time now is 10:07 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy