Search Results

Search: Posts Made By: Knotty
2,546
Posted By Knotty
Thanks reborg and AWK for your replies. I did not...
Thanks reborg and AWK for your replies. I did not know about tar. This does the trick for me. I gathered them together with tar and zipped them up with gzip. Transfered without any fuss.

Everyday...
2,546
Posted By Knotty
So you're saying that if a directory(folder) is...
So you're saying that if a directory(folder) is holding say 50 files in say ten sub-directories then the only option to transfer these files onto a local machine is to go into each sub-directory and...
2,546
Posted By Knotty
ftp help
Does anyone know why I can't transfer a directory containing files from a remote directory to a local directory using psftp. If I take the file out of the directory but put it in the same place as...
2,289
Posted By Knotty
That's the job. Thanks for the quick reply.
That's the job. Thanks for the quick reply.
2,289
Posted By Knotty
Date format
Hi,
I am trying to get a date printed in the following format:
dd/mm/yyyy.
I have used the date +%d/&m/%y and with this I get dd/mm/yy. Only the two year digits. Does anyone know how I can expand...
4,715
Posted By Knotty
It's alright folks, after messing about with...
It's alright folks,

after messing about with the script a bit I figured it out.

Just use the positional parameter as an argument to the function as so:

display_file $1
4,715
Posted By Knotty
Pass argument to function
Hi,
Can someone please explain to me how I can get a function to recognize a file given as an argument to a script.

Suppose the script has the argument as follows:

sh script file

and the...
16,921
Posted By Knotty
Yeah thanks reborg. I was thinking that there was...
Yeah thanks reborg. I was thinking that there was something that I was doing wrong. The positional parameter referencing thinglymijig. Thanks again.
16,921
Posted By Knotty
passing variable to function
Hi,

I am trying to sum up numbered columns and in order to tidy up the program I have wrote a function to do the adding of some numbers. I have a problem though with passing a variable to the...
9,203
Posted By Knotty
but what if I need more fields depending on the...
but what if I need more fields depending on the number of fields in the variable?
9,203
Posted By Knotty
Can a variable be used as a cut fieldname parameter?
Hi,

Is it possible to use a variable as a fieldname parameter for the cut command. I am trying to extract fields from a variable. Say that I want to cut the fields 1,3,5,7,9, etc, but I don't...
Showing results 1 to 11 of 11

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