Search Results

Search: Posts Made By: kumar30213
1,603
Posted By kumar30213
sorry i gave the wrong input. Can you please...
sorry i gave the wrong input.
Can you please check now, i have corrected it. Thanks
below if my output for input.

$ awk '!a[$6]++' duplicheck.txt
03/09/2014 10:35 AM 618 Admin\rick ...
1,603
Posted By kumar30213
Sort a file content using one column
Hello All,
I have a file which have content as below.

03/09/2014 10:35 AM 618 Admin\rick pqr_ klm2_pog12_20140309_c.xlsx
03/10/2014 10:35 AM 618 user\test01 mplz_...
2,055
Posted By kumar30213
One more trouble, how we can keep the latest...
One more trouble, how we can keep the latest record while doing the shorting.


03/17/2014 10:35 AM 618 Admin\vick abc_ xyz2_bc12_20140312_c.xlsx
03/31/2014 10:35 AM 618 Admin\vick ...
1,812
Posted By kumar30213
If I want to append the content to another file...
If I want to append the content to another file how we can do that in same command.
and also some time we may get a file as below


Volume in drive E is Data
Volume Serial Number is 586D-6932
...
1,812
Posted By kumar30213
Format txt file in UNIX
Hello All,

I have File_all.txt which have content as below



Volume in drive E is Data
Volume Serial Number is 586D-6932

Directory of E:\mydi2\siudfor\TFG058

03/27/2014 09:59 PM ...
1,356
Posted By kumar30213
minus 30 days form current date in Unix
So my final code is



#!/usr/bin/ksh
set -- $(perl -MPOSIX -le'@a=localtime;$a[3]-=30;print strftime "%Y %m %d %p %I %M",@a')
awk -vY=$1 -vm=$2 -vd=$3 -vp=$4 -vI=$5 -vM=$6 '
$3>Y||...
1,356
Posted By kumar30213
find and delete
I am using HP-UX and i think "-30 days" this will not work :(

---------- Post updated at 03:51 AM ---------- Previous update was at 03:27 AM ----------

Hello,


#!/usr/bin/ksh...
1,356
Posted By kumar30213
Delete older lines from file
Hello,
I have File all_file.txt , which have information as below.

01/23/2014 11:09 PM 5,511 fr\my1 m102_al11234_sbl_20140124.zip
03/23/2014 11:09 PM 5,511 fr\my1 ...
994
Posted By kumar30213
what if i want to ignore particular extension say...
what if i want to ignore particular extension say .log is there any way
now i am using your below code.


#!/usr/bin/ksh
if [ `find /all_file/tmp -type f -prune -name "*.txt" |line`"X" = "X" ]...
994
Posted By kumar30213
Check file presence and delete other file
Hello,

I have file all_file.txt
at the end of process this file all_file.txt should be deleted only if there is no file present in dir /all_file/tmp/ or in it's sub directory.

can you please...
1,653
Posted By kumar30213
find
this is the way to find them, do you know how to list down all and delete them.


find me it works like this way


find . -name "* *"


but these files are under sub directories and i dont...
1,653
Posted By kumar30213
find
yes you are correct.
1,653
Posted By kumar30213
Find File with space
Hello All,

I have path
/allcode/mainld/process/recenttmp

where I get many type of file from other platforms. so in UNIX I need to process all file present in this location. but I don't want...
3,014
Posted By kumar30213
grep
grep -w $file_name$ $winfilename

$winfilename=info.txt
$file_name=myfile_goodfile_sec_20140324_c.doc and extra $ as you suggested
grep as it is and i added -w option to test if it works.
3,014
Posted By kumar30213
This is not working in HP-UX :confused: grep...
This is not working in HP-UX :confused:

grep -w $file_name$ $winfilename
3,014
Posted By kumar30213
grep
This grep is running in loop for each file present in .txt File

so basically i need .doc in one run then in second i need .docx also

So i mean if i provide myfile_goodfile_sec_20140324_c.doc it...
3,014
Posted By kumar30213
Grep exact value
Hello All,

I have a file all_info.txt

Date Owner Filename
03/25/2014 mycomp\royale myfile_ goodfile_sec_20140324_c.zip
03/25/2014 mycomp\royale ...
2,749
Posted By kumar30213
Find if file is 45 min old if yes delete
Hello,
we have process2(my_pro.sh) which check for the file Pr_rn_Chk (generated by other process1). The process runs every 15 min.
if exist Pr_rn_Chk the process will exit. Else it will continue. ...
2,055
Posted By kumar30213
Sort a file content with space
Hello,
I am trying to understand what you explained but could not make it.

during the sort process even if we miss the file name with Space inside file is not problem. because on server we...
2,055
Posted By kumar30213
Sort the file content with Space
Thanks It works fine. I need to redirect the output to new file.
2,055
Posted By kumar30213
Sort a file content with space
Hello,
I need help on.

I have a File which stores the information as below.
It is space separated file, I want to keep only unique record in file based on file name.
Also if you notice sometime...
Showing results 1 to 21 of 21

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