Visit Our UNIX and Linux User Community

Search Results

Search: Posts Made By: thegeek
598
Posted By thegeek
try giving absolute path for both commands and...
try giving absolute path for both commands and file names.

Or export PATH with proper path.
1,362
Posted By thegeek
Write the o/p as CSV file "col1", "col 2",...
Write the o/p as CSV file

"col1", "col 2", "col 3"

And while opening it as spreadsheet chose proper delimiters..
Or show us what the script prints.. So that it can be corrected.
Forum: What is on Your Mind? 03-02-2012
20,250
Posted By thegeek
Partnering with other top Unix/Linux sites may...
Partnering with other top Unix/Linux sites may help in promoting this forum to more relevant people..
2,314
Posted By thegeek
-o, --only-matching Print only...
-o, --only-matching
Print only the matched (non-empty) parts of a matching line, with each such part on a separate output line.
7,959
Posted By thegeek
try this way ( doublequotes ) for F in...
try this way ( doublequotes )

for F in "$FILES"
1,247
Posted By thegeek
diskquota's are for storage space - secondary...
diskquota's are for storage space - secondary memory ( normally hard disk ). not for memory !!
1,498
Posted By thegeek
redirect stderr .. cp filea fileb...
redirect stderr ..

cp filea fileb 2>/dev/null
1,796
Posted By thegeek
use -r option to recursively copy directories.. ...
use -r option to recursively copy directories..

for more details, refer man scp
14,060
Posted By thegeek
That should show the date & time... Otherwise try...
That should show the date & time... Otherwise try this:

export HISTTIMEFORMAT='%F %T '

This is just mentioning about the history time format... You'll have to execute ''history'' command to see...
4,470
Posted By thegeek
Are you sure the 3rd party application writes...
Are you sure the 3rd party application writes everything to STDOUT ? Bcoz, you are likely to miss the stuffs printed on STDERR ... But when you execute manually and see output you are likely to miss...
2,242
Posted By thegeek
1. use code tags 2. wrap the conditional with...
1. use code tags
2. wrap the conditional with while loop but this would never end ! If it matches, break... But it would never end if you dont try to change the content in else statement.
while...
Forum: Ubuntu 01-20-2012
20,321
Posted By thegeek
AFAIK, md5sum is the command which calculates the...
AFAIK, md5sum is the command which calculates the md5 !

May be i'm wrong...
But can you explain If that command is not available how are you telling that both differs ?!!
2,579
Posted By thegeek
using the known distribution / family is better...
using the known distribution / family is better than searching for a suitable small distribution..

IMHO, If you know / used ubuntu / debian family systems earlier and have some experience, then it...
8,706
Posted By thegeek
if is a conditional statement not looping ! ...
if is a conditional statement not looping !

while, for are loop statements...
567
Posted By thegeek
Crontab Code Generator...
Crontab Code Generator (http://www.openjs.com/scripts/jslibrary/demos/crontab.php)
731
Posted By thegeek
Not sure. But anyway following line misses...
Not sure.

But anyway following line misses newline - try with newline.

print "CRITICAL: Timeout expired (${timeout}s) before server responded.";
890
Posted By thegeek
https://www.unix.com/answers-frequently-asked-quest...
https://www.unix.com/answers-frequently-asked-questions/13785-yesterdays-date-date-arithmetic.html
10,526
Posted By thegeek
It is because find command is not executed, and...
It is because find command is not executed, and it is considered as string.

To execute use either $() or backticks.

And also please use code tags !!

This should work:
for f in $(find /tmp/...
1,486
Posted By thegeek
grep -A 5 'How are you' FILENAME | tail -6 ...
grep -A 5 'How are you' FILENAME | tail -6

Replace FILENAME with your filename. I hope you have the -A option in grep !
1,990
Posted By thegeek
may be go through some of the tools listed here ...
may be go through some of the tools listed here

https://bitbucket.org/stepancheg/mysql-diff/wiki/Related
3,574
Posted By thegeek
Try :X option in vim. :X Prompt...
Try :X option in vim.



:X Prompt for an encryption key. The typing is done without showing the
actual text, so that someone looking at the display won't see it.
1,074
Posted By thegeek
If you are asking about, not allowing the user to...
If you are asking about, not allowing the user to go to any other directory. Then it is worth to have a look at restricted shell.
1,256
Posted By thegeek
Here is another way: @line1 = split /,/,...
Here is another way:


@line1 = split /,/, <DATA>;
@line2 = split /,/, <DATA>;

for (0..$#line1) {
if ( $line1[$_] =~ /^\s*$/ ) {
print $line2[$_] if ( defined $line2[$_] );
...
25,063
Posted By thegeek
it is -mmin -15 for within 15 minutes.
it is -mmin -15 for within 15 minutes.
1,003
Posted By thegeek
to make it more clear cp $a $a_bkp You...
to make it more clear

cp $a $a_bkp

You dont have the $a_bkp variable -- do proper quoting according to your shell so that you get the $a value, and concatenate it with _bkp.
Showing results 1 to 25 of 500

 

Featured Tech Videos

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