Search Results

Search: Posts Made By: pritish.sas
2,350
Posted By pritish.sas
perl recursive function issue
I am facing some problem in perl recurssive function function

my @array_parent = (Some inegers);
my $outputfile = 'output.txt';
my $master_file = 'master.txt';
open (MASTER,"$>>master.txt");...
2,285
Posted By pritish.sas
date command issue from crontab
Hello Experts,

I am facing problem in date command with TZ

test.sh
[ date1=`TZ="GMT+28" date +'%d-%b-%Y'`]
[ date2=`TZ="GMT+48" date +'%d-%b-%Y'`]

[ echo $date1 $date2 ]

Output :...
3,769
Posted By pritish.sas
date command issue from crontab
Hi Expert,

I am using TZ for extracting yesterday date and day before yesterday date
example :

date_yes=`TZ="GMT+28" date +'%d-%b-%Y'`
date_dbyes=`TZ="GMT+48" date +'%d-%b-%Y'`

echo...
1,376
Posted By pritish.sas
You want to repalce 0001 in the begging or...
You want to repalce 0001 in the begging or anywhere. Please be specific

you can use sed or tr command to achive this. Otherwise you will write a perl program for the same
2,134
Posted By pritish.sas
version number in unix/linux
Use uname -r instrad of uname -a
2,959
Posted By pritish.sas
But when i was doing ftp in unix ftp server...
But when i was doing ftp in unix

ftp server

!sh scriptname -> How it will work
2,959
Posted By pritish.sas
Net::Ftp in perl
I am trying to execute a script in another server, i used Net::Ftp module

How to execute unix command in another server by using Net::Ftp module..
#!/usr/bin.perl
### Perl script to ...
2,340
Posted By pritish.sas
kill command
Good way to kill the process, if the process having it's child
2,477
Posted By pritish.sas
tar command use
I am useing tar command

tar -cvf /target/mytar.tar *20100212* [There are more than 50,000 files]

when i am checking the file size in /target directory, it's size is varing, means it touches...
1,647
Posted By pritish.sas
Thanks to all of u...
Thanks to all of u...
1,647
Posted By pritish.sas
File move and deletion in Unix
I have 63,000 files in a directory [per one day]

I want to move all the 20100219 day files to /target directory

I used
$mv *20100219* /target
too many arguments

Then i used
$find ....
2,897
Posted By pritish.sas
re it work fine
Thank u very much durden_tyler..

Perl one liner is very powerful na. If you have any stuff on perl one liner then pls, give me
2,897
Posted By pritish.sas
Date Validation in unix
I have a script which is take date as parameter

sh abc.sh <2010-02-01>

#!/sh/bin

my_date=$1
#Here i want to two diffrent dates
## 3 Days before
##date14query=$mydate - 4 (it will be...
23,737
Posted By pritish.sas
cut command in while loop
while read line;do
grep "001" $line|awk -F "_[0-9]" '{print $NF}' >> File1.txt
grep "002" $line|awk -F "_[0-9]" '{print $NF}' >> file2.txt
done<Inputfile
6,015
Posted By pritish.sas
Need to understand
could you Please tell how it's work. It's very complex but may be effective. Someone please help me to understand this code
6,015
Posted By pritish.sas
awk vs perl
awk -F "|" '{print $2$3$4 upto $30}' file1 > file2

Same logic, i want to write it in perl

I tried
#!/bin/usr/perl
my $line;
open FH, "<file1" or die " Can't open file $!";
open FH1,...
5,903
Posted By pritish.sas
grub> unhide (hd0,0) grub> hide (hd0,1) ...
grub> unhide (hd0,0)
grub> hide (hd0,1)
grub> rootnoverify (hd0,0)
grub> chainloader +1
grub> makeactive
grub> boot


it resolves the issue.

---------- Post...
5,903
Posted By pritish.sas
re: rm -rf *
But i deleted the files from fedora core OS.

How it deleted files from Windows Xp

---------- Post updated at 01:42 PM ---------- Previous update was at 01:33 PM ----------

when i am...
5,903
Posted By pritish.sas
deleted all files - rm *
Hi All,

I am using Fedora Core and Windows Xp. I deleted all the files from root
directory. When i am trying to restart the computer it showing some grub > prompt. What i will do ? I have lots...
2,828
Posted By pritish.sas
perl how to escape (|) character
my @array;
my $sepa = "|";
print $sepa;
open FH, "<100_20091023_2.txt";
while(<FH>){

push @array, split(/\$sepa/, $_);
print "@array\n\n";

}

I am not able split the line which have...
5,378
Posted By pritish.sas
cat issue
I have list of files in my current directory

abc.txt
123.csv
234.csv
245.csv
145.csv
123_ex_c.sv

I don't want to open first and last file. i.e (abc.txt and 123_ex_csv)
I tried
cat...
2,365
Posted By pritish.sas
perl book
I want to download larry wall's programming perl any edition book for free.

will anybody tell me the location or url where i can get this book.
2,863
Posted By pritish.sas
perl time format
Hay guys,

I used time::local module. But i can't get my proper answer from this.

I want to extract two time for tomorrow start time and end time. In my code i just hard coded this. But it's not...
2,887
Posted By pritish.sas
It's not working apt-get: command not found...
It's not working

apt-get: command not found

---------- Post updated at 08:20 PM ---------- Previous update was at 08:14 PM ----------

I got the gcc.tar.bz2 file . i extracted these file....
2,887
Posted By pritish.sas
gcc compiler
I am using open suse linux. I want to install gcc compiler in my machine. I ahve checked man gcc and man cc. But it's not there. Can someone help me
Showing results 1 to 25 of 62

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