9 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Hello All,
Could you please do help me here as I would like to perform parameter expansion in shell over a parameter expansion.
Let's say I have following variable.
path="/var/talend/nat/cdc"
Now to get only nat I could do following.
path1="${path%/*}"
path1="${path1##*/}"
Here... (8 Replies)
Discussion started by: RavinderSingh13
8 Replies
2. Shell Programming and Scripting
(Using Bash 4.4)
When I write something like dir="~/dox"
ls $dir then I get the message that the directory '~/docs' does not exist. I understand that the tilde is not expanded at the time of the above assignment because of the quotes. But why is it not expanded at the time when the ls command is... (2 Replies)
Discussion started by: Ralph
2 Replies
3. Shell Programming and Scripting
Hi,
I'm trying to figure out whether some files exist. Locations of those file are stored in a plain text file called temp.txt in this way:
All environment variables ($LIB_HOME and $ORACLE_HOME) have been set using export command.
Then I do:
while read line; do ] && echo "OK ==> $line" ||... (6 Replies)
Discussion started by: AlbertGM
6 Replies
4. UNIX for Dummies Questions & Answers
I have a bunch of files which I need to transfer to another location... and some of these I need to skip.
For e.g. let us say the files are:
cust_abc.dat
cust_xyz.dat
cust_def.dat
and I only want to move the first two.
I want to do something like:
cp cust_.dat <target>
... (1 Reply)
Discussion started by: jawsnnn
1 Replies
5. Shell Programming and Scripting
Say you have this numeric variable that can be set by the user but you never want it to leave a certain range when it gets printed. How could you use parameter expansion such that it will never expand outside of that boundary? Thanks
---------- Post updated at 11:09 PM ---------- Previous update... (3 Replies)
Discussion started by: stevenswj
3 Replies
6. Shell Programming and Scripting
Hi ,
could anyone help me out with this problem.
sample.txt has this content :
u001- this is used for project1 ||
u002- this is used for p2|| not to be printed
u003- this is used
for project3 ||
u004- this is
used for p4 ||
u005- this is used for project5 ||
u006- this is used for p6... (9 Replies)
Discussion started by: Balaji PK
9 Replies
7. Linux
I was wondering if it is possible to setup SFTP to go through the internet proxy while connecting to an internet location.
Problem: Client system is behind internet proxy. SFTP to any internet location fails as there is no documented way to configure SFTP to connect to internet locations through... (4 Replies)
Discussion started by: toobrown1
4 Replies
8. Shell Programming and Scripting
Hi,
I have a script that at one point prints to a file as follows:
printf -- $2 > ~/.mydir/$1
The idea is to print to a hidden directory .mydir in my home directory. I've already sanitized the inputs and $1 is in the format path1/path2/filename and $2 is some user input.
When I run this... (2 Replies)
Discussion started by: Rledley
2 Replies
9. News, Links, Events and Announcements
Surreal quote from the news link below:
http://www.washingtonpost.com/wp-dyn/articles/A44615-2002Nov12.html (0 Replies)
Discussion started by: Neo
0 Replies
networks(4) Kernel Interfaces Manual networks(4)
NAME
networks - network name data base
DESCRIPTION
The file associates Internet (IP) addresses with official network names and aliases. This allows the user to refer to a network by a sym-
bolic name instead of using an Internet address. For each network, a single line should be present with the following information:
<official network name> <network number> <aliases>
Aliases are other names under which a network is known. For example:
where the network named is also called
A line cannot start with a blank (tab or space character). Items are separated by any number or combination of blanks. A character indi-
cates the beginning of a comment. Characters from the up to the end of the line are not interpreted by routines which search the file.
Trailing blanks are allowed at the end of a line. For the Internet, this file is normally created from the official network database main-
tained at the Network Information Control Center (NIC), though local changes may be required to bring it up-to-date regarding unofficial
aliases and/or unknown networks.
Network numbers can be specified in conventional Internet dot notation using the routine from the internet address manipulation library
(see inet(3N). Network names can contain any printable character other than a white space, new-line, or comment character.
EXAMPLES
See
AUTHOR
was developed by the University of California, Berkeley.
FILES
SEE ALSO
getnetent(3N).
networks(4)