Sponsored Content
Full Discussion: Error line number
Top Forums Shell Programming and Scripting Error line number Post 302782061 by PikK45 on Monday 18th of March 2013 08:14:25 AM
Old 03-18-2013

grep -o [0-9]* file
This User Gave Thanks to PikK45 For This Post:
 

10 More Discussions You Might Find Interesting

1. UNIX for Advanced & Expert Users

crontab: error on previous line; number out of bounds.

Hi, I am trying to set up a cron job for every Friday at 6:00 p.m. and got an error: "/var/tmp/aaaa29638" 1 line, 73 characters 00 18 00 0 5 /app/test/backup.ksh crontab: error on previous line; number out of bounds. Any ideas? Thanks! (1 Reply)
Discussion started by: oradbus
1 Replies

2. Shell Programming and Scripting

Appending line number to each line and getting total number of lines

Hello, I need help in appending the line number of each line to the file and also to get the total number of lines. Can somebody please help me. I have a file say: abc def ccc ddd ffff The output should be: Instance1=abc Instance2=def Instance3=ccc Instance4=ddd Instance5=ffff ... (2 Replies)
Discussion started by: chiru_h
2 Replies

3. Shell Programming and Scripting

Adding a columnfrom a specifit line number to a specific line number

Hi, I have a huge file & I want to add a specific text in column. But I want to add this text from a specific line number to a specific line number & another text in to another range of line numbers. To be more specific: lets say my file has 1000 lines & 4 Columns. I want to add text "Hello"... (2 Replies)
Discussion started by: Ezy
2 Replies

4. Shell Programming and Scripting

how to get the data from line number 1 to line number 100 of a file

Hi Everybody, I am trying to write a script that will get some perticuler data from a file and redirect to a file. My Question is, I have a Very huge file,In that file I have my required data is started from 25th line and it will ends in 100th line. I know the line numbers, I need to get all... (9 Replies)
Discussion started by: Anji
9 Replies

5. Shell Programming and Scripting

Want to trap script error and return line number of failure

Hey all UNIX nerds- I've built a shell script which runs pretty well- only I want it to have much better error trapping. (Like the kind I could apply to every shell script I write). I'm not a UNIX genius, and could really use a bit of help. The original script goes something like this: 1... (3 Replies)
Discussion started by: stevekerver
3 Replies

6. UNIX for Dummies Questions & Answers

How to read contents of a file from a given line number upto line number again specified by user

Hello Everyone. I am trying to display contains of a file from a specific line to a specific line(let say, from line number 3 to line number 5). For this I got the shell script as shown below: if ; then if ; then tail +$1 $3 | head -n $2 else ... (5 Replies)
Discussion started by: grc
5 Replies

7. Shell Programming and Scripting

Write $line number into textfile and read from line number

Hello everyone, I don't really know anything about scripting, but I have to manage to make this script, out of necessity. #!/bin/bash while read -r line; do #I'm reading from a big wordlist instructions using $line done Is there a way to automatically write the $line number the script... (4 Replies)
Discussion started by: bobylapointe
4 Replies

8. Shell Programming and Scripting

Cut from specific line number to a line number

Hi All, I've a file like this.. Sheet1 a,1 a,2 a,3 a,4 a,5 Sheet2 a,6 a,7 a,8 a,9 a,10 Sheet3 a,11 a,12 a,13 (7 Replies)
Discussion started by: manab86
7 Replies

9. Shell Programming and Scripting

sed command to replace a line at a specific line number with some other line

my requirement is, consider a file output cat output blah sdjfhjkd jsdfhjksdh sdfs 23423 sdfsdf sdf"sdfsdf"sdfsdf"""""dsf hellow there this doesnt look good et cetc etc etcetera i want to replace a line of line number 4 ("this doesnt look good") with some other line ... (3 Replies)
Discussion started by: vivek d r
3 Replies

10. Shell Programming and Scripting

Syntax error from cshrc, but not showing line number

Hi, I have been using ksh till now but was forced to use tcsh from last few days. I am getting a gvimrc error which says "set: Syntax error". What makes this pesky is that it is not showing which line number is the error from. How do I get the line number of the error? Also, I am using the... (11 Replies)
Discussion started by: rishikpillai90
11 Replies
PEGASUS-DAX-VALIDA(1)													     PEGASUS-DAX-VALIDA(1)

NAME
pegasus-dax-validator - determines if a given DAX file is valid. SYNOPSIS
pegasus-dax-validator daxfile [verbose] DESCRIPTION
The pegasus-dax-validator is a simple application that determines, if a given DAX file is valid XML. For this, it parses the file with as many XML validity checks that the Apache Xerces XML parser framework supports. OPTIONS
daxfile The location of the file containing the DAX. verbose If any kind of second argument was specified, not limited to the string verbose, the verbose output mode is switched on. RETURN VALUE
If the DAX was parsed successfully, or only warning's were issued, the exit code is 0. Any 'error or fatal error will result in an exit code of 1. Additionally, a summary statistics with counts of warnings, errors, and fatal errors will be displayed. EXAMPLE
The following shows the parsing of a DAX file that uses the wrong kind of value for certain enumerations. The output shows the errors with the respective line number and column number of the input DAX file, so that one can find and fix them more easily. (The lines in the example were broken to fit the manpage format.) $ pegasus-dax-validator bd.dax ERROR in line 14, col 110: cvc-enumeration-valid: Value 'i386' is not facet-valid with respect to enumeration '[x86, x86_64, ppc, ppc_64, ia64, sparcv7, sparcv9, amd64]'. It must be a value from the enumeration. ERROR in line 14, col 110: cvc-attribute.3: The value 'i386' of attribute 'arch' on element 'executable' is not valid with respect to its type, 'ArchitectureType'. ERROR in line 14, col 110: cvc-enumeration-valid: Value 'darwin' is not facet-valid with respect to enumeration '[aix, sunos, linux, macosx, windows]'. It must be a value from the enumeration. ERROR in line 14, col 110: cvc-attribute.3: The value 'darwin' of attribute 'os' on element 'executable' is not valid with respect to its type, 'OSType'. 0 warnings, 4 errors, and 0 fatal errors detected. SEE ALSO
Apache Xerces-J http://xerces.apache.org/xerces2-j/ AUTHORS
Jens-S. Vockler <voeckler at isi dot edu> Pegasus Team http://pegasus.isi.edu/ 05/24/2012 PEGASUS-DAX-VALIDA(1)
All times are GMT -4. The time now is 04:41 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy