General :: Concatenate Two Variables With Underscore?

Jun 4, 2010

I have question regarding concatenation of two variables with underscore.i.e. (bourne shell)

Code:
# var1=123
# var2=456

[code]...

View 3 Replies


ADVERTISEMENT

General :: Concatenate Two Environment Variables In Bash?

Nov 9, 2010

How do I concatenate two environment variables in bash?

View 3 Replies View Related

General :: Concatenate Data From Different Lines?

Mar 1, 2011

I want to concatenate info from different lines from iptables.for exmaple, in my firewall using iptables I have this information.

pkts bytes target prot opt in out source destination
0 ACCEPT all -- * * 192.168.1.3 0.0.0.0/0
5 248 ACCEPT all -- * * 0.0.0.0/0 192.168.1.3

[code]...

View 1 Replies View Related

General :: Concatenate 2 Command Into One Line

Oct 13, 2010

I'm trying to concatenate two command in one line.

Below are the commands:

Code:

I wanted to list all files in /portal/apll/nad/send and grep only .tmp files that contains credit card word.

View 2 Replies View Related

General :: Concatenate And Labeling Files ?

May 5, 2010

I have an assignment question that I have been making no progress on.

I need a single line command to concatenate a group of files together and clearly label those files in the output.

I assume that just cramming a bunch of commands onto one line will not be considered OK.

and it has to work on some old version of Solaris (which I have been having trouble with normal commands not working the same all day on), but if you just have solutions for any normal Linux shell at least I would have an idea of what I am looking for.

I have looked though cat's man page up and down and I am pretty sure it cannot do what I want, and cannot seem to find any other commands that even concatenate a grouping of files together.

View 4 Replies View Related

General :: How To Concatenate Rows Of 2 Files

Apr 3, 2011

How can i concatenate rows of 2 files.

File1:

File2:

How want file3 to be like?

View 14 Replies View Related

General :: Possible To Concatenate *.flv Flash Video Files?

Oct 12, 2010

Have got a film broken up into 10 minute chunks a la ...... Tried cat file1.flv file2.flv > file1&2.flv but mplayer stopped, saying 'end of file', half way through playing file1&2.flv.

Is there some way to join them together into one, so the film may be played all the way through.

Just occurred to me you could use an * for the counting numeral in the filename e.g. mplayer file*.flv for file1.flv, file2.flv, etc..

View 2 Replies View Related

General :: Concatenate Two Files With A New Line Character Between Them

Sep 1, 2010

I am trying to concatenate two files with a carriage return.

Iam not sure how we can implement this using .sh script.

For ex:

I tried concatenating using:

I got an output like:

View 4 Replies View Related

General :: Concatenate Variable Names In Bash?

Apr 7, 2011

In my script, and I would like to concatenate 2 variables names, to give me the true variable.I've 3 variables X1, X2 and X3, and I invoked them inside a for loop.

Code:
#!/bin/bash
X1=HELLO

[code]....

View 4 Replies View Related

General :: Using Underscore In File Names?

Apr 4, 2011

I use the command line frequently to navigate my files so I try not to have spaces in file names. Typically I have used an underscore to connect words but it was recently suggested that I should use a dash. Are there any disadvantages to using an underscore in file names?Should I switch to a dash? My system is running Xubuntu and I almost exclusively use the bash shell.

View 4 Replies View Related

General :: Accidentally Type Concatenate Large File On Remote System

May 6, 2010

Every once in a while on a computer I'm ssh'd into, I will accidentally type "cat largefile.txt" and my screen will start rushing with text for the next 10 minutes. I'm always working in a screen session, so my current solution is to just log out and then log back in, and since it can go 100X faster when I'm logged out, it'll finish in the short time it takes me to type my password in again. Is there a better way? Either involving the fact I'm in a screen session? Or a way to do this within SSH? What doesn't work: detaching from the screen session (doesn't respond until file is done outputting) trying command to move to a different window in the screen session (also doesn't respond) typing ctrl+C to kill cat command (also doesn't respond, probably because the command is done and the buffers just have to catch up).

