Search Results

Search: Posts Made By: sagarparadkar
7,659
Posted By sagarparadkar
Wildcard in mailx argument
Hi All,

I have to send some files as attachments to an email using mailx copmmand in a shell script.

The files will be generated by some other application everyday with names starting...
883
Posted By sagarparadkar
Removinf newline characters in first 62 fields
Hi All,

I receive a | delimited text file containing 63 columns. There is no delimiter at the end of the 63rd field, instead there would be a newline character at the end of the text in 63rd...
1,516
Posted By sagarparadkar
Hi Robin, Thanks a lot, it worked fine with...
Hi Robin,

Thanks a lot, it worked fine with

find DIR -name "*_20111101.gz" -print | xargs ls -lrt


Thanks all for your quick responses.

Please use code tags...
1,516
Posted By sagarparadkar
Hi, Thanks for your replies. @Anchal,...
Hi,

Thanks for your replies.

@Anchal, -lrt will not work as the following command processes one file at a time returned from find:
find DIR -name *_20111101.gz -exec ls -lrt {} \;

@bzk,...
1,516
Posted By sagarparadkar
Sorting the files on their timestamps
Hi,

The file names are like XXXX_20111101.gz for 01 November 2011, etc. There might be several files for 01 November 2011 and I can find them using
find DIR -name *_20111101.gz -exec ls -lt {}...
1,615
Posted By sagarparadkar
Yes, I had modified PATH variable, and had...
Yes,

I had modified PATH variable, and had forgot to prefix the assignment with $PATH:

It resolved my issue, Thanks a lot.
1,615
Posted By sagarparadkar
Shell programming in Linux
Hi,

I have been working on Sun Solaris since a long time. Recently I got to work on RH Linux. My Linux version details are:

Linux 2.6.18-164.el5 #1 SMP Tue Aug 18 15:51:48 EDT 2009 x86_64...
19,650
Posted By sagarparadkar
Finding lines matching the Pattern and their previous lines in a file
Hi bartus11,

Thanks for the reply, but my OS doesn't support -B option to grep.

Mine is SunOS 5.8 Generic_117350-45 sun4u sparc SUNW,Sun-Fire-V440

Regards,
Sagar
19,650
Posted By sagarparadkar
Finding lines matching the Pattern and their previous lines in a file
Hi,

I am trying to locate the occurences of certain pattern like 'Possible network disconnect' in a text file. I can get the actual lines matching the pttern using:

grep -w 'Possible network...
73,993
Posted By sagarparadkar
Hi Jim, Thanks for your suggestion, actually...
Hi Jim,

Thanks for your suggestion, actually I realized that the wildcard character * needs to be escaped using \ as seen below

/TESTDONTDEL> find . -mtime -1 ! -name ful\*
.
./exception.txt
73,993
Posted By sagarparadkar
find files NOT matching name pattern
Hi,

I have following files in my directory:

/TESTDONTDEL> ls -alt
total 14
drwxr-xr-x 2 oracle dba 1024 May 15 06:30 .
-rw-r--r-- 1 oracle dba 40 May 15 06:30...
15,324
Posted By sagarparadkar
Filtering exact process name from ps
Hi Gurus,

I have two processes running on a Unix box, named say, PRCS1 and PRCS1X.

I want to check whether process PRCS1 is running or not, and depending on that I have to make further...
10,453
Posted By sagarparadkar
Hi Derek and Johnson, Thanks a lot for your...
Hi Derek and Johnson,

Thanks a lot for your inputs.

I tried playing around my code, and finally came up with the following version of code, which I found working. I am sure this version also...
10,453
Posted By sagarparadkar
Reading a file line by line and processing for each line
Hi,

I am a beginner in shell scripting. I have written the following script, which is supposed to process the while loop for each line in the sid_home.txt file. But I'm getting the 'end of file'...
Showing results 1 to 14 of 14

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