Hi folks,
I have the following configuration file:
tofu:/tmp # cat bitbandConfig.properties
maestroIp=10.10.10.10
maestroPort=2020
adminPlayPath=<Streaming Agent IP>:2021/streamingGateway/GetPlayList
###This part should not be changed###
adminPlayVODProtocol=http
username=iptv... (7 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)
i need to substitute word on a specific line.
I was able to do it on command line like below but it is not working in vi.
command line like below:
sed -e '8s/table_name/schema.table_name/' file_name.
in vi table_name and schema are my positional parameters that i pass into the
script.
... (5 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)
Discussion started by: Hiroshi
2 Replies
LEARN ABOUT OSX
base32core
base32::core(n) Base32 encoding base32::core(n)
__________________________________________________________________________________________________________________________________________________NAME
base32::core - Expanding basic base32 maps
SYNOPSIS
package require Tcl 8.4
package require base32::core ?0.1?
::base32::core::define map forwvar backwvar ivar
::base32::core::valid string pattern mvar
_________________________________________________________________DESCRIPTION
This package provides generic commands for the construction of full base32 mappings from a basic mapping listing just the codes and associ-
ated characters. The full mappings, regular and inverse, created here map to and from bit sequences, and also handle the partial mappings
at the end of a string.
This is in essence an internal package to be used by implementors of a base32 en- and decoder. A regular user has no need of this package
at all.
API
::base32::core::define map forwvar backwvar ivar
This command computes full forward and backward (inverse) mappings from the basic map and stores them in the variables named by for-
wvar and backwvar resp. It also constructs a regexp pattern for the detection of invalid characters in supposedly base32 encoded
input and stores it in the variable named by ivar.
::base32::core::valid string pattern mvar
This command checks if the input string is a valid base32 encoded string, based on the pattern of invalid characters as generated by
::base32::core::define, and some other general rules.
The result of the command is a boolean flag. Its value is True for a valid string, and False otherwise. In the latter case an error
message describing the problem with the input is stored into the variable named by mvar. The variable is not touched if the input
was found to be valid.
The rules checked by the command, beyond rejection of bad characters, are:
[1] The length of the input is not a multiple of eight,
[2] The padding appears not at the end of input, but in the middle,
[3] The padding has not of length six, four, three, or one characters,
BUGS, IDEAS, FEEDBACK
This document, and the package it describes, will undoubtedly contain bugs and other problems. Please report such in the category base32
of the Tcllib SF Trackers [http://sourceforge.net/tracker/?group_id=12883]. Please also report any ideas for enhancements you may have for
either package and/or documentation.
KEYWORDS
base32
CATEGORY
Text processing
COPYRIGHT
Copyright (c) Public domain
base32 0.1 base32::core(n)