Search Results

Search: Posts Made By: cfoxwell
10,531
Posted By cfoxwell
hmm the trouble is that the text will different...
hmm the trouble is that the text will different all the time, but I think that there will always be a common bit at the start on both lines.

1. ADDRESS1 then could be any text here
2.
3.
4....
10,531
Posted By cfoxwell
Cutting lines out using sed I presume.
Happy New Year!!!

I'm trying to cut out some text in a data file where I only want the first line and the last line.

For example.

1. Colin Was here <<-- Text I want to cut out
2. THIS IS...
25,711
Posted By cfoxwell
Finding out how long a command takes to run
Hi I am trying to find out the best way to find out how long a command takes to run in miliseconds ..

Is there such a way of doing this in Unix ?

Thanks
5,404
Posted By cfoxwell
Thanks, Your solution worked a treat... ...
Thanks,

Your solution worked a treat...

Many thanks for that.. One for my handy unix comands book I me thinks..

You have just saved me having to do 20.000 rows..

:-)
5,404
Posted By cfoxwell
Hmm might work, but I've forgot to say one...
Hmm might work, but I've forgot to say one thing..

The shell script that I can run from the command line, has $VAR1 $VAR2 $VAR3 $VAR4 inside the script. So when I run it from the unix prompt I...
5,404
Posted By cfoxwell
Batch file update
I have a data file with 4 columns of numbers with a space delimiters.

I have a script that I can run from the command line that will insert parameters directly on the command line. For example:
...
22,145
Posted By cfoxwell
Need to go back 1 day using the date command
I am trying to write a shell script to look at log files with dates in the file name.

Now I know how to use the expr command to subtract 1 day from the other, which is simple when the dates are...
4,189
Posted By cfoxwell
A godo AWK book I got was "THE AWK PROGRAMMING...
A godo AWK book I got was "THE AWK PROGRAMMING LANGUAGE" by Alfred V.Aho, Brian W Kernighahan, Peter J. Weinberger

ISBM 0-201-07981-X

It's got some cracking examples in there.. Not many pages,...
5,557
Posted By cfoxwell
Cron running shell scripts.
What are the rules of calling shell scripts in cron.

How do I go about setting up the correct PATHS that calls a script, which then calls another sub script all of which has to retain the orginal...
21,333
Posted By cfoxwell
no no.. Use sort first then spit the file...
no no.. Use sort first then spit the file afterwards..

Not sure how good sort is though, some version of unix will let you sort on date in the file.. You will have to do a man on sort to find out.
21,333
Posted By cfoxwell
You could check on the sort command..
You could check on the sort command..
3,527
Posted By cfoxwell
I presume that you are using a shell script to...
I presume that you are using a shell script to run this back up.

What you could do is to do a test condition on the last command to see if was a success. zero being a success and anything else a...
15,001
Posted By cfoxwell
And also don't forget to change it on a regular...
And also don't forget to change it on a regular basis, just in case someone has found it out.
3,024
Posted By cfoxwell
Kim, your gonna have to provide us with a bit...
Kim, your gonna have to provide us with a bit more information.. What are you trying to do etc what your using...

Cheers

Colin
3,065
Posted By cfoxwell
Re Awk Book.
Found a good book called 'The AWK Programming Language' by Alfred V.Aho, Brian W. Kernighan and Peter J Weinberger. (http://www.amazon.com/exec/obidos/ASIN/020107981X/silkroadcom)

It explains...
4,966
Posted By cfoxwell
Re here doc
Nice one thanks for the info.

Just one little extra question.

If I'm using FTP, and I want to sign in as another user other than myself with a password, does it work the same, or do I have to...
4,446
Posted By cfoxwell
Re
I think your using the wrong brackets..

You sould be using the ones { } and not ( )
4,966
Posted By cfoxwell
Here Doc (I think!)
Can someone explain to me how a here doc works.

I thought it was something like this

<<EOF
command
command
command
EOF

What I am trying to do is put a ftp commands into my shell...
4,446
Posted By cfoxwell
Re
Try this for example

cat FILE_NAME | awk '{print $1}' > ouput_file

This will take out the first field in FILE_NAME and put it in the output_file

Best bet is to look up awk, there are some...
3,065
Posted By cfoxwell
Is there online help for awk programming
Can anybody please supply me with a good url to get online help to awk programming, with good examples.

Yes I've taken that big step in trying to master 'awk' after being able to avoid it for the...
Showing results 1 to 20 of 20

 
All times are GMT -4. The time now is 02:17 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy