Search Results

Search: Posts Made By: vishwakar
81,672
Posted By vishwakar
move files older than 2 days to another folder
Hi
I am facing problem in using this command,

mv `find /export/june/PURGEDATA*.txt -mtime +2 -exec ls {} \;` june/archive/

mv: Insufficient arguments (1)
Usage: mv [-f] [-i] f1 f2
mv...
1,827
Posted By vishwakar
while(defined ( $_ = <DAT>)) { ...
while(defined ( $_ = <DAT>))
{
chomp;
my @d =split('\|', $_);
$size = @d;
print "$size";
}

This is wat i am using but it Gives...
1,827
Posted By vishwakar
Perl split function
my @d =split('\|', $_);
west|ACH|3|Y|LuV|N||N||
Qt|UWST|57|Y|LSV|Y|Bng|N|KT|


It Returns d as 8 for First Line, and 9 as for Second Line . I want to Process Both the Files, How to Handle It.
12,960
Posted By vishwakar
ya that worked .. thanks everyone
ya that worked .. thanks everyone
12,960
Posted By vishwakar
ya the above command also gives the same output ...
ya the above command also gives the same output


$ ls -lrt | tail -1 | awk '{print $NF}' > file
$ cat file
file
12,960
Posted By vishwakar
to pick the latest file modified in a directory
I wan to pick the latest modified file name and redirect it to a file ..


ls -tr | tail -1 >file


but this is printing file ins side the filename ,

can anyone help me out
2,206
Posted By vishwakar
used the same syntax
i used the same syntax . it was giving the error
no file or directory found
2,206
Posted By vishwakar
Origin file is there
The source file is there as iam able to copy successfully using the above command i posted
2,206
Posted By vishwakar
Trying to copy Using scp facing problem
source file is located in (elk.some.com)
/export/elk2/vp141p/Somedir/dist/current/Filename.ear
destination machine(191.hydc.xxx.com)
/export/home/vp141p/ARCHIVE

scp -p...
3,103
Posted By vishwakar
can u tell me clearly what you are trying to say....
can u tell me clearly what you are trying to say. i was not clear with ur statement.. please can u make it clear.
3,103
Posted By vishwakar
perl script processing error
open(IN,"input_file") or die "Can't open Input file.\n";

while (<IN>) {

chomp;
$line = $_;
if($line != '') {

print "\nprocessing $line\n";

$size...
4,478
Posted By vishwakar
ya .. i am still struggling with this code.. i...
ya .. i am still struggling with this code.. i want only in perl as awk,sed.. and all commands wont work inside a perl script.. is there any other way... please help me
4,478
Posted By vishwakar
4,478
Posted By vishwakar
can i use this inside a perl script .??. i dont...
can i use this inside a perl script .??. i dont want a command in a command window
4,478
Posted By vishwakar
ya thank u for reply but can u make me clear...
ya thank u for reply but can u make me clear whether can i use these all commands inside a perl script

---------- Post updated 12-23-10 at 05:56 AM ---------- Previous update was 12-22-10 at 10:09...
4,478
Posted By vishwakar
ya thanks for the reply.. but can u tell me can i...
ya thanks for the reply.. but can u tell me can i use this command inside a perl script ?? wont it give error /
4,478
Posted By vishwakar
Have to exclude the first and last line of the file : help me
hi , i am very new to perl . scriptting.. pllease can any one help me ...pleaseeeeeee


i ll have a file which look likes

123 |something |567
456 |welcome |789
457 |inboxpost |790
.
. ...
Showing results 1 to 17 of 17

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