I have a directory containing multiple files.
and also a txt file which contains the list of all filenames and certain values.
I want to read the text file line by line and if its 2nd column is matched with the filename in directory, then it must insert the values in 7th column to the filename.
ex: DIR [ a.txt
b.txt
c.txt]
filenamelist.txt
result required in DIR :
Last edited by Scrutinizer; 03-07-2013 at 07:48 AM..
Reason: code tags
Guys,
I want to insert some values from a log file into a temporary table. the values in the log file looks like this
SV_NAME CC_NAME CP_DISP_RUN_STATE
------- ------------------- -----------------
sble01 ALLTEL WorkMon24Hrs Running
I want to enter the... (2 Replies)
how to assign values in this date format
a=`date +"%H%M%S"`
how to give value of H=22,here in this format so that i can grep 22nd hour.Below is the script
--------------------------------------------------------------------------
a=`date +"%H%M%S"`
for i in *.log
do
cat $i | grep $a... (3 Replies)
Greetings, people of UNIX/Linux forums.
I am having a problem with a script, where I am trying to create a new variable. The value of this variable would be dependent on the value in a couple other previous variables (all variables are 2-digit integers). Here is my code:
#set the stations... (3 Replies)
In my script I am using sed to insert a line.
Suppose I have a variable called ck_size=5 and a temporary file called tmp
I want to add a certain line in the tmp file .Please see the below command
sed -i '2a\maitee is $ck_size' /dun/homes/lrsprod/tmp
I want in 2 line of tmp file... (7 Replies)
Hi Forum members,
I want to insert the filename at the top of file (i.e, first row only)
My file name is like asdf_432
And I want to insert this filename in first row as filename is asdf with serial no. 432
Thanks in advance. :) (4 Replies)
hi all,
i have one shell script like this
#!/bin/bash -xv
ENV_NAME=`cat $IB_HOME_DIR/cfg/ibProfile.sh | grep "RDM_CONN" | cut -f 2 -d "@"`
CURRENT_DIR=`pwd`;
string=$IB_HOME_DIR
string1="$string/FRGFOLDER/input"
#sed "s/string3/$string1" frg_event_src.sql > modifiedinsert.sql
sqlplus... (2 Replies)
Hi,
I have a requirement where I have an excel sheet with the below values
COL1 COL2 COL3
Germany URGENT NORMAL
I want to cut the values of this excel in such a way that I get the values and pass it to an insert statement
update tbfin set... (2 Replies)
hi ,
I'm new to Unix shell scripting.
I need help to insert read csv which has two columns -emp no and logged date.
csv file is a large file so i want to keep the insertion query in a separate .sql file.
csv file looks this:
empno | loggeddate
___________________
5666 ,... (5 Replies)
Discussion started by: preema
5 Replies
LEARN ABOUT DEBIAN
ezstream-file
EZSTREAM-FILE.SH(1) BSD General Commands Manual EZSTREAM-FILE.SH(1)NAME
ezstream-file -- script to stream files from the command line
SYNOPSIS
ezstream-file [-hnqVv] [-T cfg_template] [file ...]
DESCRIPTION
The ezstream-file script uses an ezstream configuration file template to stream a list of files given on the command line, or via standard
input. In other words, filenames are written to a temporary playlist, and a template-based configuration is generated to stream them.
The path to a configuration template must be provided, either by using the -T command line argument, or the EZSTREAM_TEMPLATE environment
variable.
The configuration template must be a valid playlist configuration, and contain the follwing configuration statement:
<filename>%FILENAME%</filename>
If no input files are specified, the list of files to be streamed are read from standard input.
Lastly, the EZSTREAM environment variable allows to specify an alternate ezstream binary.
Command line parameters
-h Print a summary of available command line parameters with short descriptions and exit.
-n (Passed to ezstream.) Normalize metadata strings by removing excess whitespaces.
-q (Passed to ezstream.) Be more quiet. Suppress the output that external programs send to standard error.
-T cfg_template
Use the configuration in cfg_template, overriding the default set in the EZSTREAM_TEMPLATE environment variable.
-V Print the ezstream-file version number and exit.
-v (Passed to ezstream.) Produce more verbose output from ezstream. Use twice for even more verbose output.
FILES
/usr/share/doc/ezstream/examples Directory containing example configuration files for various uses of ezstream, as well as example playlist
and metadata scripts.
SEE ALSO ezstream(1)AUTHORS
The ezstream-file script and this manual were written by Moritz Grimm <mdgrimm@gmx.net>.
ezstream 0.5.6 September 27, 2009 ezstream 0.5.6