View 3 Replies View Related

General :: Replaces Empty Spaces By Underscore?

Mar 11, 2011

my requirement is i need to copy mail subject to a text file and create one directory from the name of subject.

my MAIL subject is like this :

Quote:

Subject:Thanks to linuxquestions.org

i copied the mail subject to a file. and now the issue is to creating a directory.

now i want to create a directory without empty spaces, insted of space replace _ in that place.

i want out put like this.

Quote:

Thanks_to_linuxquestions.org

View 5 Replies View Related

Ubuntu :: Bash Script With Variables And Editing Variables

Apr 6, 2011

mkvmerge -o <filename without extension>_TV.mkv -S <filename> && mkvextract tracks <filename> 3:<filename without extension>.*** && perl /home/brian/Desktop/ass2srt.pl <filename without extension>.*** && rm <filename without extension>.***

Doing these commands for multiple command line file inputs is the goal. So I can just type ./script.sh *.mkv in my terminal.This is what I have so far, but it doesn't work whatsoever.

View 2 Replies View Related

General :: Printing From Bash Shell / Concatenate Files Into One File With File Names Included?

May 11, 2011

I am supposed to take some small files, and print them to a specific printer, such that the small files are concatenated into one file. The file name has to be included in the file that gets printed.

Should I be looking to concatenate the files into one file with the file names included, and then print them?

something like: -printfunction -printername < file*

View 7 Replies View Related

General :: Concatenate Several Images Into A PDF File With Several Images Per Page

May 2, 2011

I know that ImageMagick's convert program can be used as follows to convert a collection of images -- say, in PNG format -- to a PDF file:

convert *png output.pdf

The problem with this is that each image is then stretched to fit on one page, whereas I would like to keep the original dimensions of the images and put as many as possible on one page in the PDF file before moving on to another page.

View 1 Replies View Related

Programming :: Concatenate File Sort By Date?

May 5, 2010

i have text file that filename contain the date of creation (i.e 2010.05.02.log).I would like to create a script that:-Ask for start date -Ask for end date- Concatenate all file on the requested period by date order.

View 1 Replies View Related

Programming :: Concatenate The Output To Comma Delimited?

Nov 23, 2010

I would like to create csv output from an ipcalc calculation.

Code:
[me@host scripts]$ ./ipcalc 192.168.30.40/255.255.255.248
Address: 192.168.30.40 11000000.10101000.00011110.00101 000

[code]....

View 1 Replies View Related

Programming :: Python Can't Concatenate 'str' And 'NoneType' Objects?

Jun 24, 2010

I cannot get this to work

Code:
#!/usr/bin/python
# -*- coding: iso-8859-1 -*-
import re
# @description "This is a describing text about the file currently documentet";
#DocC documentation prototype

[Code]...

View 4 Replies View Related

Programming :: Change To Lower Case And Concatenate The First And Last Names?

Nov 28, 2010

