I want to know what's the meaning of the following commands
first eg
What does exactly the *a,*e,*i ...*$ means in this command?
I know that i can also use this command without the *a,*e,*i ... *$!
At this ocassion what's the difference?
second eg
In sed command why do we use 's' and what's the meaning of it?
Also in sed when do i have to use the substitude command '1,$s'?
third eg
At this example what does the '^$' means?
I want to know what's the meaning of the following commands
first eg
What does exactly the *a,*e,*i ...*$ means in this command?
I know that i can also use this command without the *a,*e,*i ... *$!
At this ocassion what's the difference?
In a regular expression the splat (*), some people call it a star, means zero or more of the proceeding character. A simple example, /word */ will match 'word' followed by zero or more spaces. In the example you gave, [^aeiou] will match any character that is not a vowel. [^aeiou]*a will match zero or more non-vowels, followed by the letter 'a'. The same is true for the rest. So a string like hahhehhihhhohhhuhh would match the pattern, but heahehihohu would not since the first vowel is not an a.
Quote:
second eg
In sed command why do we use 's' and what's the meaning of it?
Also in sed when do i have to use the substitude command '1,$s'?
The 's' is the substitute command. Anything that matches between the first pair of slant characters will be replaced with the string between the middle and last slant characters. In your example, the beginning of line is replaced with <tab>
Quote:
third eg
At this example what does the '^$' means?
The '^' represents the beginning of the buffer, and '$' represents the end of the buffer. When put together, as in your example, it means the beginning and ending of the buffer are next to each other without any characters between (a blank line). This sed deletes blank lines.
Last edited by agama; 12-17-2011 at 05:55 PM..
Reason: typo
hello
let me start with
i am a php ,vb ,c# programmer
i heared that Routers run a smaller version of linux called an Embedded Operating System
i don't know what is that mean
so i want to know how to get into router files ?
how to edit it ?
what language it use , is it c and c++ ?... (1 Reply)
Hi all,
I'm new in this forum.
I'm looking for the difference between the HACMP commands with the prefix "cl" and "cli".
The first type are under /usr/es/sbin/cluster/sbin directory and the second are under /usr/es/sbin/cluster/cspoc directory.
I know that the first are called HACMP for AIX... (0 Replies)
Hello,
I am trying to get some information from the sensors on my pc. But i get confuse with what i get.
I don t know where to find out which sensors watches what..
I use "sensors" under ubuntu 10.10.
Here is the result of the cmd line sudo sensors.
the temp 3 indicates 79°C which... (0 Replies)
Just wondering: Can anyone tell me what is meant by the term 'interactive shell" or 'built-in commands' - for example, if I type 'man set' I get a page listing all the 'built in commands' but no explanation of what they are as a concept or what they do.
And while I'm here: I was wondering as... (5 Replies)
I want to log into a remote server transfer over a new config and then backup the existing config, replace with the new config.
I am not sure if I can do this with BASH scripting.
I have set up password less login by adding my public key to authorized_keys file, it works.
I am a little... (1 Reply)
Hi
I have find in unix.
A.txt
/app01//fnd/11.5.0/bin/ADCONV
/app01/fnd/11.5.0/bin/AFTBLGEN
/app01/fnd/11.5.0/bin/FDULONG
/app01/fnd/11.5.0/bin/FNDAQCT
/app01/fnd/11.5.0/bin/FNDATUPD
I want to make this as
cp -i /db01//fnd/11.5.0/bin/ADCONV /app01//fnd/11.5.0/bin/ADCONV
cp -i... (2 Replies)
Hello all,
i've written a small piece of code that will read commands from standard input and executes the commands.
Its working fine and is execting the commands well. Accepting arguments too. e.g
#mkdir <name of the directory>
The problem is that its not letting me change the directory i.e... (4 Replies)