Actually this thread can now be disregarded. I just found a solution to my problem using this regular expression and notepad++. I went and reverted my previous edits and started fresh with the file.
I then replace with:
$1,$2,
What I was trying to do is solved.
---------- Post updated at 02:44 PM ---------- Previous update was at 02:43 PM ----------
I also thank you guys for your replies. They are educational for me and now I know a little bit more about scripting. I certainly appreciate it.
Moderator's Comments:
edit by bakunin: you are welcome. Changed your threads title accordingly.
Hi,
In the below line
a|b|10065353|tefe|rhraqs|135364|5347575
dgd|rg|4333|fhra|grhrt|46423|urdsgd
Here i want to cut the characters in between the second and third pipe delimiter and then between fifth and sixth delimiter and retain the rest of the line.
My output should be
... (3 Replies)
You guys are really smart, so I'm hoping someone can help me out with this. I would like to match the third line occurrence of a pattern at the beginning of a line in a file and replace it. I'm ok at using sed but I have no clue about this one. Thanks in advance. (5 Replies)
Hi Guys,
Can you help me with a sed or a csh script that will have an output from the input below. Cutting the columns starting from the end of the line and not from the start of the line?
Sample1 - The underscore character "_" is actually a space...i need to put it as underscore here coz... (2 Replies)
Hi,
Newbie here. I have a file that consists of data that I want to convert to a csv file. For example:
Jul 20 2008 1111 / visit home / BlackBerry8830/4.2.2 Profile/MIDP-2.0 Configuration/CLOC-1.1 VendorID/105
Jul 21 2008 22222 / add friend / BlackBerry8830/4.2.2 Profile/MIDP-2.0... (3 Replies)
testfile.csv
0","1125209",,"689202CBx18888",,"49",,,"NONMC",,,,,"01112010",,,,,,,"MTM-
"1","",,"689202ABx19005",,"49",,,"NONMC",,,,,"01072010",,,,,,,"MTM-
testfile.csv looks like above format
if the second column is null then get 23rd column and store in a different varible .. add all the... (1 Reply)
Hi All,
I am checking whether each line is having "n" number of commas or nor. In case not then I need to exit the process.
I tried
cat "$TEMP_FILE" | while read LINE
do
processing_line=`expr $processing_line + 1`
no_of_delimiters=`echo "$LINE" | awk -F ',' '{ print NF }'`
if
... (4 Replies)
Hi all,
I am reading from the file having entries like below
111.ABC.POT
6477.YHT.OIT
Now I need to read each line and cut each line seperated by dot and print into the file .
I tried below and it is not working . Please help
while read READLINE
do
eval... (4 Replies)
I would like search and find a word (easily identified by 'key') from an xml file and then cut all of the tags out of the resulting line (anything between a < and a >) and display the remaining material. I am running Debian and mksh shell.
dictionary.sh:
#!/bin/sh
key='key="'$1'"><form'... (3 Replies)
Discussion started by: bedtime
3 Replies
LEARN ABOUT REDHAT
read-notepad
read-notepad(1) General Commands Manual read-notepad(1)NAME
read-notepad - Connect to the Palm handheld device and list the record information found in the Notepad application. Alternately, if no
options are given, each record's image will be converted to files, using Portable Network Graphic (.png) or Portable Pixmap (.ppm) format.
The default type is ppm.
SYNOPSIS
read-notepad -p <port> --list --type <type>
DESCRIPTION
read-notepad allows a PalmOS 4.0 or later user to read the data stored in the Palm Notepad application and extract the data into images and
convert them to Portable Network Graphics (.png) or Portable Pixmap (.ppm) files.
OPTIONS
-p --port <port>
Use device file port to communicate with the Palm handheld device. If this is not specified, will look for the $PILOTPORT environ-
ment variable. If both are not found, will fall back to /dev/pilot.
-h --help
Display help synopsis for read-notepad
-v --version
Display version of read-notepad
-l --list
List picture information found on the device instead of converting them to image files
-t --type <type>
Specify the output picture type. Can be either "png" or "ppm".
USAGE
The program will connect to the target Palm handheld device, and list or convert the records and images found in the Palm Notepad applica-
tion to Portable Network Graphic (.png) or Portable Pixmap (.ppm) files.
KNOWN BUGS
read-notepad has no known bugs.
REPORTING BUGS
Report bugs at http://bugs.pilot-link.org/
AUTHOR
read-notepad was written by Angus Ainslie <angusa@deltatee.com>.
Free Software Foundation Palm Computing Device Tools read-notepad(1)