Sponsored Content
Top Forums Shell Programming and Scripting Regex to pick up name from the following including carriage return at end of the line Post 24792 by peter.herlihy on Wednesday 17th of July 2002 06:22:54 PM
Old 07-17-2002
From the look of your data - you'd need a number of commands....becasue the <<NAME>> could be line broken at any point across the field....is this so?

<
<NAME>>

or

<<
NAME>>

or

<<N
AME>>

etc.....
 

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

carriage return/line feeds

Hello, I have a file that has got carriage returns in it and I want to take them out. Anyone know how I can do this in a ksh? thanks (4 Replies)
Discussion started by: pitstop
4 Replies

2. UNIX for Dummies Questions & Answers

Remove a carriage return at end of variable

Is there a command in unix to remove a carriage return character(^M) at the end of a variable value? (5 Replies)
Discussion started by: flagship99
5 Replies

3. Shell Programming and Scripting

Carriage Return at end of file

Hi, I have a script that outputs a file that contains the dates from the previous month, which is then used by our application to run processes on each date contained in the file. My problem is is that my script created a blank line at the bottom of the file which causes issues for our... (14 Replies)
Discussion started by: bd_joy
14 Replies

4. UNIX for Dummies Questions & Answers

To remove carriage return between the line

Hi, I have a situation where I need to remove the carriage return between the lines. For.eg. The input file: 1,ad,"adc sdfd",edf 2,asd,"def fde",asd The output file should be 1,ad,adc sdfd,edf 2,asd,def fde,asd Thanks Shash (5 Replies)
Discussion started by: shash
5 Replies

5. Shell Programming and Scripting

add carriage return at end of file

Hi I would like to add carriage return at end of file, because we need to mask the customer names for detailed records. Some what the file doesnot have carriage at end of line of last record.So that i 'll get 2 records when use ---aa.txt----- 1|aaa|bbb|ccc 2|bbbb|hghgh|ggg 000002 tail... (2 Replies)
Discussion started by: HAA
2 Replies

6. UNIX for Advanced & Expert Users

Padding Carriage return to the end of XML file

Hi All, I am getting a xml file where the first field contains a carriage return and the all other fields doesnot contains any carriage return. So all the other records comes in the second line. <?xml version="1.0" encoding="UTF-8"?> <ns0:iSeriesCspIntegration... (3 Replies)
Discussion started by: dasj22
3 Replies

7. Shell Programming and Scripting

Insert a line including Variable & Carriage Return / sed command as Variable

I want to instert Category:XXXXX into the 2. line something like this should work, but I have somewhere the wrong sytanx. something with the linebreak goes wrong: sed "2i\\${n}Category:$cat\n" Sample: Titel Blahh Blahh abllk sdhsd sjdhf Blahh Blah Blahh Blahh Should look like... (2 Replies)
Discussion started by: lowmaster
2 Replies

8. Shell Programming and Scripting

Need a carriage return at end of each line

Hi All, I am reading two files and writing out the file name and count of lines in each file to an output file. My script looks like this: echo "input_file1.out;`wc -l < input_file1.out | sed 's/^]*\(.*\)]*$/\1/'` " > comp_file1.out echo "input_file2.out;`wc -l < input_file2.out | sed... (2 Replies)
Discussion started by: Hangman2
2 Replies

9. Shell Programming and Scripting

A variable is including the Carriage Return char...

Hi all, I'm reading a file with this layout: First_Col Second_Col The Second_Col has values as 1000, -1, 10, 43... While reading the file I'm getting the second column value with awk command, but it is including the CR control char. do item_saved=`echo $b | awk '{print... (4 Replies)
Discussion started by: mrreds
4 Replies

10. Shell Programming and Scripting

line carriage return characters

Hi, I would like to insert the line carriage retrun characters on each line. (2 Replies)
Discussion started by: koti_rama
2 Replies
XFM_DEV(5)								XFM								XFM_DEV(5)

NAME
/etc/X11/xfm/xfm_dev - xfm device configuration DESCRIPTION
When starting xfm(1) - the X file and application manager - reads this file to determine mount and umount commands for specific directo- ries. FORMAT
One entry per line. Lines starting with a hash (#) and empty lines are ignored. Each line consists out of three or four fields, separated by colons (:). Backslashes and colons within those fields have to be escaped using backslashes. FIELDS
directory The first field describes which directory this entry is about. If this this directory or and child directory of this is opened, while no other one is open, the mount command is executed. If the last file window showing this directory or a child thereof, the unmount command is executed. This field can also be the special string GETFSENT, which is described in a special paragraph below. mount command The second field is the command to execute for mounting. It is given the shell as one argument after a -c. unmount command The third field is the command to execute for unmounting. It is given the shell as one argument after a -c. icon The fourth field is optional. It is only used to specify an icon for the 0 No icon field is equivalent to an icon field containing dev_disk.xpm, which differs from an empty icon field. (See xfm(5)). automatic configuration via GETFSENT If the first field of an entry is the special string GETFSENT, and the systen xfm was compiled on had a fstab.h file, the getfsent(3) func- tion is used to get mount point information. Every mount point which contains a mount option starting with user. (like user, or users) for which no specification does yet exists is added to the list. mount and unmount command These commands are expanded with a space and the directory in question and the result is handled a in the normal case. This needs some fixing with directories containing spaces. icon field The icon field can in this case be appended by an arbitrary number of rules of the form ,fstype=iconname If the filesystem has type fstype, the icon iconname is used instead. EXAMPLES
/media/cdrom:mount /media/cdrom:umount /media/cdrom:cdrom.xpm /floppy:mount /floppy:umount /floppy GETFSENT:mount:umount:dev_disk.xpm,iso9660=dev_cdrom.xpm,ext2=bla.xpm FILES
$HOME/.xfm/xfm_dev Unless otherwise specified in the X resources, this is the first location xfm looks for this file. /etc/X11/xfm/xfm_dev Unless otherwise specified in the X resources, this file is tried when the previous could not be read. /etc/fstab This is the file getfsent most likely gets its information from. SEE ALSO
xfm(1), mount(8), getfsent(3). xfm 20 April, 2006 XFM_DEV(5)
All times are GMT -4. The time now is 05:01 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy