Anyone know how to use SED to append a comma to the end of each line
example:
field1,field2,field3,field4
If i Cat /textfile ---- How can i append the end of /textfile with a comman? (8 Replies)
My data is xml'ish (here is an excerpt) :-
<bag name="mybag1" version="1.0"/>
<contents id="coins"/>
<bag name="mybag2" version="1.1"/>
<contents id="clothes"/>
<contents id="shoes"/>
<bag name="mybag3" version="1.6"/>
I want to delete line containing mybag2 and its subsequent... (5 Replies)
Hi!
From a file like this one :
hello
...
PATTERN1
...
lines between patterns
..
PATTERN2
...
I would like to extract only the lines between patterns, probably with awk I think?
Thanks a lot for your help,
Tipi (5 Replies)
Hi,
Here is a sample of my Test File
$ cat TestFile1
Prompt Table DQZ_ALTER_SCHEMA_ID;
ALTER TABLE DQZ.DQZ_ALTER_SCHEMA_ID MONITORING;
ALTER TABLE DQZ.DQZ_ALTER_SCHEMA_ID STORAGE ( NEXT 3464K );
Prompt Table DQZ_ALTER_SCHEMA_ID;
ALTER TABLE DQZ.DQZ_ALTER_SCHEMA_ID
MOVE LOB... (16 Replies)
Hi,
I have a file like below:
.
.
.
.
Jack is going home
Jack is going to school
Jack is sleeping
Jack is eating dinner
John is going home
John is eating breakfast
.
.
.
The specific line is:
Jack is going home (2 Replies)
Hi,
I've spent some time researching for this but can't seem to find a solution. I have a file like this
1234|Test|20101111|18:00|19:00There will be multiple lines in the file with the same kind of format. For every line I need to make it this
1234|Test|20101111|18:00|19:00||create... (5 Replies)
Hi all!
How can I delete all the text starting from <string1> to <string2> in all the .txt files of the folder "FOLDER" ?
Thanks a lot!
mjomba
...
</s>
<s>
<w></w>
</s>
<s>
...
to get: (1 Reply)
I've scoured the internet with mixed results. As an amateur I turn to the great minds here.
I have a text file of 80 or so lines. I want to add ".pdf" to the end of each line. (For now that's it)
Most of the internet points toward using "sed". I don't know coding but can figure things out... (4 Replies)
not getting anywhere with this
an xml file contains multiple clients set up with same tags, different values.
I need to parse the file for client foo, and change the value of tag "64bit" from false to true.
cat clients.xml
<Client type"FIX">
<ClientName>foo</ClientName>... (3 Replies)
Version: RHEL 6.5
In the below text file, I want to find the lines which has the string JOHN , KATE and STEVE in it.
The logic is to grep with an AND condition ie. get all lines with JOHN AND KATE AND STEVE
$ cat sometext.txt
PHILIP worked in HR
JOHN along with KATE fixed several IT... (4 Replies)
Discussion started by: John K
4 Replies
LEARN ABOUT MOJAVE
locale
LOCALE(1) BSD General Commands Manual LOCALE(1)NAME
locale -- display locale settings
SYNOPSIS
locale [-a|m]
locale [-ck] name [...]
DESCRIPTION
locale displays information about the current locale, or a list of all available locales.
When locale is run with no arguments, it will display the current source of each locale category.
When locale is given the name of a category, it acts as if it had been given each keyword in that category. For each keyword it is given,
the current value is displayed.
OPTIONS -a Lists all public locales.
-c name ...
Lists the category name before each keyword, unless it is the same category as the previously displayed keyword.
-k name ...
Displays the name of each keyword prior to its value.
-m Lists all available public charmaps. Darwin locales do not support charmaps, so list all CODESETs instead.
OPERANDS
The following operand is supported:
name is the name of a keyword or category to display. A list of all keywords and categories can be shown with the following command:
locale -ck LC_ALL
ENVIRONMENT
LANG Used as a substitute for any unset LC_* variable. If LANG is unset, it will act as if set to "C". If any of LANG or LC_* are
set to invalid values, locale acts as if they are all unset.
LC_ALL Will override the setting of all other LC_* variables.
LC_COLLATE Sets the locale for the LC_COLLATE category.
LC_CTYPE Sets the locale for the LC_CTYPE category.
LC_MESSAGES Sets the locale for the LC_MESSAGES category.
LC_MONETARY Sets the locale for the LC_MONETARY category.
LC_NUMERIC Sets the locale for the LC_NUMERIC category.
LC_TIME Sets the locale for the LC_TIME category.
SEE ALSO localedef(1), localeconv(3), nl_langinfo(3), setlocale(3)STANDARDS
The locale utility conforms to IEEE Std 1003.1-2001 (``POSIX.1'').
HISTORY
locale appeared in Mac OS X 10.4
Darwin August 27, 2004 Darwin