02-21-2019
Quote:
Originally Posted by
Don Cragun
Hi Marquez3105,
What we need you to put between the CODE tags is the contents of the file you are trying to process. We do not want you to be setting x-small font size, your choice of font family, your other WYSIWIG formatting to make the file contents look pretty; we just want the contents of the file.
Please try again without all of the WYSIWIG formatting that is making it impossible for us to figure out what data you are really trying to process.
I had similar issues in the past when using "Enhanced Interface" editor when posting.
Marquez3105,
go to
UserCP->EditOptions and under
Message Editor Interface chapter and under
Message Editor Interface: choose
Standard Editor - Extra Formatting Control.
Then
Save Changes when done.
Then re-post your sample data within code tags.
Hope it helps
10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Please i need your help.
i made this script with awk, this scripts count and list a pattern for each directory in the output as shown. but not as desired. i want the output will be listed in a tabular way, using awk:
cuenta_cdrs()
{
for dir in *
do
cd $dir
for file in *
do
... (4 Replies)
Discussion started by: alexcol
4 Replies
2. Shell Programming and Scripting
Guys,
I have a script which hits the database and pulls the information that I need into files. Now I want to format these files to make them easy to read.
The sample format of the file will be like....
<Start_of_File>
Header1 .....xsdfsfa...adfa......
Header2 ....afefas .aefaefsdf...... (8 Replies)
Discussion started by: bperl
8 Replies
3. Shell Programming and Scripting
I'm using AIX 5.3 and running a awk replace to modify data as follows:
echo 1234: 1234 123 123 444 555 666 7777 | awk '/^:/{split($2,N);n=N} {n=$1} {sub(n,n+10000000)}1'
10001234 1234 123 123 444 555 666 7777
dumb question.. how do I get the colon back in, so it outputs
10001234: 1234... (4 Replies)
Discussion started by: say170
4 Replies
4. Shell Programming and Scripting
Hi All,
I have around 900 Select Sql's which I would like to run in an awk script and print the output of those sql's in an txt file.
Can you anyone pls let me know how do I do it and execute the awk script? Thanks. (4 Replies)
Discussion started by: adept
4 Replies
5. Shell Programming and Scripting
I have a flat file A.txt with field seperate by a pipe
2012/11/13 20:06:11 | 284:hawk pid=014268 opened Locations 12, 13, 14, 15 for /home/hawk_t112/t112/macteam/qt/NET12/full_ddr3_2X_FV_4BD_1.qt/dbFiles/t112.proto|2012/11/14 15:19:26 | still running |norway|norway
2012/11/14 12:53:51 | ... (6 Replies)
Discussion started by: sabercats
6 Replies
6. Shell Programming and Scripting
GOODNUMBERS="1 2 3 4 5 6 3 3 34 34 5 66 12"
BADNUMBERS="7 3 12 5 66"
for eachnum in `echo ${GOODNUMBERS}`
do
echo ${BADNUMBERS} | gawk -v threshold=${eachnum} '$1 != threshold'
done
what im trying to do with the above is, i want to print numbers that are in the GOODNUMBERS... (10 Replies)
Discussion started by: SkySmart
10 Replies
7. Shell Programming and Scripting
Hi all,
I'm fairly new to this and learning along the way, so bare with me...
I'm trying to format the output from a script to be more read-friendly.
The output contains more servers and more processes but for as example it will do:
Server: Test1
... (4 Replies)
Discussion started by: Bobsonm
4 Replies
8. Shell Programming and Scripting
Hi,
I have a text file with some thousands of rows of the following kind (this will be referred to as the inputFileWithColorsAndNumbers.txt):
Blue 6
Red 4
Blue 3
Yellow 4
Red 7
Colors in the left column and a number in the right one for each line. I want to run an awk... (5 Replies)
Discussion started by: Zooma
5 Replies
9. UNIX for Dummies Questions & Answers
Hi,
Is there anyway to combine output from the awk scripting.
file01.txt:
AUE_CHMOD
AUE_CHOWN
AUE_CHROOT
AUE_CONNECT
AUE_ACCEPT
AUE_FCHOWN
AUE_FCHMOD
AUE_SETREUID
AUE_SETREGID
AUE_FCHROOT
AUE_PFEXEC
AUE_SETUID
AUE_NICE
AUE_SETGID (9 Replies)
Discussion started by: alvinoo
9 Replies
10. UNIX for Beginners Questions & Answers
I'm trying to create a shell script that takes a awk script that I wrote and a filename as an argument. I was able to get that done but I'm having trouble figuring out how to keep the header of the output at the top but sort the rest of the rows alphabetically. This is what I have now but it is... (1 Reply)
Discussion started by: Eric7giants
1 Replies
LEARN ABOUT OSX
svk::editor::merge
SVK::Editor::Merge(3) User Contributed Perl Documentation SVK::Editor::Merge(3)
NAME
SVK::Editor::Merge - An editor that does merges for the storage editor
SYNOPSIS
$editor = SVK::Editor::Merge->new
( anchor => $anchor,
base_anchor => $base_anchor,
base_root => $fs->revision_root ($arg{fromrev}),
target => $target,
storage => $storage_editor,
%cb,
);
DESCRIPTION
Given the base root and callbacks for local tree, SVK::Editor::Merge forwards the incoming editor calls to the storage editor for modifying
the local tree, and merges the tree delta and text delta transparently.
PARAMETERS
options for base and target tree
anchor
The anchor of the target tree.
target
The target path component of the target tree.
base_anchor
The anchor of the base tree.
base_root
The root object of the base tree.
storage
The editor that will receive the merged callbacks.
allow_conflicts
Close the editor instead of abort when there are conflicts.
open_nonexist
open the directory even if cb_exist failed. This is for use in conjunction with SVK::Editor::Rename for the case that a descendent
exists but its parent does not.
inspector
The inspector reflecting the target of the merge.
callbacks for local tree
Since the merger needs to have information about the local tree, some callbacks must be supplied.
cb_rev
Check the revision of the given path.
cb_conflict
When a conflict is detected called with path and conflict type as argument. At this point type can be either 'node' or 'prop'.
cb_prop_merged
Called when properties are merged without changes, that is, the "g" status.
cb_merged
Called right before closing the target with changes flag, node type and ticket.
cb_closed
Called after each file close call.
BUGS
Tree merge
still very primitive, have to handle lots of cases
perl v5.10.0 2008-08-04 SVK::Editor::Merge(3)