Sponsored Content
Top Forums Shell Programming and Scripting Problem to match a path in a file and put it into a variable Post 302987451 by Arnaudh78 on Friday 9th of December 2016 11:12:34 AM
Old 12-09-2016
Thanks for your all replies !SmilieSmilie

Last edited by Arnaudh78; 12-09-2016 at 12:28 PM..
 

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

PATH variable problem

root->echo $PATH /usr/ccs/bin:/opt/sfw/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin root->find / -name gcc /usr/local/bin/gcc /usr/local/doc/gcc root->which gcc no gcc in /usr/sbin /usr/bin Why cant it find gcc - the path looks okay doesnt it? I am running solaris 9 - and... (7 Replies)
Discussion started by: frustrated1
7 Replies

2. Shell Programming and Scripting

problem in getting the path of environment variable set in bashrc in my shell script

hi all i have joined new to the group. i have set an variable in my bashrc file. .bashrc PROGHOME=/home/braf/braf/prog export PROGHOME but while using it in my shell script its path is not taken and i had to explicitly give the export command to set the path. in my script... (8 Replies)
Discussion started by: krithika
8 Replies

3. Shell Programming and Scripting

Using a variable in File Path

How can i add a varying filename at the end of a constant file path? Eg: Variable containing file name is varfile (say varfile=newfile) File path is C:\Test\ I want to access newfile which can be done as C:/\Test/\newfile But instead of directly accesing the newfile i want to access it... (2 Replies)
Discussion started by: sandeep_hi
2 Replies

4. AIX

Put one ligne from a file a variable

Hi everybody I looking the put the result of a commane to a Variable i explain here is my command: FJTS_UK:root:common@ukaix3:/> cat sortie | grep "^"| awk '{ print $1}' 15 FJTS_UK:root:common@ukaix3:/> sortie is a texte file I want to put the result of commande in a... (1 Reply)
Discussion started by: kykyboss
1 Replies

5. Shell Programming and Scripting

put the contents of this file into a variable with multiple lines

I have a file that contains the following lines the brown quick fox jumped over the white laze dog 0123456789 I wanted to put the contents of this file into a variable so I used this code: VAR_LIST=`cat $2` where $2 is the file name passed as an argument to the script If I... (3 Replies)
Discussion started by: Nomaad
3 Replies

6. Shell Programming and Scripting

How to put content of file into a variable?

For example, I have a simple text file note: this a note a simple note a very very simple notewhen I use this command, temp=$(cat "note.txt")then I echo temp, the result is in one line. echo $temp note: this a note a simple note a very very simple noteMy variable doesn't have newline. How... (7 Replies)
Discussion started by: 14th
7 Replies

7. Shell Programming and Scripting

Read value of a file, remove first 2 chars and put this value in a variable

Hi i have need of read a file value with cat command and remove first 2character for example cat /sys/class/rtc/day 0x12 Remove char 12 And put this value in a variable is possible with a script thanks for help (6 Replies)
Discussion started by: enaud
6 Replies

8. Shell Programming and Scripting

Pattern match a path anywhere in the line and replace it with new path

I want to pattern match only path part from below and replace them with new path string. LoadModule jk_module /fldrA/fldrBaf/fldrCaa/modules/mod_jk.so JkWorkersFile /fldrA/fldrBaf/fldrCaa/config/OHS/ohs1/workers.properties JkLogFile... (4 Replies)
Discussion started by: kchinnam
4 Replies

9. Shell Programming and Scripting

I must use first sentence from a file to put into variable

i am having some bash script which must use first sentence of the file. For example i have file which content is: test 213 So I must use word test into my bash script, and put it into variable. I am using a one variable named value value=$(</home/rusher/test.txt) so instead using test.txt... (1 Reply)
Discussion started by: tomislav91
1 Replies

10. UNIX for Beginners Questions & Answers

Problem setting path to external hard drive as a variable

Hello all, I am EXTREMELY new to using bash and I have a bit of a problem: I'm trying to set up a shell script that can 1.) take one of several giant files off of an external hard drive 2.) use it as input for scripts on my laptop's hard drive ... (3 Replies)
Discussion started by: machine_spirit
3 Replies
asmping(1)						      General Commands Manual							asmping(1)

NAME
asmping - check if you can receive IPv4/IPv6 multicast data from an internet host SYNOPSIS
asmping [ -46v ] [ -I interface ] [ -c count ] [ -s size ] group host ssmpingd DESCRIPTION
asmping and ssmpingd are network level multicast management tools that can be used to check whether one can receive multicast packets via ASM from a host. The host target given to asmping must run the ssmpingd daemon, which listens on UDP port 4321 for IPv4 and IPv6 unicast requests. When it receives one, it responds to the specified multicast group which asmping just have joined. Note that one can not use arbitrary groups. Independent of what group is specified, the last quarter of the address is forced to be 234 or ::4321:1234 for IPv4 or IPv6 respectively. OPTIONS
For ssmpingd there are no options. For asmping the options are as follows. -4 Force IPv4 -6 Force IPv6 -v Print client and server version information. -I interface Interface to join on -c count Stop after sending (and receiving) count requests (and replies) -s size Request replies to have a size of size bytes SEE ALSO
ssmping(1) a tool for checking whether can receive SSM. dbeacon(1) a distributed beacon multicast implementation. BUGS
Please report them to Stig Venaas <venaas@uninett.no>, the author of this tool. HISTORY
asmping and ssmpingd were developed by Stig Venaas during the early days of the m6bone, the IPv6 multicast backbone. User Manuals asmping(1)
All times are GMT -4. The time now is 03:48 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy