Search Results

Search: Posts Made By: replytoshishir
2,201
Posted By replytoshishir
you can try this... $FILE_NAME="abc.txt"; ...
you can try this...
$FILE_NAME="abc.txt";
$/="\n\n";

open(FH_R,"<",$FILE_NAME)|| die "Unable to open $FILE_NAME for reading: $!\n";
while (<FH_R>)
{
chomp;
s/\n+/=/g;
...
1,852
Posted By replytoshishir
cat file_name| perl -e...
cat file_name| perl -e 's/(\d\-\d-\d\s\d:\d:\d)\.0/$1/gc'
this will give you desired output..
12,020
Posted By replytoshishir
if this is a flat file you can also use awk...
if this is a flat file you can also use
awk and sed if you want to perform some operation on search
3,499
Posted By replytoshishir
will sharing through sockets allow seeing the...
will sharing through sockets allow seeing the correct OFFSET value as well??

---------- Post updated at 08:34 PM ---------- Previous update was at 08:32 PM ----------

the other way i can think...
3,499
Posted By replytoshishir
Dup2 - for file descriptor opened by a different process
is it possible to duplicate file descriptors(opened by a different process) with the help of dup or dup2. the two process do not share parent child relationship as well.
2,988
Posted By replytoshishir
try this one history | sed 's/[0-9][0-9]*//' ...
try this one
history | sed 's/[0-9][0-9]*//'


thnx Shishir
58,335
Posted By replytoshishir
try this history | sed 's/[0-9][0-9]*//' ...
try this
history | sed 's/[0-9][0-9]*//'


thnx Shishir
1,923
Posted By replytoshishir
yes you can, but for this you need to run that...
yes you can, but for this you need to run that script as a daemon..


thnx
Shishir
5,493
Posted By replytoshishir
can you please explain bit more..like what are...
can you please explain bit more..like what are you searching for and from which to which line nos.... i think i can help you.......

thnx shishir
7,594
Posted By replytoshishir
re: Replace part of a line with sed/awk
i tried to simulate your scenario.. so created an input file as below by the name inputfile.txt
-------------
var1=shishir
var2=shishir
var1=shishir
var2=shishir
var3=shishir
------------
the...
1,525
Posted By replytoshishir
you can change the fileters for each day and...
you can change the fileters for each day and concatenate to a variable for the week days

var=<o/p for aug15 and HR 1>||<o/p for aug 16 and HR 1>|| <o/p for aug 17 and HR 1>...

assuming "||" is...
17,359
Posted By replytoshishir
for virtual memory u can also use vmstat
for virtual memory u can also use vmstat
8,574
Posted By replytoshishir
chop out the date string from the file name and...
chop out the date string from the file name and use
date +%F -d "<string>"
this will convert the string date to the yyyy-mm-dd format
8,358
Posted By replytoshishir
try giving 777 permissions to the files you...
try giving 777 permissions to the files you wanted to delete and to the file system/ dir you are sharing..
4,405
Posted By replytoshishir
also you can add --force option and do check for...
also you can add --force option and do check for the sticky bit also..
Forum: Programming 08-23-2008
62,599
Posted By replytoshishir
Well i think it should work fine unless you are...
Well i think it should work fine unless you are breaching the limitations..... the maximum depth of subdirectories is 20, and at least 16 Kbytes of stack space should be available to avoid stack...
Forum: Programming 08-23-2008
62,599
Posted By replytoshishir
Well i think it should work fine unless you are...
Well i think it should work fine unless you are breaching the limitations..... the maximum depth of subdirectories is 20, and at least 16 Kbytes of stack space should be available to avoid stack...
5,887
Posted By replytoshishir
u can then try 'passwd' or "usermod -e...
u can then try 'passwd' or
"usermod -e YYYY-MM-DD root"
either of this should work fine
5,887
Posted By replytoshishir
try to restart the machine in single user...
try to restart the machine in single user mode.... you should be able to do so..
Forum: Red Hat 08-22-2008
13,439
Posted By replytoshishir
also you can do chkconfig sshd on so that...
also you can do
chkconfig sshd on
so that from next time if you reboot the node the sshd starts by default..
but first confirm if the problem is sshd daemon only...
Forum: Red Hat 08-22-2008
13,439
Posted By replytoshishir
may be sshd daemon is not running on the remote...
may be sshd daemon is not running on the remote machine
Forum: Red Hat 08-22-2008
13,439
Posted By replytoshishir
are you able to login from console???
are you able to login from console???
Forum: Programming 08-22-2008
62,599
Posted By replytoshishir
do you need a C program, i wonder as posted this...
do you need a C program, i wonder as posted this in this forum..
Forum: Programming 08-22-2008
62,599
Posted By replytoshishir
ever you can use cp -var <SRC_DIR> <DEST_DIR> ...
ever you can use
cp -var <SRC_DIR> <DEST_DIR>
this is a verbose option with archive also
1,525
Posted By replytoshishir
are you trying to filter the details on weekly...
are you trying to filter the details on weekly basis or on daily basis
Showing results 1 to 25 of 28

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