batch file using sed command in msdos


 
Thread Tools Search this Thread
Top Forums UNIX for Dummies Questions & Answers batch file using sed command in msdos
# 1  
Old 01-15-2008
batch file using sed command in msdos

<! pad_meth: <! program = "/usr/lib/drivers/pse/x29d -p"

how should i program it in oder to display this:

<! pad_meth:
<! program = "/usr/lib/drivers/pse/x29d -p"


Smilie
# 2  
Old 01-15-2008
one way
Code:
sed "s/: </: \n</" file

 
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

sed batch file issue

Hi!! I want to create a batch file so the sh file could change a file on a specific time. I made this config: sed -i 's/range 192.168.1.200 192.168.1.220;/option POLYCOM "tftp://10.20.1.10";/g' /etc/dhcp3/dhcpd.conf My issue is that the sed does not accept the :// character.... (2 Replies)
Discussion started by: jocas9
2 Replies

2. UNIX for Dummies Questions & Answers

Script batch with command sed

hi, i have a folder with 2000 text file where each file contain a string. i need to trasform this string like this: example of file : My name is Mark and I'm a child the new file must be: insert into tabella ('My name','My name is Mark and I'm a child'); where the first column is a... (11 Replies)
Discussion started by: yo-yo78
11 Replies

3. Shell Programming and Scripting

Sed or awk for batch replace file name

Can you please point me in the correct direction? I need a line or script to run though a given directory and find all files with "@domain.local" in there names and simple remove that. For example if the files were named 1234@domain.local the file would then become 1234. (1 Reply)
Discussion started by: binary-ninja
1 Replies

4. Shell Programming and Scripting

try to batch rename using sed (if this is best)

hi gooday I need some help with a rename I am attempting. I'd like to rename a bunch of files in a folder example list.dat.old to list_N.dat query.dat.old to query_N.dat note the two periods in (.dat.old) to become _N.dat I tried using sed like this ls *.dat.old | sed... (3 Replies)
Discussion started by: johnstrong
3 Replies

5. Windows & DOS: Issues & Discussions

How to call a command in a batch file?

Hi, I would like to get the output of below command emailed to me in a windows2003 server. "bpimagelist -hoursago 24 -U" I will be using "blat" to email the output of this command.But not sure how the above command is called for in a batch file when executed. Would appreciate if... (1 Reply)
Discussion started by: Hari_Ganesh
1 Replies

6. Shell Programming and Scripting

use sed do batch wildcard string replace

Hi, Here is what I want to do I want to search local directory and its sub directory, all the files which contain any string like _12345, then remove this string. String is a combination of _ plus a random integer number. For example, here is one line in a file before <properties... (1 Reply)
Discussion started by: bp5000
1 Replies

7. Windows & DOS: Issues & Discussions

Evaluate uUNIX and MSDOS shell script features

I need to select the main features of shell scripting on UNIX and evaluate their MSDOS equivalent. can anyone suggest some online resources articles anything?? Thanks in advance (0 Replies)
Discussion started by: deemon111
0 Replies

8. UNIX for Dummies Questions & Answers

use winDiff in msdos

compare A.txt with B.txt using windiff and display an output of no configuration found if both txt file is the same and the output will display the differences if the files are different. how should i program it by using sed.exe and winDiff.exe? (3 Replies)
Discussion started by: rita1985
3 Replies

9. Windows & DOS: Issues & Discussions

MSDOS RESTORE (pre-1995)

I realise that this is probably not the best place to ask DOS questions, but I wouldn't have a clue where to post DOS-related matters The inevitable has happened and I've been asked to restore some files from a 23/11/1995 MSDOS backup (I think it was DOS 5.x or 6.x at the time). I'm... (1 Reply)
Discussion started by: mfreemantle
1 Replies

10. UNIX for Dummies Questions & Answers

UNIX Batch FTP Command file

Hello, I am a UNIX newbie and this is my first posting. I need to create a batch command file to ftp from Sun/Solaris to AS/400. Here is an example file: ftp -d -i -n -v 172.28.16.22 pwd ls binary quit This is the result of executing the command file: Connected to... (10 Replies)
Discussion started by: pietro
10 Replies
Login or Register to Ask a Question