I have a file like below. For all the lines (except for the ones listed as 'Unknown Owner' and N/A') I would like to change to lower case and concatenate the first and last names.Before:

Code:
aaa.bbb.ccc.ddd,Unknown Owner
ddd.eee.fff.ggg,N/A
hhh.iii.jjj.kkk,John Doe
aaa.bbb.ccc.ddd,Mary Jane

[Code]...

View 4 Replies View Related

Ubuntu Multimedia :: Video Editing Software To Concatenate Mpg Files?

May 14, 2011

I searched a bit, but got overwhelmed by what I got.

I have a number of mpg files which I would like to concatenate to each other so I get one big file. I know how to do this with the cat command code...

View 1 Replies View Related

General :: Using Variables In CURL?

Jul 12, 2010

using variables in CURL.Here's my code:

transfer_to_pcid="AAAAAAAA"
transfer_from_pcid="BBBBBBBB"
basic_password=`ssh rsync@some_test_domain 'curl --silent

[code]....

View 2 Replies View Related

Ubuntu :: Blinking Underscore While Booting?

May 14, 2011

My parents just upgraded from their 8+ year old desktop to a newer dell. The old one has XP on it and would barely run, lots of bloatware, viruses, etc.. I tried putting an ubuntu 10.10 disc to boot from it but the old desktop suddenly stopped recognizing mouse and keyboard input so I couldn't change the boot preferences. I took the hard drive out and plugged it into my desktop, copied all the useful files to my hard drive, then wiped it. I then installed ubuntu on the old -and now empty- hard drive by having it plugged into my computer.

I put the hard drive back in the old desktop and found that the keyboard now works. I can press F2 or F12 and change things around and whatnot. However, when I let it pass the screen that prompts me to press F2 or F12, it goes to a screen with a blinking underscore in the top left of the screen and gets stuck there.

what's causing it to get stuck on this screen?

View 5 Replies View Related

General :: Any Other Ways To Set Environment Variables

May 20, 2010

I am running Red Hat Linux Enterprise 5; I am always using the export command to set environment variables.Are there any other ways to set environment variables and what are the advantages/disadvantages of them?

View 4 Replies View Related

General :: Referring To Variables In Bash?

Sep 13, 2010

Is there a difference when variables are referred to as $variableName and ${variableName} in bash?

View 1 Replies View Related

General :: Gnuplot Variables Into Shell?

Feb 17, 2010

in gnuplot it's possible to set the value of a variable via linux shell command.or instance we can do

Code:
a="`echo 1`"
b="`echo 2`"

[code]...

View 3 Replies View Related

General :: Setting Up Variables (in RDGEN)

Jan 17, 2010

I have installed RDGEN which comes with VPFIT package. When I run the program it says:
"Failed to find help file"
But I ran the program from its main directory where all the files including help files exist. I think maybe the problem is because of this that THEY say:
"Some environment variables should be set before starting RDGEN".
But I do not know what does this mean and how to do that.

These are the variables:
-ATOMDIR
-RD PRSETUP
-RD PRSETUP
-RDSTART
-VPFSETUP
-VPFPLOTS
Would it be possible for you to tell me what does Setting Variable means in this case?

View 2 Replies View Related

General :: Environment Variables Not Being Set Correctly?

Jun 21, 2010

he $g09root is picked up ( in both the csh and the bash), but not the $GV_DIR or the $GAUSS_SCRDIR. I guess it's some stupid error, but it is highly frustrating.Here is the .profile file:Quote:

# To make use of this feature, simply uncomment one of the lines below or
# add your own one (see /usr/share/locale/locale.alias for more codes)
#

[code]...

View 9 Replies View Related

General :: Experimenting With Shell Variables?

Oct 12, 2010

Explain the following unexpected results

$ whereis date
date: /bin/date ?
$ echo $ PATH

[code]...

View 5 Replies View Related

General :: List The Variables That Are Used In A Script?

May 9, 2010

Is there a command that can list the variables that I am using in a script? I mean the variables that I created in the script not the environment or local variables. For example if I have a script that has the following var's like : name=Alex, age=20, postal_code=12345, how can I list them all @ once WITHOUT using echo $name, $age and so on. Imagine I have a lot of variables and i can't echo them all.

View 2 Replies View Related

General :: Unable To Get External Variables In Awk

May 25, 2010

In the following lines I am trying to replace Puppy Linux 5.0 Released with the content of external variable Var. Following lines are in a file called news

Code:

<A title="Puppy Linux 5.0 Released" href="http://lwn.net/Articles/388754/" rel=bookmark><FONT color=#ffffff size=2><STRONG>Puppy Linux 5.0 Released
</STRONG></A><STRONG>  |  </STRONG>

I have tried following.

Code:

awk -v var=NewNews '/title="[^"]*/{n+=1}{if (n==1){sub(/title="[^"]*/,"title="$var",$0)};print }' news

But it is replacing Puppy Linux 5.0 Released as $var, not with the contents of var.

View 4 Replies View Related







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