Visit Our UNIX and Linux User Community

Search Results

Search: Posts Made By: pritish.sas
2,082
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");...
1,931
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,370
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,066
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
1,729
Posted By pritish.sas
version number in unix/linux
Use uname -r instrad of uname -a
2,280
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,280
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,037
Posted By pritish.sas
kill command
Good way to kill the process, if the process having it's child
2,322
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,341
Posted By pritish.sas
Thanks to all of u...
Thanks to all of u...
1,341
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,490
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,490
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...
15,302
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
5,638
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
5,638
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,...
4,075
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...
4,075
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...
4,075
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,406
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...
4,190
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,050
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,571
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,309
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,309
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

 

Featured Tech Videos

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