How can I exclude reading lines in a file that contains the following:
filesystem:/home/pach/liv_patches 128005120 88456640 37270758 71% /home/patches
That is, all lines that contain and begins with filesystem: should not be processed/read from a file (5 Replies)
Hi
i have compiled and installed bash 3.2 on my hp-ux parisc
its in path /usr/local/pkg/bash/bin/bash .....When im search for this bash (through whereis bash) im not findind but other which i hve done in same procedure( gettext,m4) ..Im able to find through whereis search option
can any1... (3 Replies)
Hi I need a bash script that can search through a text file and when it finds 'FSS1206' I need to put a Letter F 100 spaces after the second instance of FSS1206
The format is the same throughout the file I need to repeat this on every time it finds the second 'FSS1206' in the file
I have... (0 Replies)
# check host value regex='^(||1|2|25)(\.(||1|2|25)){3}$' if ')" != "" ]; then if ]; then echo host $host not found exit 4 fi elif ]; then echo $host is an invalid host address exit 5 fi
espeacailly the top regex part?
---------- Post updated at 06:58 PM ---------- Previous update was... (1 Reply)
I'm facing issues in executing the bash script of mine. This script will pick the latest file received and connects SFTP server and files is placed on this remote server.
Error message
Enter password:
"File movement"
sftp> cd Test
sftp> put Test_File_201309.txt
File "Test_File_201309.txt"... (6 Replies)
I am wondering if someone can help me out. I am new to oracle and given a task to install Oracle 11g on Solaris. I am running into some major problems since last week since I can't seem to get it to work.
I can't start GUI, tried different blogs but no luck. Then, I decided to install it in a... (4 Replies)
I need to amend the code blow such that it reads a "black list" before the "print" statement; if "substr($1,1,6)" is found in the "blacklist" it will ignore that record and continue. the code is from an awk script that is being called from shell script which passes the input values.
BEGIN { "date... (5 Replies)
In the bash menu below if the variant that is inputted is in the format NM_004004.3:c.274G>T the below works perfectly. My question is if the variant inputted isNM_004004.3:-c.274G>T or NM_004004.3:+c.274G>T then the code as is will throw an error due to a biological issue. Is it possible to to... (1 Reply)
Hello.
In bash, is there a way to trap error "file not found" when a script call another script which is not found; then abort.
Example ( part of script running with -x option set) :
+ return 0
+ RETURN_CODE=0
+ ]
+ /root/bin/200_yast_install/00_reset_yast_install
bash:... (5 Replies)
In the bash below I am searching the filevirus-scan.log for the Infected files: 0 line (in bold) and each line for OK.
If both of these are true then the function execute is automatically called and processing starts. If both these conditions are not meet then the line in the
file is sent to the... (2 Replies)
Discussion started by: cmccabe
2 Replies
LEARN ABOUT CENTOS
kateenc
KATEENC(1) libkate KATEENC(1)NAME
kateenc - create Kate streams from text input
SYNOPSIS
kateenc [-hVM] [-o outfile] [-l language] [-c category] [-s serial] [-C tag=value] [-R threshold] [-K threshold] -t filetype [ infile ]
DESCRIPTION
kateenc creates Kate streams from input files (SubRip SRT subtitles, LRC lyrics, and libkate's custom description language). When saved to
an Ogg stream (the default behavior), a Kate stream may then be merged with other Ogg streams (eg, a Theora video) using the oggz tools.
OPTIONS -h Show command line help.
-V Show version information.
-M Allow simple HTML-like markup in SRT files. If this parameter is used, strings such as "<i>" will be interpreted to mean italics,
rather than appear as such. Note that various players interpret a slightly different set of HTML tags, and some do not.
-o outfile
Write the output Kate stream to the given file name (writes to stdout if not specified).
-l language
Sets the language for the stream (default is the language specified in the input, or none).
-c category
Sets the category for the stream (default is the category specified in the input, or none).
-s serial
Sets the serial number for the output Kate stream (does not apply to raw streams).
-C tag=value
Adds a comment to encode into the output Kate stream. The comment must be of the form tag=value, and comply with the Vorbis comment
rules (eg, tag is composed of a particular subset of ASCII characters, and value is valid UTF-8). Note that you might have to escape
or quote the comment for it to be seen as a single command line parameter.
-t filetype
Specifies the type of the input (srt, lrc, kate)
-R threshold
Use repeat packets, with the given threshold (in seconds). Data packets will be repeated at intervals of roughly threshold seconds,
while active.
-K threshold
Use keepalive packets, with the given threshold (in seconds). Keepalive packets will be emitted when no other packet has been emit-
ted for roughly threshold seconds.
EXAMPLES
Create a Kate stream for Welsh subtitles from a SubRip file:
kateenc -t srt -l cy -c SUB -o output.ogg input.srt
SEE ALSO katedec(1), katalyzer(1)libkate 0.4.1 13 october 2010 KATEENC(1)