05-17-2014
Actually what i intend to achieve is "duplicating data found on the 1st line starting with an asterisk onto the ends of the following non-empty lines up to the next line starting with an asterisk".
Thanks.
10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Hi,
I want to print only lines in between two strings and not the strings using awk.
Eg:
OUTPUT
top 2
bottom 1
left 0
right 0
page 66
END
I want to print into a new file only
top 2
bottom 1
left 0... (4 Replies)
Discussion started by: jisha
4 Replies
2. Shell Programming and Scripting
Hi experts,
You cool guys already given me the awk script below-
awk '/9366109380/,printed==5 { ++printed; print; }' 2008-09-14.0.log
Morever, i have one more things-
when i awk 9366109380, i can also see the Upper 3 lines as well as below 5 lines of that string.
Line 1.... (3 Replies)
Discussion started by: thepurple
3 Replies
3. Shell Programming and Scripting
Hi All,
I have a file in which i want to print all the lines between 2 defined strings. Ex- I have file with data as follows
STEP1:-
----- has some 20 -30 lines of data
STEP2:-
----- has some 20 -30 lines of data
So i want to print those lines between STEP1 & STEP2. (line including STEP1)... (7 Replies)
Discussion started by: digitalrg
7 Replies
4. Shell Programming and Scripting
Hi,
Please provide shell script to Remove empty lines(space) between two lines containing strings in a file.
Input File :
A1/EXT "BAP_BSC6/07B/00" 844 090602 1605
RXOCF-465 PDTR11 1
SITE ON BATTERY
A2/EXT... (3 Replies)
Discussion started by: sudhakaryadav
3 Replies
5. Shell Programming and Scripting
pls help me on this... and im really sorry because i really don't know where to start here...
FILE1
ABC DEF 10 2
DEF GHI 11 3
GHI JKL 12 5
JKL MNO 13 7
MNO PQR 14 5
requirements:
1. The third string should only be 10 or 12
2. The fourth string should only be 2 or 3
3. Prinnt... (1 Reply)
Discussion started by: kingpeejay
1 Replies
6. Shell Programming and Scripting
Hi all,
This should be very easy but I can't figure it out...
I have a file that looks like this:
@SRR057408.1 FW8Y5CK02R652T length=34
AGCAGTGGTATCAACGCAGAGTAAGCAGTGGTAT
+SRR057408.1 FW8Y5CK02R652T length=34
FIIHFF6666?=:88@@@BBD:::?@ABBAAA>8
@SRR057408.2 FW8Y5CK02TBMHV length=52... (1 Reply)
Discussion started by: kmkocot
1 Replies
7. Shell Programming and Scripting
Hi,
I have two files. 1st file has 1 column (huge file containing ~19200000 lines) and 2nd file has 2 columns (small file containing ~6000 lines).
#################################
huge_file.txt
a
a
ab
b
##################################
small_file.txt
a 1.5
b 2.5
ab ... (4 Replies)
Discussion started by: AshwaniSharma09
4 Replies
8. Shell Programming and Scripting
The question is not as simple as the title... I have a file, it looks like this
<string name="string1">RZ-LED</string>
<string name="string2">2.0</string>
<string name="string2">Version 2.0</string>
<string name="string3">BP</string>
I would like to check for duplicate entries of... (11 Replies)
Discussion started by: raidzero
11 Replies
9. Shell Programming and Scripting
Hello,
I can extract lines in a file, between two strings but only one time.
If there are multiple occurencies, my command show only one block.
Example, monfichier.txt contains :
debut_sect
texte L1
texte L2
texte L3
texte L4
fin_sect
donnees inutiles 1
donnees inutiles 2
... (8 Replies)
Discussion started by: theclem35
8 Replies
10. Shell Programming and Scripting
Hello everyone,
Maybe somebody could help me with an awk script.
I have this input (field separator is comma ","):
547894982,M|N|J,U|Q|P,98,101,0,1,1
234900027,M|N|J,U|Q|P,98,101,0,1,1
234900023,M|N|J,U|Q|P,98,54,3,1,1
234900028,M|H|J,S|Q|P,98,101,0,1,1
234900030,M|N|J,U|F|P,98,101,0,1,1... (2 Replies)
Discussion started by: Ophiuchus
2 Replies
LEARN ABOUT DEBIAN
node.perms
NODE.PERMS(5) Linux Programmer's Manual NODE.PERMS(5)
NAME
node.perms - LinuxNode permissions file.
DESCRIPTION
Node.perms file is read at program startup with the knowledge of users username (call), connection type (AX.25, NET/ROM, ROSE, TCP/IP),
peers IP address (for TCP/IP) and port name (for AX.25). The first entry matching this information is taken and user is asked for password
and given permissions according to it.
The lines within node.perms must either be a comment line, which starts with a # in the first column, or a permission entry in the follow-
ing format, each field being delimited by white space:
username type portname password permissions
The field descriptions are:
username This is matched against users username (call) without SSID. An asterisk (*) matches any username.
type This is matched against the type of the connection to user. Possible values for this field are:
* matches any type of connection.
ax25 matches users coming in with AX.25.
netrom matches users coming in with NET/ROM.
rose matches users coming in with ROSE.
local matches TCP/IP connections where users host is in "local" network as defined in node.conf(5).
ampr matches TCP/IP connections where users host is in amprnet (44.0.0.0/8).
inet matches TCP/IP connections where users host is neither in "local" network nor in amprnet.
host matches users starting LinuxNode from shell.
portname If user is coming in with AX.25 this field is matched against the local port name the user is coming in via. An asterisk (*)
matches any port name.
password If the previous tree fields match and this field is not a single asterisk (*) the user is asked for a password. The password
is then matched against this field.
permissions This field represents a a bitmask of operations the user is permitted to do. It is a sum of the values listed here:
1 permits logging in even if no other permissions are given.
2 permits outgoing AX.25 connects.
4 permits outgoing NET/ROM connects.
8 permits telneting to hosts in the "local" network as defined in node.conf(5).
16 permits telneting to hosts in amprnet.
32 permits telneting to hosts neither in the "local" network nor in amprnet.
64 permits using hidden ports in outgoing AX.25 connections. (See HiddenPorts command in node.conf(5).)
128 permits outgoing ROSE connects.
256 The no-escape flag. Disables the escape mechanism for this user.
FILES
/etc/ax25/node.perms
SEE ALSO
node(8), node.conf(5), axports(5), ax25(4).
Linux 16 June 1999 NODE.PERMS(5)