Visit Our UNIX and Linux User Community

Search Results

Search: Posts Made By: ramse8pc
1,149
Posted By ramse8pc
Thanks guys!! They are working like a...
Thanks guys!! They are working like a charm.Thanks again
1,149
Posted By ramse8pc
Rename last directory in a file structure
I have to write a script to rename the every last sub-directory in a directory structure if the last sub-directory name doesn't contain "submitted".
eg:
given directory path:/u01/home/somedir
...
2,213
Posted By ramse8pc
[SOLVED] Delete files and folders under given directory
I have a requirement to delete the files and folders under a given directory.
my directory structure is like this..

Data
|
A(Directory)
|_PDF(Directory)----pdf files
|_XML()Directory --xml...
7,944
Posted By ramse8pc
That's the reason if the exceptions/error are...
That's the reason if the exceptions/error are shown in red colour on the console then the person executing the script understands that there is something wrong with build and deployment.
one more...
7,944
Posted By ramse8pc
Thanks for the reply. The solution i'm...
Thanks for the reply.
The solution i'm expecting is when i run the build script all the log statement will be logged to a single log.i don't want a separate log file for errors as that script will...
1,188
Posted By ramse8pc
java Exceptions color
Hi,
I call a java program from a cron job and i need to display the exceptions or Errors thrown by java(basically stacktrace) in the unix/linux console in the red color.Is it possible to do that? If...
7,944
Posted By ramse8pc
Display Console errors in Red color
I browsed the forums but i couldn't find the best answer.so,i'm posting here again..
I have a parent bash script which calls another child script and the child script is used to deploy the tar file...
2,247
Posted By ramse8pc
hi rdcwayx, thanks for the reply.i will try as...
hi rdcwayx,
thanks for the reply.i will try as per ur suggestion.
2,247
Posted By ramse8pc
Thanks for the...
Thanks for the reply./dataserver/ftp/bits/mdr/mdr_data_discon.dat is the import statement in the log file.it's not the log file name.data is imported into tables and these are emitted by databse.
...
2,247
Posted By ramse8pc
Read from Log file in Ksh
I have a log file like..


IMPORT from /dataserver/ftp/bits/mdr/mdr_data_discon.dat OF DEL .....
Number of rows read = 1376
Number of rows skipped = 0
Number of rows inserted ...
1,991
Posted By ramse8pc
I tried like this.. and it gives erros.. ...
I tried like this.. and it gives erros..
#!/bin/ksh

ts=`date +%m%d%H%M`;
ts=`expr $ts - 250`;
touch -t 0$ts stamp1
for file in $(find /dataserver/apps/upload/CARcomment/ -type f -newer...
1,991
Posted By ramse8pc
Find last updated files and rename
HI
I have a requirement to find the last updated files from a directory whcih has subdirectories and inside them we have files with .txt,.doc,.xls .. extensions. i have to find those files which...
1,308
Posted By ramse8pc
create pipes based on the column
i get text files with

Action & Adventure|2012: Supernova NR|2009-11-01 00:01:00|2010-05-01 23:59:00|Active|3
Action & Adventure|50 Dead Men Walking|2010-01-05 00:01:00|2010-06-30...
3,084
Posted By ramse8pc
Thanks for the reply. i tried like this but...
Thanks for the reply.

i tried like this but a.txt is empty

awk -F"|" '$5 ~ /^Active$/ {print $0}' FinalVHO.txt>a.txt

is there anything wrong with it?
3,084
Posted By ramse8pc
Separate lines from text file
I have a text file with lot of rows like..
Action & Adventure|2012: Supernova NR|2009-11-01 00:01:00|2010-05-01 23:59:00|Active|3
Action & Adventure|50 Dead Men Walking|2010-01-05...
2,343
Posted By ramse8pc
awk is not working though.. i tried like this in...
awk is not working though.. i tried like this in ksh file..

awk -F"|" '{for (i=1; i<$NF; i++){for (j=1; j<=6; j++)printf("%s", (j<=i ? $j : "") "|");printf("\n")}}' FFolderVHO.txt

awk: syntax...
2,343
Posted By ramse8pc
String manipulation in a file
I have a text file having number of different rows like this..
Action & Adventure|Whiteout|
Kids Free|PBS KIDS Sprout|En espanol|
Kids Free|PBS KIDS Sprout|En espanol|XYZ|


Basically,i want to...
1,294
Posted By ramse8pc
awesome!. it worked. thanks guys.
awesome!. it worked. thanks guys.
1,294
Posted By ramse8pc
Thanks for the answers. i have tried like this...
Thanks for the answers. i have tried like this but it didn't work

#looping through all the files VHO1.txt,VHO2.txt....
for i in `ls VHO?.txt`
do
#getting the last column value
var2=echo...
1,294
Posted By ramse8pc
manipulate the textfile having strings
i have text files named like vho1.txt, vho2.txt... vho15.txt.In all there are 15 in number.
each file has strings like
\Movies On Demand\Action & Adventure|X-Men: Wolverine|2009-09-29...
Showing results 1 to 20 of 20

 

Featured Tech Videos

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