Ubuntu :: Wildcard In Sed&grep That Includes Line Endings?

Dec 21, 2010

Here's my current regular expression(used in sed):sed 's///!Start.*//!End//g' in > outThe only problem being that the wildcard . does not work across multiple lines,

View 1 Replies


ADVERTISEMENT

General :: Program Includes .so Which Includes .a?

Mar 19, 2010

I have prepared a static lib(.a) comprising 2 function definitions. I have created a different shared library(.so) comprising 2 more functions. The two functions of .so use the functions defined in the .a file. That is, the .so file uses the services of the .a file. Next, I create an executable that uses the shared library(.so). When I build my executable, it needs to be linked with the .a file as well. it gives me undefined reference for the functions defined in the .a file. Why is that so? I am posing this question because, the .a file has already been included(static linking) while bulding the .so. Is there any workaround so that I need not link the .a file with my final executable?

View 2 Replies View Related

Ubuntu :: Bash Wildcard To PATH?

Sep 11, 2010

I have some programs compiled into /opt/programname, and I would like to be able to execute them without typing the full path; I've tried with PATH=$PATH:/opt/*/bin, but with no luck;

View 4 Replies View Related

Ubuntu :: Bash Completion With Leading Wildcard?

Jul 17, 2010

Out of the box, Bash in 10.04 is configured such that it won't expand/complete parameters when there's a single match for a parameter with a leading wildcard. For example, if I have the following files in a directory:

Code:

ABC.bin
DEF.bin
GHI.bin

...and I type cp *E*, I expect to be able to press TAB and have Bash expand *E* to DEF.bin, since that's the only file in the directory with a capital E in its name.

