09-06-2011
Hi Bartus11
thanks for your reply
but when i run your code it defaults all the rows in 2nd column with double quotes ,
but i need to double quote only those values which have delimiter (*) within the data
Thanks
10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
hey all,
i made a simple .sh like this:
echo "<style media="screen" type="text/css">@import url("main.css");</style>"
but the output is:
<style media=screen type=text/css>@import url(main.css);</style>
i want to keep double-quotes, can anyone help me?
thanks (3 Replies)
Discussion started by: indraf
3 Replies
2. Shell Programming and Scripting
Hello,
I need to replace the comma to something else between the single quote:
1aaa,bbb,'cc,cc','ddd',1
2aaa,bbb,'ccc','d,d',0
to
1aaa,bbb,'cc<comma>cc','ddd',1
2aaa,bbb,'ccc','d<comma>d',0
Can someone help? Thanks. (2 Replies)
Discussion started by: bgirl
2 Replies
3. Shell Programming and Scripting
Hi,
I've been trying to write a regex to use in egrep (in a shell script) that'll fetch the names of all the files that match a particular pattern. I expect to match the following line in a file:
Name = "abc"
The regex I'm using to match the same is:
egrep -l '(^) *= *" ** *"$' /PATH_TO_SEARCH... (6 Replies)
Discussion started by: NanJ
6 Replies
4. Shell Programming and Scripting
Hi All,
I wanted to find 200th field value in delimiter file using awk.?
awk '{print $200}' inputfile
I am getting error message :-
awk: The field 200 must be in the range 0 to 199.
The source line number is 1.
The error context is
{print >>> $200 <<< }
using... (4 Replies)
Discussion started by: Jairaj
4 Replies
5. Shell Programming and Scripting
I'm trying to extract a column from a csv file with either cut or awk but some of the fields contain comma with them:
"Field1","Field2, additional info","Field3",...,"Field17",...
If I want to extract column 3 and use comma as the delimiter, I'll actually get the additional info bit but not... (4 Replies)
Discussion started by: ivpz
4 Replies
6. Shell Programming and Scripting
Hi Froum.
I have tried in vain to find a solution for this problem - I'm trying to replace any double quotes within a quoted string with a single quote, leaving everything else as is.
I have the following data:
Before:
... (32 Replies)
Discussion started by: pchang
32 Replies
7. Shell Programming and Scripting
Hi All ,
We have source data file as csv file and since data could contain commas ,each attribute is quoted into double quotes.However problem is that some of the attributa data also contain double quotes which is converted to double double quote while creating csv file
XLs data :
... (2 Replies)
Discussion started by: Shalini Badal
2 Replies
8. Shell Programming and Scripting
From:
1,2,3,4,5,This is a test
6,7,8,9,0,"This, is a test"
1,9,2,8,3,"This is a ""test"""
4,7,3,1,8,""""
To:
1,2,3,4,5,This is a test
6,7,8,9,0,"This; is a test"
1,9,2,8,3,"This is a ''test''"
4,7,3,1,8,"''"Is there an easy syntax I'm overlooking? There will always be an odd number... (5 Replies)
Discussion started by: Michael Stora
5 Replies
9. Shell Programming and Scripting
We have a csv file as mentioned below and the requirement is to change the date format in file as mentioned below.
Current file (file.csv)
----------------------
empname,date_of_join,dept,date_of_resignation
ram,08/09/2015,sales,21/06/2016
"akash,sahu",08/10/2015,IT,21/07/2016
... (6 Replies)
Discussion started by: gopal.biswal
6 Replies
10. Shell Programming and Scripting
I have a variable that contains the following string:
FPATH=-rw-rw-r-- 1 user1 dba 0 Aug 7 13:14 /app/F11.3/app/cust/exe/filename1.exe' -rw-rw-r-- 1 user1 dba 0 Aug 19 10:09 /app/app/F11.3/app/cust/sql/33211.sql' -rw-r--r-- 1 user1 dba 0 Aug 6 17:20 /app/F11.2/app/01/mrt/file1.mrt'
I... (7 Replies)
Discussion started by: mohtashims
7 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)