Hi
Im new to BASH scripting, I have created a simple script
#! /bin/sh
LOCAL=/home/scanner
NOW=$(date +"%b-%d-%y")
LOGFILE="log-$NOW.log"
cd $LOCAL
echo 'Start';
echo $LOGFILE
touch $LOGFILE (2 Replies)
I want to compare "N" (around 2000+) number of huge files located in a directory A against "N" files located in a different directory using Bash scripting.
Please help me with any scripts available.
Thanks. (2 Replies)
Hello,
My apologies if this has been posted elsewhere, I have had a look at several threads but I am still confused how to use these functions. I have two files, each with 5 columns:
File A: (tab-delimited)
PDB CHAIN Start End Fragment
1avq A 171 176 awyfan
1avq A 172 177 wyfany
1c7k A 2 7... (3 Replies)
Hi,
I have 20 tab delimited text files that have a common column (column 1). The files are named GSM1.txt through GSM20.txt. Each file has 3 columns (2 other columns in addition to the first common column).
I want to write a script to join the files by the first common column so that in the... (5 Replies)
Can anyone please help me i have 2 text files setup like the one below.
Textfile1:
randomemail1:randompassword1
randomemail2:randompassword2
randomemail3:randompassword3
randomemail4:randompassword4
randomemail5:randompassword5
Textfile2:
randompassword1:randomphrase1... (8 Replies)
Hello,
I have a file with 2 columns ( tableName , ColumnName) delimited by a Pipe like below . File is sorted by ColumnName.
Table1|Column1
Table2|Column1
Table5|Column1
Table3|Column2
Table2|Column2
Table4|Column3
Table2|Column3
Table2|Column4
Table5|Column4
Table2|Column5
From... (6 Replies)
I have two directories called English and Hindi. Each directory contains the same number of files with the only difference being that in the case of the English Directory the tag is
.english
and in the Hindi one the tag is
.Hindi
The file may contain either a single text or more than one text... (7 Replies)
I am on linux red hat, want to use the logic within bash shell script file.
I have the following type, named files in folder /staging, want to move with new filename just the firstpart upto underscore, example 20180904105056.dat, how can i get upto first part of filename and validate to chk if... (2 Replies)
Discussion started by: cplusplus1
2 Replies
LEARN ABOUT DEBIAN
tv_cat
TV_CAT(1p) User Contributed Perl Documentation TV_CAT(1p)NAME
tv_cat - Concatenate XMLTV listings files.
SYNOPSIS
tv_cat [--help] [--output FILE] [FILE...]
DESCRIPTION
Read one or more XMLTV files and write a file to standard ouput whose programmes are the concatenation of the programmes in the input
files, and whose channels are the union of the channels in the input files.
--output FILE write to FILE rather than standard output
The treatment of programmes and channels is slightly different because for programmes, the ordering is important (typically programmes are
processed or displayed in the same order as they appear in the input) whereas channels are just a set indexed by channel id. There is a
warning if channel details clash for the same id.
One more wrinkle is the credits (source, generator and so on), they are taken from one of the files and then there's a warning if the other
files differ. If two input files have different character encodings, then it is not meaningful to combine their data (without recoding or
other processing) and tv_cat die with an error message.
This tool is rather useless, but it makes a good testbed for the XMLTV module.
SEE ALSO xmltv(5).
AUTHOR
Ed Avis, ed@membled.com
perl v5.14.2 2003-10-25 TV_CAT(1p)