Unix/Linux Go Back    

Showing results 1 to 25 of 500
Search took 0.09 seconds.
Search: Posts Made By: matrixmadhan
Forum: UNIX for Beginners Questions & Answers Linux 01-09-2017
Replies: 5
Views: 304
Posted By matrixmadhan
I have added sample script for a single file,...

I have added sample script for a single file, please change it to multiple files like

ls file*

Please give it a try and let us know if there are any problems.
Forum: UNIX for Beginners Questions & Answers Linux 01-09-2017
Replies: 5
Views: 304
Posted By matrixmadhan
Please post what have you tried, where are you...

Please post what have you tried, where are you struck.

Here is a sample.

ls 12345-zxys.213423.zyz.txt | while read file
do
newfilename=`echo $file | sed 's/^.*-//'`
mv $file $newfilename...
Forum: UNIX for Beginners Questions & Answers Linux 01-06-2017
Replies: 3
Views: 313
Posted By matrixmadhan
I hope the process logs the info somewhere in...

I hope the process logs the info somewhere in designated log directory. If that is the case, parse the log file, fetch start and end time and compute the diff.
Forum: Shell Programming and Scripting Linux 01-06-2017
Replies: 8
Views: 392
Posted By matrixmadhan
Something like this, missing_file=$file1 ...

Something like this,


missing_file=$file1
echo $missing_file
Forum: Shell Programming and Scripting Linux 01-06-2017
Replies: 11
Views: 685
Posted By matrixmadhan
@RudiC @rbatte1 It was only a general...

@RudiC @rbatte1
It was only a general recommendation to use -C and that doesn't make sense to use it for files that are already compressed. Good catch!
Forum: Shell Programming and Scripting Linux 01-06-2017
Replies: 2
Views: 288
Posted By matrixmadhan
Can you please provide more context on this use...

Can you please provide more context on this use case?
Just to ensure that you are able to login to 100s of servers are you logging in everyday? Any other reason?
Forum: UNIX for Advanced & Expert Users Linux 01-06-2017
Replies: 1
Views: 367
Posted By matrixmadhan
Cp freezing from Seagate HDD to Win7

Hello all,

Earlier I had a mac book and created a HFS+ file system on Seagate 1 TB external HDD, copied around 200 GB content. Now, I have a Windows 7 machine and wanted to copy the HDD contents...
Forum: UNIX for Beginners Questions & Answers Linux 01-03-2017
Replies: 10
Views: 452
Posted By matrixmadhan
Welcome to the forum! Can you please show...

Welcome to the forum!

Can you please show what is that you have tried so far? Thanks

---------- Post updated at 02:37 PM ---------- Previous update was at 02:32 PM ----------

Here is a rough...
Forum: Shell Programming and Scripting Linux 01-03-2017
Replies: 11
Views: 685
Posted By matrixmadhan
The option -C enable compression on the fly for...

The option -C enable compression on the fly for scp command
Forum: Shell Programming and Scripting Linux 03-27-2015
Replies: 1
Views: 590
Posted By matrixmadhan
I think you should show us what have you tried so...

I think you should show us what have you tried so far and what is the problem with the approach
Forum: Shell Programming and Scripting Linux 03-25-2015
Replies: 3
Views: 602
Posted By matrixmadhan
Looking for something like this, read...

Looking for something like this,

read password < /dev/tty
Forum: Shell Programming and Scripting Linux 03-25-2015
Replies: 4
Views: 858
Posted By matrixmadhan
Not sure I got your question, can you please...

Not sure I got your question, can you please rephrase or give an example? Thanks
Forum: UNIX for Dummies Questions & Answers Linux 01-17-2014
Replies: 5
Views: 520
Posted By matrixmadhan
Please give it a try for yourself sample ...

Please give it a try for yourself

sample

ls -lrt | awk '$5 == 32 || $5 == 10 { print }'

ls -lrt | awk '$5 == 32 && $5 == 10 { print }'
Forum: UNIX for Dummies Questions & Answers Linux 01-17-2014
Replies: 5
Views: 520
Posted By matrixmadhan
Sample ls -lrt | awk '$5 == 32 { print }'

Sample

ls -lrt | awk '$5 == 32 { print }'
Forum: UNIX for Dummies Questions & Answers Linux 01-17-2014
Replies: 5
Views: 520
Posted By matrixmadhan
Please post what have you tried?

Please post what have you tried?
Forum: Shell Programming and Scripting Linux 01-14-2014
Replies: 7
Views: 1,260
Posted By matrixmadhan
If that's an authorized access then you might...

If that's an authorized access then you might potentially have web services with properly defined contracts for the APIs, which will give easier for accessing the link. Otherwise you will have to...
Forum: Shell Programming and Scripting Linux 01-14-2014
Replies: 7
Views: 1,260
Posted By matrixmadhan
Let me try to understand. First the link,...

Let me try to understand.

First the link, looks like its a gov link, please make sure that this is not confidential and in view of the terms and conditions / contract, if this is confidential and...
Forum: Shell Programming and Scripting Linux 01-14-2014
Replies: 7
Views: 1,260
Posted By matrixmadhan
Yes, its still difficult for me to understand....

Yes, its still difficult for me to understand. Lets try this, please post a sample input and output that you are looking for, then we can take it from there.
Forum: UNIX for Dummies Questions & Answers Linux 01-14-2014
Replies: 10
Views: 804
Posted By matrixmadhan
ctsgnb@ That's right. I guess its sufficient to...

ctsgnb@ That's right. I guess its sufficient to give pointers or versions, its upto the OP to tweak it and get it done. Its not requirement, product delivery contract :)
Forum: UNIX for Dummies Questions & Answers Linux 01-13-2014
Replies: 10
Views: 804
Posted By matrixmadhan
awk '{ if ( $1 > $2 ) { arr[$2$1] += $3 } else {...

awk '{ if ( $1 > $2 ) { arr[$2$1] += $3 } else { arr[$1$2] += $3 } }END{ for (i in arr) { print i, arr[i] } }' file
Forum: Shell Programming and Scripting Linux 01-13-2014
Replies: 2
Views: 2,139
Posted By matrixmadhan
Why do you think DDL on a table to be done via...

Why do you think DDL on a table to be done via script? Is this going to be repeated activity?
Forum: UNIX for Advanced & Expert Users Linux 01-13-2014
Replies: 6
Views: 3,974
Posted By matrixmadhan
Errors are more important than output, catch them...

Errors are more important than output, catch them and use it appropriately.
Forum: UNIX for Advanced & Expert Users Linux 01-12-2014
Replies: 2
Views: 4,633
Posted By matrixmadhan
kill is to a process and to a thread spawned...

kill is to a process and to a thread spawned within the context of a process, should be controlled by that process if the signals/control are being triggered externally with respect to the process....
Forum: AIX Linux 01-12-2014
Replies: 2
Views: 1,094
Posted By matrixmadhan
As you know, the first thing that you have to do...

As you know, the first thing that you have to do before running code/script is to take a backup of that, its a fragile world. Wasn't that done?
Forum: Programming Linux 09-19-2013
Replies: 3
Views: 1,220
Posted By matrixmadhan
I did read that and that is the reason I have...

I did read that and that is the reason I have used that to normalize to a single time zone value whatever be the time zone value in the host from which its being run.

Still couldn't figure out a...
Showing results 1 to 25 of 500

 


All times are GMT -4. The time now is 05:27 PM.