Search Results

Search: Posts Made By: morbid_angel
6,296
Posted By morbid_angel
This is my script and its too slow cat...
This is my script and its too slow

cat File|awk -F',' '{print $1}' |sort -u >UniqueIds
cat File|awk -F',' '{print $2}' |sort -u >UniqueColumns


Counter=1
cat UniqueIds|
{
while read Line...
6,296
Posted By morbid_angel
Pivot Column using awk
Hello everyone

I have a 20M file which is having the below sample layout

1111,ABC,100
1111,DEF,200
1111,XYZ,300
4444,LMN,100
4444,AKH,500
4444,WCD,400
2222,ABC,100
7777,DEF,300...
1,926
Posted By morbid_angel
ok .What kind of expression we have ? Do you have...
ok .What kind of expression we have ? Do you have any link for these kind of pure awk programming .
1,926
Posted By morbid_angel
great logic. Thanks a lot ---------- Post...
great logic. Thanks a lot

---------- Post updated at 12:50 PM ---------- Previous update was at 12:26 AM ----------

i hope for removing last character "," you have used this
sub( /,$/, X, s...
1,926
Posted By morbid_angel
I am not have any idea about this .Thinking how...
I am not have any idea about this .Thinking how can I do this by grep
1,926
Posted By morbid_angel
UNIX - requirement
Hi All,
I have a source file with data

Name ~ Groups
Muni~abc,was,USA_ax,123
Chaitanya~USA_12,was
Balaji~123,xyz,was
Ramu~123,xyz

From the second column i want to extract only the groups...
1,128
Posted By morbid_angel
I just need to know this command will run in...
I just need to know this command will run in background if the session got disconnected.
1,128
Posted By morbid_angel
Running commands in backgroud
I have a small question may be this will be discussed before

I have two files file1 and file2 with huge data and I am running the commands as

cat file1 |sort &
cat file2 |sort &

If the...
1,105
Posted By morbid_angel
Using fgrep
cat file1 |cut -d"|" -f1 >Newfile_1
fgrep -f Newfile_1 file2 >Newfile
1,578
Posted By morbid_angel
I m sorry ,I mean $LINE & Let me try it...
I m sorry ,I mean $LINE &

Let me try it out . Thanks man


---------- Post updated at 11:42 PM ---------- Previous update was at 10:48 PM ----------

I have tried this command .But it hangs
1,578
Posted By morbid_angel
Running script in Parallel
Hi Folks
I have a doubt. I have a script which is running with 2 input parameters

./GetDSLnkCount.sh <jobnumber> Parmfile.txt

I need to run the script in parallel for different jobnumbers....
1,182
Posted By morbid_angel
Doubt in integer comparison
Hi
What is the difference between following commands

Command1

length=1
if [[ $length > 15 ]] ; then
echo "Hellow world"
fi


Command 2

length=1
if [[ $length -gt 15 ]] ; then
...
1,691
Posted By morbid_angel
wowwww.. Thanx a lot dude
wowwww.. Thanx a lot dude
1,691
Posted By morbid_angel
No.The file name and date of file creation are...
No.The file name and date of file creation are different.They are not matching. Here I cant use ls -lrt . I need to sort based on name
1,691
Posted By morbid_angel
Sorting file based on names
Hi
I have some files in directory and the names of files are like

jnhld_15233_2010-11-23
jnhld_15233_2007-10-01
jnhld_15233_2001-05-04
jnhld_15233_2011-11-11
jnhld_15233_2005-06-07...
3,110
Posted By morbid_angel
What will be the output if pcontromModate is...
What will be the output if pcontromModate is "2008-05-05" .Will it print in date format
3,110
Posted By morbid_angel
Get Previous date of a past date
Hi all,
I have a variable where it has a past date value in the format YYYY-MM-DD

eg->
pcontromModate="2008-11-31"

How can i get the date 1 day before the pcontromModate.

The required...
29,469
Posted By morbid_angel
try this var=`grep -c string filename` or ...
try this
var=`grep -c string filename` or var=$(grep -c string filename)
6,548
Posted By morbid_angel
I am not able to find from this link.All the...
I am not able to find from this link.All the links shows the previous and future date from current date. My requirement is to get the previous date of a past end date. Pls note that the date...
6,548
Posted By morbid_angel
Get Previous date from a given date
Hi all,
I have a variable where it has a date value in the format YYYY-MM-DD

eg->
pcontromModate="2010-11-31"

How can i get the previous date of pcontromModate in the format YYYY-MM-DD
1,584
Posted By morbid_angel
thanks a lot dude
thanks a lot dude
1,584
Posted By morbid_angel
Find command to delete a pattern
Hi all
i have a directory where it has files as shown below.Using find command how can i delete files which were modified more than 20 days ago and having the pattern jnhld15231 or jnhld15232. ...
1,085
Posted By morbid_angel
Access oracle DB from UNIX env
Hi

I need one help for connecting oracle from unix. I have query.ctl file where i have wriiten my oracle query.How can i execute this sql throgh unix

thnxx all
1,549
Posted By morbid_angel
SFTP in UNIX
I need create a Shell script to do the SFTP process. How can i provide username and password in the script.I had the below code.But it ask for password.How can i add user name and password in this...
4,168
Posted By morbid_angel
thnx dude. i tried with fgrep which is killing my...
thnx dude. i tried with fgrep which is killing my major time.how wil be the perfomance of comm command

---------- Post updated at 11:30 PM ---------- Previous update was at 01:17 PM ----------
...
Showing results 1 to 25 of 33

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