Search Results

Search: Posts Made By: ting123
4,106
Posted By ting123
How to create a alias with an argument
If I want to create an alias called "cdr", and this alias need an argument (for example arg1)followed by "cdr", the result should go to the directory like "/home/ting/arg1/report/logs", the command...
1,613
Posted By ting123
ssh question
Dear all,

I have a question regarding the remote access a server without login using "ssh". I'm thinking if there is anyway to send a certificate pass to ssh command.

For example, I need...
1,793
Posted By ting123
Yeah, I forget the command "paste". Thanks. ...
Yeah, I forget the command "paste". Thanks. Before this, I used perl to instead of.
1,793
Posted By ting123
shell help - file combination
Dear all,

I have a question about merging multiple files to one.

For example, I have 4 files, named file_1, file_2, file_3 and file_4, they all have same line number, and only one word in each...
20,457
Posted By ting123
Is this command I can use? mail -s ... ...
Is this command I can use?

mail -s ...

Hope this is the one
20,457
Posted By ting123
How to attach a file in a email
Anyone can help me, in Unix, how can I attach a file in the email?

Thank
1,915
Posted By ting123
How to avoid historying my command
Dear all,

Normally unix automatically record up to 500 the command lines whatever I put in. Does anyone knows how I can avoid this record, in another word, I dont want system remember what I...
Forum: Open Source 04-07-2006
342,109
Posted By ting123
I'm a vi/vim fan ;)
I'm a vi/vim fan ;)
1,703
Posted By ting123
In this particular case, the line in the file is...
In this particular case, the line in the file is too long to over the "grep" command's limitation, so neither "grep" or "egrep" or "fgrep" won't work. That's why I need find out how to do it either...
1,703
Posted By ting123
the purppose I want is find the file which...
the purppose I want is find the file which contains a pattern in the file, not in the file name
1,703
Posted By ting123
help on awk
In a file directory, how can I only get the file-name which contains a pattern inside the file using awk?

for example, there are 3 text files in a directory,

file_1, file_2, file_3

I'd like...
5,236
Posted By ting123
search and grab data from a huge file
folks,

In my working directory, there a multiple large files which only contain one line in the file. The line is too long to use "grep", so any help?

For example, if I want to find if these...
6,016
Posted By ting123
that's right, I missed """, thanks.
that's right, I missed """, thanks.
6,016
Posted By ting123
help on sending mail in ksh
folks,

I wrote a script like follow for sending notification email, but the problem is cannot pass the multiple words to the subject line, any help:

=======================================...
8,862
Posted By ting123
Thank you! :)
Thank you! :)
8,862
Posted By ting123
globle replace comand in VI editor
Folks,

How can I do a globe search & replace in VI editor? Any help?

Thanks.
1,489
Posted By ting123
Because I got a wrong anwser when I put that into...
Because I got a wrong anwser when I put that into my shell script, but somehow, now I find an answer based on your "sed", but I will try the "awk" later, it's easier to understand, also for the later...
1,489
Posted By ting123
sed/awk help again
How about in more complicate case, like if the string is:

$HOME/client/log/aaa_bbb_ccc

and I only want get substring "bbb", what should I do?

Thank in advance

Best :)
2,515
Posted By ting123
Yeah, actually me too, and that one is easier for...
Yeah, actually me too, and that one is easier for me the understand :)

But yours works well too, Thanks
2,515
Posted By ting123
How about in more complicate case, like if the...
How about in more complicate case, like if the string is:

$HOME/client/log/aaa_bbb_ccc

and I only want get substring "bbb", what should I do?

Thank in advance

Best
2,515
Posted By ting123
Your comment is really big help, tmarikle! Thank...
Your comment is really big help, tmarikle! Thank you sooooooooo much!!!

Best :)
2,515
Posted By ting123
thank you for you quick reply, tmarikle!!!! ...
thank you for you quick reply, tmarikle!!!!

I've tried it, and works perfectly! but those chars really confused me. don't have clue how it works.

I need time to dig into it.

Best ;)
2,515
Posted By ting123
sed/awk help
I'm new for sed/awk. please help:

If I have a passing parameter like "aa_bbb_ccc", how can I only catch the string "bbb", because I only need this part to asign to another variable.

Thanks
1,641
Posted By ting123
I found out the answer, using 'xargs', the...
I found out the answer, using 'xargs',

the command should be:

ls | tail -1 | xargs tail -1


Thanks, everybody
1,641
Posted By ting123
a shell script help
Question, please help.

I'd like to write a shell script, if use command line, should be two commands:

1, ls | tail -1
2, tail the last line of the file which is output of the line one

Could...
Showing results 1 to 25 of 25

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