I am using ubuntu 14.04. Thanks! The -o option was a big part of what I was looking for. Thank you!
Currently, I'm getting
Desired result is
Whenever I use lookbehinds I get no results at all. ex:
I was able to get the desired result with
I am still not sure why the lookbehinds didn't work. Please let me know if you have any insight into what I'm doing wrong and thank you so much for the help!
Hi,
Please let me know how to find text and print text and its previous line. Please don't get irritated few days back I asked text and next line. I am using HP-UX 11.11
Thanks for your help. (6 Replies)
Hi Guys I have a question about filling up an array
I have a file called USER_FILE.txt
it contains the following:
Real Name:Thomas A Username:THOMAS_A
Real Name:Thomas B Username:THOMAS_B
Real Name:Thomas C Username:THOMAS_C
Real Name:Thomas D Username:THOMAS_D
Real Name:Thomas E... (8 Replies)
Hi All,
The file has the following.
=========start of file===
This is a file containing employee info
START
name john
id 123
date 12/1/09
END
START
name sam
id 4234
date 12/1/08 resigned
END (9 Replies)
I would like to know why this command does not work.
I have a script which connects to and ftp site.
After getting the remote files localy i need move each remote file to a archive folder on the FTP site
*Please also note that some of the files have spaces in the file name.
Im trying to... (3 Replies)
I need to search a string for some specific text which is no big deal using grep. My problem is when the search fails to find the text. I need to add text like "na" when my search does not match.
I have tried this command but it does not work when I put the command in a loop in a bash script:
... (12 Replies)
I hope this makes sense and is possible.
I am trying to match $1 of panel_genes.txt with $3 of RefSeqGene.txt and when a match is found the value in $6 of RefSeqGene.txt
Example: ACTA2 is $1 of panel_genes.txt
ACTA2 NM_001613.2
ACTA2 NM_001141945.1
awk 'FNR==NR {... (4 Replies)
The below bash connects to a site, downloads a file, searches that file based of user input - could be multiple (all that seems to work). What I am not able to figure out is how to display on the screen match found or no match found" and write a file to a directory (C:\Users\cmccabe\Desktop\wget)... (4 Replies)
In the awk below I am trying to match the value in $4 of file1 with the split value from $4 in file2. I store the value of $4 in file1 in A and the split value (using the _ for the split) in array. I then strore the value in $2 as min, the value in $3 as max, and the value in $1 as chr.
If A is... (6 Replies)
Hello,
I have standard loop
while read -r info; do
command $info
done < info
in info text file I have multiple commands each on line that I want to execute. When I used them in console they worked, but not with this loop.
This is one of the commands in info file:
grep... (4 Replies)
hi all,
trying this using shell/bash with sed/awk/grep
I have two files, one containing one column, the other containing multiple columns (comma delimited).
file1.txt
abc12345
def12345
ghi54321
...
file2.txt
abc1,text1,texta
abc,text2,textb
def123,text3,textc
gh,text4,textd... (6 Replies)
Discussion started by: shogun1970
6 Replies
LEARN ABOUT DEBIAN
ubuntu-dev-tools
ubuntu-dev-tools(5) File Formats Manual ubuntu-dev-tools(5)NAME
ubuntu-dev-tools - Configuration for the ubuntu-dev-tools package.
DESCRIPTION
The ubuntu-dev-tools package is similar in scope to the devscripts(1) package, providing a collection of scripts which may be of use to
Ubuntu and Debian developers or others wishing to build Debian packages.
Some of these scripts have options which may be configured on a system-wide and per-user basis. These options are configured in
devscripts.conf(5).
All variables are described in the script's manpages. Package-wide variables begin with "UBUNTUTOOLS" and are listed below.
Every script which reads the configuration files can be forced to ignore them by using the --no-conf command-line option.
ENVIRONMENT
All ubuntu-dev-tools configuration variables can be set (and overridden) by setting them in the environment (unlike devscripts).
In addition, several scripts use the following environment variables:
UBUMAIL
Overrides DEBEMAIL and DEBFULLNAME when the target is clearly Ubuntu. Can either contain an e-mail address or Full Name
<email@example.org>.
DEBEMAIL, DEBFULLNAME
As in devscripts(1).
PACKAGE-WIDE VARIABLES
The currently recognised package-wide variables are:
UBUNTUTOOLS_BUILDER
This specifies the preferred test-builder, one of pbuilder (default), sbuild, pbuilder-dist.
UBUNTUTOOLS_DEBIAN_MIRROR
The preferred Debian archive mirror. Should be of the form http://ftp.debian.org/debian (no trailing slash). If not specified, the
master will be used.
UBUNTUTOOLS_DEBSEC_MIRROR
The preferred Debian security archive mirror. Should be of the form http://security.debian.org (no trailing slash). If not speci-
fied, the master will be used.
UBUNTUTOOLS_UBUNTU_MIRROR
The preferred Ubuntu archive mirror. Should be of the form http://archive.ubuntu.com/ubuntu (no trailing slash). If not specified,
the master will be used.
UBUNTUTOOLS_UBUNTU_PORTS_MIRROR
The preferred Ubuntu archive mirror. Should be of the form http://ports.ubuntu.com (no trailing slash). If not specified, the mas-
ter will be used.
UBUNTUTOOLS_LPINSTANCE
The launchpad instance to communicate with. e.g. production (default) or staging.
UBUNTUTOOLS_MIRROR_FALLBACK
Whether or not to fall-back to the master archive mirror. This is usually the desired behaviour, as mirrors can lag the masters.
If on a private network with only a local mirror, you may want to set this to no. One of yes (default) or no.
UBUNTUTOOLS_UPDATE_BUILDER
Whether or not to update the test-builder before each test build. One of yes or no (default).
UBUNTUTOOLS_WORKDIR
The directory to use for preparing source packages etc. When unset, defaults to a directory in /tmp/ named after the script.
SEE ALSO devscripts(1), devscripts.conf(5)AUTHORS
This manpage was written by Stefano Rivera <stefanor@ubuntu.com>.
ubuntu-dev-tools December 19 2010 ubuntu-dev-tools(5)