03-30-2012
It was IFS="/ " not IFS="/" the space makes a difference. Without it, it will split only on /, not space.
read will split between variables on any character in IFS. If there's not enough variables, the last variable will get everything jammed into it.
10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
:confused: Hi i am a noob and need a little help to finish my shell script. I am learning as i go but hit a problem.
I am search thorugh logs(*.rv) files to find entires between two user defined dates,
The script so far looks for the "START" and "END" of each entry at sees if it belongs To... (0 Replies)
Discussion started by: mojo24
0 Replies
2. Shell Programming and Scripting
Hi all,
Iam writing a script, which will extract all the files from Start_Date to End_Date. Files are date stamped as YYYYMMDD. For ex:
Start_Date='20051001'
End_Date='20060331'
extract files such as........
ramp_20050810.rpt
ramp_20050915.rpt
ramp_20051001.rpt
ramp_20051010.rpt... (2 Replies)
Discussion started by: ganapati
2 Replies
3. Shell Programming and Scripting
I have a file (status.file) of the form:
valueA 3450
valueB -20
valueC -340
valueD 48
I am tailing a data.file, and need to search and modify a value
in status.file...the tail is:
tail -f data.file | awk '{ print $3, ($NF - $(NF-1)) }'
which will produce lines that look like this:
... (3 Replies)
Discussion started by: nortonloaf
3 Replies
4. Shell Programming and Scripting
Ok, I have a script with a commandline option that allows the user to add a custom function to the script file. I have tried everything in my limited knowledge of sed to get this to work and keep coming up short. I need sed to search for a line starting with a pattern, I've got that part so far,... (0 Replies)
Discussion started by: DC Slick
0 Replies
5. Shell Programming and Scripting
Hi,
Currently I am working on a script to automate the process of converting the log file from binary into text format. To achieve this, partly I am depending on my application’s utility for this conversion and the rest I am relying on shell commands to search for directory, locate the file and... (5 Replies)
Discussion started by: svajhala
5 Replies
6. Shell Programming and Scripting
Hi, i am very new to php Is it possible to display Range of date depend on user input day
example:
user input 2 day start from 28/4/12 it will add 2 day from date of input
so display should look like this
28/4/12 to 30/4/12
then from 30/412 user add another 4 date so will... (0 Replies)
Discussion started by: guidely
0 Replies
7. UNIX for Advanced & Expert Users
Hi,
I'm quite new to ksh scripting, can someone help me with this.
Requirements:
I need to create a script that list the files from a user input date range.
e. g. format of file:
*c1*log.2012-12-22-14-00*
*c1*log.2012-12-22-14-00*
*c1*log.2012-12-22-14-00*... (1 Reply)
Discussion started by: chococrunch6
1 Replies
8. UNIX for Dummies Questions & Answers
My unix version is IBM AIX Version 6.1
I tried google my requirement and found the below answer,
find . -newermt “2012-06-15 08:13" ! -newermt “2012-06-15 18:20"
But newer command is not working in AIX version 6.1 unix
I have given my requirement below:
Input:
atr files:
... (1 Reply)
Discussion started by: yuvaa27
1 Replies
9. Shell Programming and Scripting
In the below bash a file is downloaded when the program is opened and then that file is searched based on user input and the result is written to a new file.
For example, the bash is opened and the download.txt is downloaded, the user then enters the id (NA04520). The id is used to search... (5 Replies)
Discussion started by: cmccabe
5 Replies
10. Shell Programming and Scripting
Field1=””
Field2=””
Field3=””
Field4=””
Field5=””
USER INPUT UP TO 5 FIELDS
awk -F , '{ if ( $3 == Field1 && $6 == Field2 && $8 == Field3 && $9 == Field4 && $10 == Field5) print $0 }' /tmp/rodney.outD
INPUT FILE (Rodney.outD):
... (3 Replies)
Discussion started by: rmerrird
3 Replies
LEARN ABOUT DEBIAN
tqslcert
TQSLCERT(1) General Commands Manual TQSLCERT(1)
NAME
TrustedQSL - digitally sign amateur radio contact logs
SYNOPSIS
tqslcert [certificate-file]...
tqsl [OPTIONS] [log-file]...
DESCRIPTION
TrustedQSL is a file format and set of procedures that is used to send digitally signed QSL information (logs of contacts between amateur
radio operators). One notable service that makes use of TrustedQSL is ARRL's Logbook of the World.
The tqslcert program is used to generate requests for digital certificates and to store the resulting received digital certificates.
The tqsl program is used to digitally sign contact log files using a digital certificate.
This manual page briefly documents the tqslcert and tqsl programs. Complete documentation is also available:
tqslcert: file:///usr/share/TrustedQSL/help/tqslcert/main.htm
tqsl: file:///usr/share/TrustedQSL/help/tqslapp/main.htm
OPTIONS
tqslcert accepts TQSL certificate files which may optionally be specified on the command line.
tqsl accepts these command line options:
-d Suppress date-range dialog. If present, the QSO date-range dialog will not be shown for files that follow this option on the command
line.
-l location_name
Selects an existing station location. This location will be used for the commands that follow. If the station location doesn't
exist, tqsl will just exit.
-o output_file
Writes the resulting signed log file to output_file instead of a default name based on the input log-file name.
-s Add or edit station location. If there is a preceding -l option the specified location will be edited. If there is no preceding -l
option, a new station location is being added.
-x (or) -q
Exit tqsl. If this argument is used it should be the last one on the command line. If this argument is not present, tqsl will begin
normal operation after successfully processing all command-line arguments.
log-files
Any command-line parameter that is not an option or an option's argument will be treated as the name of a log file (ADIF or
Cabrillo) to be signed. The resulting signed file (.tq8) will be placed in the same directory as the log file, overwriting any
existing .tq8 file of the same name. (Note: If this option is not preceded by a -l option that selects the station location to be
used for signing, the Select Station Location for Signing dialog will be presented.) File names that contain spaces or other shell-
special characters should be quoted in a manner suitable for the operating system and shell that's being used.
N.B.: If the private key needed to sign a log is protected by a password, the user will be prompted to supply that password for each
file being signed.
AUTHOR
trustedqsl was written by "American Radio Relay League, Inc.".
This manual page was prepared by Kamal Mostafa <kamal@whence.com>, for the Debian project (and may be used by others).
March 31, 2011 TQSLCERT(1)