Search Results

Search: Posts Made By: nirjhar17
1,095
Posted By RavinderSingh13
Hello nirjhar17, You need not to use cat...
Hello nirjhar17,

You need not to use cat alnog with awk, awk could read the Input_file itself. It is working for me fine in BASH, following is the Input_file.

cat Input_file
Name:...
2,104
Posted By Don Cragun
The contents of /tmp/devices in your earlier...
The contents of /tmp/devices in your earlier example clearly had two columns of data per line; not one. With the above contents of /tmp/devices, there would be no spacing problem. (The only spacing...
2,104
Posted By Don Cragun
Hi nirjhar17, To get the output you said you...
Hi nirjhar17,
To get the output you said you wanted in the 3rd message in this thread (except for inconsistent spacing in the output you showed in the symmask commands), the following shell and awk...
2,104
Posted By apmcd47
What I said was to do something like below in...
What I said was to do something like below in red.

for (( i=0;i<N;i++ ))
do
echo "enter director and port number"
read dirs[$i] ports[$i]
done
for (( i=0;i<N;i++ ))
do
DIR=dirs[$i]...
3,560
Posted By balajesuri
\1 is back reference to the sub-pattern in first...
\1 is back reference to the sub-pattern in first parenthesis of the pattern. In this case, \(..\) is the sub pattern in first parenthesis. This is referred by \1.
4,097
Posted By ctsgnb
Could you tell us which part of the code you...
Could you tell us which part of the code you don't understand ?

If you understand nothing, reading the following would be a good start :
...
3,560
Posted By ygemici
what is your desired output? is that or ? #...
what is your desired output?
is that or ?
# sed 's/../&:/g;s/.$//' file
50:06:0E:80:05:8F:49:00
50:06:0E:80:05:8F:49:20
50:06:0E:80:05:8F:49:01
50:06:0E:80:05:8F:49:21
50:06:0E:80:05:8F:49:04...
1,212
Posted By agama
This seems much better to me. The...
This seems much better to me.



The looping issue might be that you either need to initialise i to 0, or change the conditional to i <= N.

You are seeing the 'c' dropped because of the...
1,212
Posted By agama
Ok, so you're getting the error after you save...
Ok, so you're getting the error after you save the file and when you try to execute it? That makes a bit more sense.



The typeset -a name defines the variable name as an indexed array. ...
1,212
Posted By agama
I'm confused by what it is you mean when you say...
I'm confused by what it is you mean when you say "trying to run from vi." Using the :! command vi command? Unfortunately I cannot explain the error you are getting; your script runs without error...
Showing results 1 to 10 of 10

 
All times are GMT -4. The time now is 03:42 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy