Hi
Is there any command to scan thru a file looking for 2 consecutive blank lines and if any remove one of them. Please let me know.
Regards,
Tipsy (6 Replies)
1) I wrote a script and gave the desired permissions using "chmod 755 scriptname". Now if i edit the script file, why do i need to set the permission again? Didn't i set the permission attribute.. or if i edit the file, does the inode number of file changes?
2) I am running my unix on a server... (1 Reply)
Hi,
First post here. I have something that may prove to be difficult.
I have the following files:
Example1.0.0.tar.gz
Example2.tar
Example3.zip
Example4.0.0.0.0.0.bzip2
I need to remove the file extensions and store as a variable so they look like this:
Example1.0.0
Example2... (3 Replies)
Hello Team,
Would you please help me with a UNIX command that would check if file is a tar file.
if we dont have that , can you help me with UNIX command that would check if file ends with .tar
Thanks in advance. (10 Replies)
I have a specific set (all ending with .bam) of downloaded files in a directory /home/cmccabe/Desktop/NGS/API/2-15-2016. What I am trying to do is use a match to $2 in name to rename the downloaded files. To make things a more involved the date of the folder is unique and in the header of name... (1 Reply)
I need to modify a bash script to to take each line in a file and execute command. I currently have this:
#!/bin/bash if ; then echo "Lipsa IP"; exit; fi i=1 ip=$1 while ; do if ; then rand=`head -$i pass_file | tail -1` user=`echo $rand | awk '{print $1}'` pass=`echo $rand | awk '{print $2}'`... (3 Replies)
How to run several bash commands put in bash command line without needing and requiring a script file.
Because I'm actually a windows guy and new here so for illustration is sort of :
$ bash "echo ${PATH} & echo have a nice day!"
will do output, for example:... (4 Replies)
The bash will trim the folder to trim folder. Within each of the folders (there may be more than 1) and the format is always the same, are several .bam and matching .bam.bai files (file structure) and the bashunder that executes and trims the .bam as expected but repeats the.bam.bai extentions... (9 Replies)
In the bash below I am trying to create sub-directories inside a directory from files with specific .bam extensions. There may be more then one $RDIR ing the directory and the .bam file(s) are trimmed (removing the extension and IonCode_0000_) and the result is the folder name that is saved in... (2 Replies)
Im trying to make a tar file with only .txt file from a specific directory
tar -cvf test.tar *.txt
I have that part and tested it correctly but dont know where to put the path part of the command. I tried different placements... (8 Replies)
Discussion started by: mcesmcsc
8 Replies
LEARN ABOUT DEBIAN
theme
THEME(1) BSD General Commands Manual THEME(1)NAME
theme -- create a web page from a template file
SYNOPSIS
theme [-d root] [-E] [-f] [-o file] [-p pagename] [-t template] [-V] [textfile]
DESCRIPTION
The theme utility takes a markdown(7)-formatted textfile (or stdin if not specified,) compiles it, and combines it with a template
(page.theme by default) to produce a web page. If a path to the template is not specified, theme looks for page.theme in the current direc-
tory, then each parent directory up to the document root (set with -d or, if unset, the root directory of the system.) If page.theme is
found, theme copies it to the output, looking for <?theme action?> html tags and processing the embedded action as appropriate.
theme processes the following actions:
author Prints the author name(s) from the mkd_doc_author(3) function.
body Prints the formatted markdown(7) input file.
date Prints the date returned by mkd_doc_date(3) or, if none, the date the input file was last modified.
dir Prints the directory part of the pagename
include(file)
Prints the contents of file. Markdown(7) translation will NOT be done on this file.
source The filename part of the pagename.
style Print any stylesheets (see mkd-extensions(7)) found in the input file.
title Print the title returned by mkd_doc_title(3), or, if that does not exist, the source filename.
version Print the version of discount(7) that this copy of theme was compiled with.
If input is coming from a file and the output was not set with the -o option, writes the output to file-sans-text.html (if) file has a .text
suffix, that will be stripped off and replaced with .html; otherwise a .html will be appended to the end of the filename.)
The options are as follows:
-d root Set the document root to root
-E Normally theme will not expand <?theme body?> or <?theme toc?> in the <head> section, or <?theme style?> in the <body> section, but
the -E option overrides this and allows expansions everywhere.
-f Forcibly overwrite existing html files.
-o filename
Write the output to filename.
-p path Set the pagename to path.
-t filename
Use filename as the template file.
RETURN VALUES
The theme utility exits 0 on success, and >0 if an error occurs.
SEE ALSO markdown(1), markdown(3), markdown(7), mkd-extensions(7).
AUTHOR
David Parsons (orc@pell.chi.il.us)
MASTODON January 23, 2008 MASTODON