I have a current code working(named subst1) having a user be able to type this line to substitute words using the sed command:
subst1 old-pattern new-pattern filename
Here is my shell script:
#!/bin/bash
# subst1
ARGS=3
E_BADARGS=65
if
then
echo "Usage: `basename $0`... (1 Reply)
Hey everybody
I need some help on how to order the data in file such as a file have first name last name and city and i would like to order them to in the same order by using sed
thanks alot for your time (6 Replies)
Hi folks, maybe somebody here can help me.
I have 2 files. File A and File B. File A contains URLs leading to files on the Internet, with one URL per line; The format of the URLs on each line in File A is .
File B contains only the filenames from each line in File A; One filename per line.
... (11 Replies)
Hi all,
I have files with the following names;
afgcxa.pem4jan.rain.nc
afgcxa.pem4feb.rain.nc
afgcxa.pem4mar.rain.nc
afgcxa.pem4apr.rain.nc
I want to rename them to
afgcxa.pem4-01.jan.rain.nc
afgcxa.pem4-02.feb.rain.nc
afgcxa.pem4-03.mar.rain.nc ... (5 Replies)
Hi All,
Below is the script which i have written in cygwin:
#!/usr/bin/sh
fname=$1
cat $fname | sed 's/ //g' > fname1
for i in `cat $fname1`
do
echo $i > file1
#param1 is script name
param1=`awk -F , '{print $1}' file1`
param1="$param1.sql"
#param2 is BL
param2=`awk -F , '{print... (5 Replies)
Hi,
i want to replace sub text which is in the middle of long text.
let me be more clear with an example.
Here is the actual text in the xml file
<module-option name="principalDNSuffix">,cn=Users,dc=X,dc=Y</module-option>
Now, in the above text, i want to replace all the content lying... (3 Replies)
Generate a ddl file, we have a flat file which contains many commands like REM, CREATE table, TRuncate etc
This script should copy only create table statements to the ddl file.
Create stmts can be in a single or multiple lines.
ex:- INPUT FILE
create table tbl1
(fld1,... (5 Replies)
Hi, I want to read a file from the command line and remove all the spaces, tabs in it, replacing it with comma(,), and write it to a new file. can you help me out with this scenario. (1 Reply)
Use and complete the template provided. The entire template must be completed. If you don't, your post may be deleted!
1. The problem statement, all variables and given/known data:
Generalize your sub2 script, producing a new script sub3 that will apply a substitution to any number of files... (16 Replies)
Hi Guys,
I have a xml file as below where I need to find the particular XML tag(<dpath>) and delete the content of it.
<?xml version="1.0" encoding="UTF-8"?>
<title>XML</title><head>Ram</head><ControlCenter><doStatus>1</doStatus></ControlCenter><exitlabel>Gzip... (7 Replies)
Discussion started by: Vinoth Kumar G
7 Replies
LEARN ABOUT LINUX
groff_mmse
GROFF_MMSE(7) Miscellaneous Information Manual GROFF_MMSE(7)NAMN
groff_mmse - svenska mm makro for groff
SYNTAX
groff -mmse [ flaggor... ] [ filer... ]
BESKRIVNING
mmse ar en svensk variant av mm. Alla texter ar oversatta. En A4 sida far text som ar 13 cm bred, 3.5 cm indragning samt ar 28.5 cm hog.
Det finns stod for brevuppstallning enligt svensk standard for vanster och hogerjusterad text.
COVER kan anvanda se_ms som argument. Detta ger ett svenskt forsattsblad. Se groff_mm(7) for ovriga detaljer.
BREV
Tillgangliga brevtyper:
.LT SVV
Vansterstalld loptext med adressat i position T0 (vansterstallt).
.LT SVH
Hogerstalld loptext med adressat i position T4 (passar fonsterkuvert).
Foljande extra LO-variabler anvands.
.LO DNAMN namn
Anger dokumentets namn.
.LO MDAT datum
Mottagarens datum, anges under Ert datum: (LetMDAT).
.LO BIL strang
Anger bilaga, nummer eller strang med Bilaga (LetBIL) som prefix.
.LO KOMP text
Anger kompletteringsuppgift.
.LO DBET beteckning
Anger dokumentbeteckning eller dokumentnummer.
.LO BET beteckning
Anger beteckning (arendebeteckning i form av diarienummer eller liknande).
.LO SIDOR antal
Anger totala antalet sidor och skrivs ut efter sidnumret inom parenteser.
Om makrot .TP ar definierat anropas det efter utskrift av brevhuvudet. Dar lagger man lampligen in postadress och annat som brevfot.
SKRIVET AV
Jorgen Hagg, Lund, Sweden <Jorgen.Hagg@axis.se>
FILER
/usr/share/groff/1.18.1/tmac/tmac.mse /usr/share/groff/1.18.1/tmac/mm/se_*.cov
SE OCKSA groff(1), troff(1), tbl(1), pic(1), eqn(1)groff_mm(7)Groff Version 1.18.1 09 December 2001 GROFF_MMSE(7)