That is happening because you are running the script wrong. Your script expects 3 arguments as input -- ARGV[0], ARGV[1] and ARGV[2] but you are only providing ARGV[0] and ARGV[1].
Therefore on line 9 ARGV[2] is nil and cannot be converted to a string hence the error. You need to run it like so:
Is there a way with HP-UX Release 10.20 (but going to HP-UX 11) to convert a regular "text" file to a packed data format (such as is created by a Cobol program)? (2 Replies)
Using AIX 5.3 and /user/bin/ksh.
Anyone have a quick way to convert the string date
Nov 9 11:35:28 2009 to 200911091135
I know I could create a table of months and find the month number by searching the list, but I was hoping there was some handy little known command to do this... (15 Replies)
Hi,
I have line in input file as below:
3G_CENTRAL;INDONESIA_(M)_TELKOMSEL;SPECIAL_WORLD_GRP_7_FA_2_TELKOMSEL
My expected output for line in the file must be :
"1-Radon1-cMOC_deg"|"LDIndex"|"3G_CENTRAL|INDONESIA_(M)_TELKOMSEL"|LAST|"SPECIAL_WORLD_GRP_7_FA_2_TELKOMSEL"
Can someone... (7 Replies)
Hello everyone
Sorry I have to add another sed question. I am searching a log file and need only the first 2 occurances of text which comes after (note the space) "string " and before a ",". I have tried
sed -n 's/.*string \(*\),.*/\1/p' filewith some, but limited success. This gives out all... (10 Replies)
logs:
"/home/abc/public_html/index.php"
"/home/abc/public_html/index.php"
"/home/xyz/public_html/index.php"
"/home/xyz/public_html/index.php"
"/home/xyz/public_html/index.php"
how to use "cut" or "awk" or "sed" to get the following result:
abc
abc
xyz
xyz
xyz (8 Replies)
I came across and unexpected behavior with redirections in tcsh. I know, csh is not best for redirections, but I'd like to understand what is happening here.
I have following script (called out_to_streams.csh):
#!/bin/tcsh -f
echo Redirected to STDOUT > /dev/stdout
echo Redirected to... (2 Replies)
Hello.
Following recommendations for one of my threads, this is working perfectly :
#!/bin/bash
CNT=$( grep -c -e "some text 1" -e "some text 2" -e "some text 3" "/tmp/log_file.txt" )
Now I need a grep success for some thing like :
#!/bin/bash
CNT=$( grep -c -e "some text_1... (4 Replies)
Dear Ladies & Gents,
I have a requirement to delete all the log files in /var/log/test directory that are older than 10 days and their first line begin with "MSH" or "<?xml" or "FHS". I've put together the following BASH script, but it's erroring out:
for filename in $(find /var/log/test... (2 Replies)
So, I have a folder, containing subdirs like this:
52334d50
52365245
524b4450
524f3350
52533950
52535050
52555550
now I want to go ahead and rename all those folder:
hex -> ascii (8 Replies)
Discussion started by: pasc
8 Replies
LEARN ABOUT DEBIAN
racc
racc(1) General Commands Manual racc(1)NAME
racc - Ruby LALR parser generator
SYNOPSIS
racc [options] file
DESCRIPTION
Racc is a LALR(1) parser generator. It is written in Ruby itself, and generates Ruby program.
OPTIONS -g, --debug
output parser for user level debugging.
-o, --output-file <outfile>
file name of output. [<fname>.tab.rb]
-e, --executable <rubypath>
insert #! line in output. ('ruby' to default)
-E, --embedded
output file which don't need runtime.
-l, --no-line-convert
never convert line numbers. (for ruby<=1.4.3)
-c, --line-convert-all
convert line numbers also header and footer.
-a, --no-omit-actions
never omit actions.
-v, --verbose
create <filename>.output file.
-O, --log-file <fname>
file name of verbose output. [<fname>.output]
-C, --check-only
syntax check only.
-S, --output-status
output status time to time.
--no-extentions
run without any ruby extentions.
-h, --help
print this message and quit.
--version
print version and quit.
--runtime-version
print runtime version and quit.
--copyright
print copyright and quit.
SEE ALSO
/usr/share/doc/racc/html.en/index.html (English) or /usr/share/doc/racc/html.ja/index.html (Japanese).
April 2005 racc(1)