---------- Post updated at 12:53 PM ---------- Previous update was at 12:27 PM ----------
I have an additional question
How can I find the longest field length. Here for example, the longest fields is of length 5.
---------- Post updated at 02:07 PM ---------- Previous update was at 12:53 PM ----------
I have now upgraded my work so that I create a table with the fields as I want.
The new code is shown. I have one little small problem that occasionally everything is shifted and would like to resolve this problem.
As the total width for fold is 80, I do not want fold to do anything but keep that field on one line instead of splitting it up.
Using for example
gives
If field is longer than 80, for example,
I get
But when I use
I am getting
As you can see, sometimes the table get all messed up
Hi all, looking for some help here. I'm what you'd call a dirty programmer. my shell scripts might be ugly, but they (usually) function...
Say I have a single column text file with a list of dates (yyyymmdd) that represent the elevation of a point on that date (I work with land subsidence, so... (2 Replies)
I have a list below, how can I have things separated nicely in columns
mv browseDir.tcsh browseDir.csh
mv checkSRDist.tcsh checkSRDist.csh
mv create-data-tinv.tcsh create-data-tinv.csh
mv createDocs.tcsh createDocs.csh
mv createMisfit.tcsh createMisfit.csh
mv createModel.tcsh... (4 Replies)
I'm somewhat new to BASH scripting but have managed to work my way through most of a problem. I'm trying to get a list of filenames where a column header occurs and any value in that column is within a range.
So far I can sort through the list of files in a directory specified by the user, find... (5 Replies)
EDIT : This is for perl
@data2 = grep(/$data/, @list_now);
This gives me @data2 as
Printing data2 11 testzone1 running /zones/testzone1 ***-*****-****-*****-***** native shared
But I really cant access data2 by its individual elements.
$data2 is the entire list, while $data,2,3...... (1 Reply)
Hi,
I need to go through all the files on my system and build a list/output file with the paths of all files where the first two characters within the file match an expression.
I know I can use something like
find . | xargs cut -b1-2
or
find . -exec cut -b1-2 {} \;
to get the characters... (3 Replies)
Hi there!
I have 150 txt files named chunk1, chunk2, ........., chunk150. I have a second file called string.txt with more than 1000 unique strings, house, dog, cat ... I want to know which command I should use to count how many times each string appears in the 150 files.
I have tried... (4 Replies)
I'm trying recall how to set up a script to have mailx read a mailing list of people to recieve a message.
I had set up the script to have every name inside but the list could grow and/or change.
can any one help?
I'm using HPUX 11 on a rp7410. (6 Replies)