Hi,
How do I parse/split lines (strings) read from a file and display the individual tokens in a shell script? Given that the length of individual lines is not constant and number of tokens in each line is also not constant.
The input file could be as below:
... (3 Replies)
Hi,
I need some help creating a tidy shell program with awk or other language that will split large length files efficiently.
Here is an example dump:
<A001_MAIL.DAT>
0001 Ronald McDonald 01 H81
0002 Elmo St. Elmo 02 H82
0003 Cookie Monster 01 H81
0004 Oscar ... (16 Replies)
Hello,
I have a paramter $param consisting just of two literals and want to split it into two parameters, so I can combine it to a new parameter <char1><string><char2>, but the following code didn't work:
tmp_PARAM_1=cut -c1 $PARAM
tmp_PARAM_2=cut -c2 $PARAM... (2 Replies)
i need one help....
if i have a string like aaaaa,bbbbb,ccccc,aaaaa
How to to split the string and check howmany times aaaaa will be in that string?
Thanks (7 Replies)
I have a file named Me_thread_spell.txt that I want to split into smaller files. I want it to be split in each place there is a ;;;. For example,
blah blah blah ;;;
blah bhlah hlabl
awasnceuir
asenduhfoijhacseiodnbfxasd;;;
oabwcuhaweoir;;;
This full file would be three separate files... (7 Replies)
Hi All,
I am using a bash shell and want to the following thing.
A process sends the following string to my script
BACKUP_FAIL_REASON="Failed - Application Dump CDMACA-0:grep: /opt/nortel/ca/data/1245184/sd00/image1/S110907070708HIS... (4 Replies)
Hi all,
I want to split a string into array based on given delimiter, for example:
String:
"foo|bar|baz"
with delimiter "|"
into array:
strArr to strArr with values foo, bar and baz.
Thanks a lot.
Roy987 (5 Replies)
Hello,
I was trying to split a string to characters by perl oneliner.
echo "The quick brown fox jumps over the lazy dog" | perl -e 'split // ' But did not work as with bash script pipe:
echo "The quick brown fox jumps over the lazy dog" | fold -w1 | sort | uniq -ic 8
1 T
1... (6 Replies)
ABRT-SERVER(1) ABRT Manual ABRT-SERVER(1)NAME
abrt-server - Unix socket for ABRT.
SYNOPSIS
abrt-server [-u UID] [-spv[v]...]
DESCRIPTION
abrt-server is executed by abrtd daemon to handle socket connections. Every application in system is able to invoke creation of a new
problem directory by following the communication protocol (described below in section PROTOCOL).
OPTIONS -u UID
Use UID as client uid
-s
Log to system log.
-p
Add program names to log.
-v
Log more detailed debugging information.
PROTOCOL
Initializing new dump: connect to UNIX domain socket /var/run/abrt.socket
Providing data (writting data to the socket):
-> "POST / HTTP/1.1
"
-> "
"
-> "type=string "
string, maximum length 100 bytes
-> "reason=string "
string, maximum length 512 bytes
-> "pid=number "
number, 0 - PID_MAX (/proc/sys/kernel/pid_max)
-> "executable=string "
string, maximum length ~MAX_PATH
-> "backtrace=string "
string, maximum length 1 MB
-> (close writing half of the socket)
<- "HTTP/1.1 201
"
<- "
"
Deleting problem directory:
-> "DELETE <directory_name> HTTP/1.1
"
-> "
"
-> (close writing half of the socket)
<- "HTTP/1.1 200
"
<- "
"
AUTHORS
o ABRT team
abrt 2.1.11 06/18/2014 ABRT-SERVER(1)