(Note: if I actually submit the command with the wildcards in place, the correct file will be used then, but I don't get to see it beforehand.) I imagine there's something in /etc/bash_completion that's preventing this from working properly. Does anyone know what it is?

View 1 Replies View Related

Fedora :: Wildcard 'touch' Command?

May 8, 2011

I have some mp3 files with the wrong date stamp on them. I need to change the month value to May, and the Day needs to be changed from 6 to 4. For some reason my mp3 recorder messed the datestamps up. The time part is fine. I have changed the first three files to the correct MMDD parts, using the following touch command:

Code:
[root@karsites 04-may]# touch -t 05040253 REC066.MP3
[root@karsites 04-may]# ls -l REC066*

[code]....

View 4 Replies View Related

General :: Pass Wildcard Array To Cp

Sep 12, 2011

passing a wild card array to cp, I know it can be done but cant figure it out, ive got 3 files all start with the word somefile but have 3 different extensions

somefile.conf
somefile.dat
somefile.py

there in a folder with a bunch of other files and I just want to copy them to a different location. I remember is being something like cp somefile.[py conf dat] /somewhere but this isn't working Ive searched the net and can't find it with the keywords i'm using.

View 1 Replies View Related

General :: Dereference A Wildcard In A Command?

Mar 31, 2011

Can I dereference a wildcard in a command?For example if I want to create a file with the md5 hashes of compressed versions of files in a directory...gzip -rc ./source/* | md5sum -b - >> hash.txtThis above command gives me a file with one hash for the filename *I would like to get a file with the hashes and filenames for every file gzip compresses.

View 1 Replies View Related

General :: Sed Find And Replace With Wildcard?

Aug 5, 2011

I would like help with modifying the following content:

toolbox/perl/man/man3/ExtUtils::Command.3::Command.3 differ
toolbox/perl/man/man3/ExtUtils::Command::MM.3::Command::MM.3 differ
I would like the content to be changed to:
toolbox/perl/man/man3/ExtUtils::Command.3
toolbox/perl/man/man3/ExtUtils::Command::MM.3

I was not sure how to tell sed what to look for? I tried the following but it did not work. sed -i 's/::* differ//g' mandiff.log

View 3 Replies View Related

Slackware :: Slackpkg Blacklisting ; Can A Wildcard Be Used

Dec 15, 2009

if I've missed this in the doc's, but I don't see the ability to "wildcard" blacklist for packages to _not_ be changed out via the slackpkg program.More specifically, I tagged all my packages like this:

mozilla-firefox-3.6b4-i486-1_OLDFOGIE.tgz

note the "OLDFOGIE" in my package name? So can something such as:

Quote:

*OLDFOGIE*

be put into slackpkg blacklist file?

View 5 Replies View Related

Server :: Apache With Wildcard SSL And Virtual Host

Apr 28, 2009

I'm using Apache 2.2 to host multiple subdomains using a single SSL certificate (a wildcard certificate e.g. *.mydomain.com) and, yes, it works! Everything seems to be served correctly and the browsers are pretty happy.

And you can also have the non-SSL sites (virtual hosts on port 80) on the same IP. (That's covered elsewhere)

For those that want similar functionality here's my discovery...

My configuration is like this:

ssl.conf:

Code:

I would have to say that I don't believe that this will work if you are not using a wildcard SSL certificate and having anything other than subdomains under that wildcard.

It is somewhat limited in scenario where this is useful, but for a set of company websites that should be under SSL, this can be tremedously useful when you have a single IP.

View 2 Replies View Related

General :: Find Command To Search Wildcard In Path?

Dec 8, 2009

I need a command to search for any file in a directory like so:

/home/*/upload/* and then change permissions any file in that directory.

Find doesn't seem to match what I need.

View 12 Replies View Related

General :: Copy Wildcard Files From Directories For Matching

Feb 11, 2011

I have 2 massive duplicate dirs of the same format as below:
dir1
subdir1
file1
subdir2
file1
subdir3
file1
...

Dir2 is the same, but it has some newer files of the same name. I want to copy all file1's from Dir2 to the same name and folders in dir1. So basically something like:
cp -pr bkpDir1/*/*-big.gif Dir2/*/*-big.gif

This works for singular cases:
cp -pr bkpDir1/uniquesubdir/*-big.gif Dir2/uniquesubdir/*-big.gif

But not for wildcards:
cp -pr bkpDir1/subdir*/*-big.gif Dir2/subdir*/*-big.gif

Anyway the aim is to do the first cp above, I have tried a few options using find. In trying to show an example stumbled upon a way that worked, while in dir2:
find */*-big.gif | xargs -i cp -rp {} ../dir1/{}
Sure there are better ways also...

View 1 Replies View Related

Server :: BSD Or Ubuntu - Includes Hosting A Website And A Small FTP

Feb 18, 2011

First of all, let me just state that i want to make a small server for my home.. which includes hosting a website and a small FTP server.

Now as far as ease, stability, use, etc.. just overall, which would be more ideal to use for this?

My top choices are FreeBSD and Ubuntu Server.

However, I do not know which of these to go with, since this is my first time setting up a server. I hear BSD is really best for web servers, but I would like to hear what the people at LQ has to say.

I know Ubuntu Server would probably be more easy to set up, but how is it in terms of stability and speed?

View 6 Replies View Related

General :: PIX Firewall And PHP Includes Not Working?

Mar 17, 2010

I'm using Plesk as my control panel. After the PIX was installed, I mapped the old IPs to the new IPs. Port 80 is OPEN. My PHP includes won't work when I use the domain, actually nothing works when I use the domain infront of it. I tried adding 10.0.0.1 [URL] to /etc/hosts and still had no luck

View 1 Replies View Related

Security :: Php Includes Blocked By Firewall?

Jun 18, 2009

If I use my current iptables firewall settings my php includes from my own site get blocked by the firewall. If I use accept all tcp and udp it still does not work. If I use a default policy of accept all, then the php includes work which is not safe. I am running a drupal 6 site on a centos 5.3 vps with apache 2.2.0 and php 5.2.6 w/ safe mode on. He is my current iptable configuration.

Quote:

Chain VZ_FORWARD (1 references)
target prot opt source destination
Chain VZ_INPUT (1 references)
target prot opt source destination

[code]....

View 2 Replies View Related

Ubuntu :: Mega Batch Files To Rename - Includes Sub Folders

Oct 20, 2010

I have quite a few sound sample files totaling over 4 gigs in size with around 80 root folders and then around 34 sub folders. i have a total of 13 DVD's in the above format. how do i "change the date" on all files in one go is that possible?

View 3 Replies View Related

Software :: Why GCC Includes Files From Unexpected Dirs

Nov 23, 2010

Now I'm porting a WIFI driver to my platform, MIPS little endian, Linux-2.6.18, uClibc environment for STB. And I'm experiencing some strange symptom. As you know, there are some kind of include files that system provides such like GCC-provided(usually in /usr/include), LIBC-includes(/usr/include), Linux-includes(${LINUX}/include/linux), ASM-includes(${LINUX}/include/asm) and so on, and there are many files resides different directories as the same name (e.g. time.h, types.h, limits.h ...) and many of them has
different contents.

I'm confusing because that some include files are read from unexpected directories.
The command line is like following. $ cross-gcc -o Target -I$(GCC_INC) -I$(LIB_INC) -I$(appl_inc) -isystem $(LINUX)/include -isystem $(LINUX)/include/linux Source.c

And some symbol means:

GCC_INC: directory for GCC include files.
LIB_INC: directory for LIBC include files.
LINUX: Linux kernel directory.

[code]....

As shown above, some include files are read from unexpected directory. This causes some severe compile errors. I've verified these by adding '-E' to the command line. How can I order GCC to read files from where I'm expect?

View 1 Replies View Related

Software :: Phonon Includes Not Found While Building KDE 4.4?

Feb 26, 2010

I've been trying to install a development version of kde 4 and when i attempt to install kdelibs it tells me that it can't find the phonon libraries. Does anyone know what the trouble might be? I'm using Debian Sid.

View 5 Replies View Related

Server :: Secure FTP For Around 500 Users Which Includes Security Level On Both

Aug 7, 2010

As per our requirement, I need to implement a Secure FTP server for around 500 users which includes security level on both - Transfer and Rest data. Apart from this I also need the following features -

1. Size quota on Users & reminder mails for the same
2. Password expiry notifications and user interface to change their password within specified time interval
3. Aging of data - After specified time, data will be moved to some other location from their home directory
4. All type of log maintenace for each file and user and log exporting
5. Uploading & Downloading speed consistency as per server level.
6. Read-write interface for user and read-only interface for their client for the same account.
7. Backup and Recovery options.

As of now, I am using VSFTPD which does not give these much of features in combine.

View 2 Replies View Related

Programming :: Initialize Ksh Array When First Element Includes Hyphen?

Jul 19, 2011

I'm trying to create an array with variable including hyphenbut ksh refuses the first element

set -A allArgs
set +A allArgs ${allArgs[@]} -all
set +A allArgs ${allArgs[@]} -date

[code]...

View 5 Replies View Related

Slackware :: Wipe /tmp/ On Shutdown/reboot - Includes Fstab?

Mar 4, 2011

Before i wiped windows (and the dual-booted slackware on it to make a slackware only hdd) i (sort of) backed up my files. I put something into my /etc/fstab that wiped /tmp/ when i shutdown/rebooted.

View 4 Replies View Related

Fedora :: X 11 - Dependency - Could Find No Includes Files Under The Directory /usr/include/x11/

Apr 13, 2010

Recently I have moved to F11. While I am trying to install directFB explicitly, I am getting error related to X 11 dependencies. It could find no includes files under the directory /usr/include/x11/. But x11 libraries are available in the system. I remember that, i had these x11 include files in my F9. Do I need to install any external packages to get the x11 include files in place?

View 4 Replies View Related

Software :: Grub Re - Install ( Includes Vmlinuz/initrd Files )?

Mar 7, 2011

today some one of my friends removed /boot/grub directory from my pc. i tried both

root (hd0,0) Kernel /vm - but it's not coming (coz that file is already removed.

and after
root (hd0,0)
setup (hd0)

it showed grub file is installed but i couldn't find

/boot/grub/grub/conf or vm linuz
and after i used rescue method.
/sbin/grub-install /dev/sda
tried this method but still couldn't make effect.

[Code]...

View 2 Replies View Related

Networking :: Build A Network From Scratch That Includes File And Printer Sharing, Intranet?

Apr 17, 2010

I want to learn how to build a Linux network from scratch that includes file and printer sharing, intranet. I have an intermediate-level knowledge of Windows networking. Can anyone suggest a book or online tutorial that I can learn from? Now let me be clear: I am finding no shortage of tutorials on the web. However, too many are old or incomplete.

A little extra info: I am a teacher/network admin for a small private school with about 50 student computers (that I wish to become Linux machines in the future) and about 10 staff computers (mostly Windows laptops--I do not expect the staff to convert to Linux as readily), I currently do not have an intranet implemented.

View 1 Replies View Related

General :: Syntax Error - Unexpected T_STRING In /home/dodonet2/public_html/includes

Jan 10, 2010

My website can`t open because of the error, Parse error: syntax error, unexpected T_STRING in /home/dodonet2/public_html/includes/config.php on line 45.

View 8 Replies View Related

Server :: Single Wildcard Certificate For Apache Httpd Server And Tomcat?

Feb 10, 2010

I have a requirement of using a wildcard certificate for 5 subdomains running under apache httpd server and 1 subdomain under tomcat.Is there any possibility of using the single wildcard certificate both in tomcat and apache

View 3 Replies View Related

Ubuntu Installation :: Which Ubuntu CD / USB Image Includes Wireless For DLink WDA-2320 PCI

Sep 23, 2010

I had a Ubuntu USB key that booted x64 and brought up the wireless network mgr with DLINK WDA-2320. But it was lost.Now I am trying different distro images to get back to what I had. But none has the Network mgr with wireless in it.I don't have any other Linux/UNIX machine here at home. Just Winbloze.Do you know which Ubuntu CD/USB image comes with a network manager and wireless for DLink WDA-2320 PCI ?

View 4 Replies View Related

Programming :: Copy And Replacing Specific Line From File1 To File2 Line By Line

Mar 22, 2011

I have two files, file1.traj and file2.traj. Both these files contain identical data and the data are arranged in same format in them. The first line of both files is a comment.

At line 7843 of both files there is a cartesian coordinate X, Y and Z ( three digits ). And at line 15685 there is another three digits. The number of lines in between two cartesian coordinates are 7841. And there are few hundreds of thousands of lines in a file.

What I need to do is copy the X Y Z coordinate (three digits) from file1.traj at line 7843 and paste into file2.traj at the same line number as in file1.traj. The next line will be 15685 from file1.traj and replace at line 15685 at file2.traj. And I dont want other lines (data) in file2.traj get altered. This sequence shall be going on until the end of the file. Means copy and substitude the selected lines from file1.traj into file2.traj.

I tried to use paste command but I cant do for specified line alone.

Here i showed the data format in the file. I used the line number for clarity purpose.

Code:

View 10 Replies View Related

Programming :: Access A File Line By Line, And Check The Length Of Each Line.

Feb 13, 2011

I want to access a file, and check the length of every line.After, i want to check and replace all lines with length over 10 characters, with a message.Does anyone have a clue on that?

View 1 Replies View Related

Programming :: Compare Two Files Line By Line And Print The Line Which Is Same?

May 30, 2011

I am trying to write a program in C which compares two files and prints the line that is equal.

Here file1.txt has

and file2.txt has

Note: file2.txt consist of only a single string where as file2.txt has multiple lines. Actually im comparing two files with md5sum values.

Here is the code but it compares only first line of files..but it should compare the whole file1..and sorry iam a beginner in C can any1 sujest some modification to this code so that..it can compare file2 with entire file1

Quote:

View 9 Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved