Search Results

Search: Posts Made By: thegeek
1,422
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.
2,253
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
36,086
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..
3,586
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.
11,380
Posted By thegeek
try this way ( doublequotes ) for F in...
try this way ( doublequotes )

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

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

for more details, refer man scp
20,469
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...
6,920
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...
3,417
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
38,588
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 ?!!
3,734
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...
13,055
Posted By thegeek
if is a conditional statement not looping ! ...
if is a conditional statement not looping !

while, for are loop statements...
900
Posted By thegeek
Crontab Code Generator...
Crontab Code Generator (http://www.openjs.com/scripts/jslibrary/demos/crontab.php)
1,173
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.";
1,574
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
17,588
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/...
2,165
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 !
2,809
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
4,455
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,889
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.
2,269
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[$_] );
...
30,787
Posted By thegeek
it is -mmin -15 for within 15 minutes.
it is -mmin -15 for within 15 minutes.
1,580
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

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