Search Results

Search: Posts Made By: pinpe
2,253
Posted By pinpe
How search a list of numbers from a file
Hi Guys!

I have two input files. I want to search each of the numbers (studentid) on inputfile1 from inputfile2 and print the studentid and section that are listed from inputfile1. See the...
1,718
Posted By pinpe
How to use awk or nawk by using Conditional Statements
Hi Guys!

Anybody know how can I use a nawk or awk on a script and printing the NAME, SECTION (must be 410 or 411 or 414) and TOTAL COST of CLASS 1 and 3 combined must be greater than 50. See...
8,242
Posted By pinpe
How to automate SSH remote connection with a shell script
Hi Guys!

I am trying to write a shell script for automated ssh. vairable user and passwd have initialized correctly, but when I use the following it still prompting me for the password.

...
9,981
Posted By pinpe
Hi anchal_khare, Thanks for the reply but...
Hi anchal_khare,

Thanks for the reply but I'm using UNIX OS. The command you gave me is giving me errors as shown below...


root@hostname>date --date '1 month ago' '+%b%d'
date: illegal...
9,981
Posted By pinpe
How to show last month date?
Hi Guys,

Please somebody give me a hand to show the Month & Year in assigning to a variable and with format "MMMYY" (i.e. Jul11). See below preferred output.

I tried using this but it is...
Forum: Programming 08-04-2011
21,068
Posted By pinpe
How to get First and Last day of previous month from trunc(sysdate)
Hi Guys,

How to get First day of previous month and last day of previous month from trunc(sysdate) using SQL..?

Thanks in advance.


Br,
pinpe
2,321
Posted By pinpe
How to insert variable date (monthly) from SQL script
Hi Guys,

Can someone please help me on adding/inserting a variable to an sql scipt? Basically I want to generate data on monthly (i.e. July 01, 2011 to July 31, 2011) basis. As shown below..

...
12,748
Posted By pinpe
This is more efficient command than using cat....
This is more efficient command than using cat. Thanks dude! :b: :)

Br,
pinpe
12,748
Posted By pinpe
How to combine 2 files and output the unique & difference?
Hi Guys,

I have two input files and I want to combine them and get the unique values and differences and put them into one file. See below desired output file.


Inputfile1:

1111111...
12,861
Posted By pinpe
How to remove indents
Hi Guys,

Need some help on removing indents from a file. See below desired output.


INPUT FILE:

7860080
7860081
7860082
7860083
7860084
...
3,214
Posted By pinpe
How to put date range from a perl & sql script
Hi Guys,

Can someone please help me on adding/inserting a variable date to an sql scipt? Basically I want to assign a 7 days date range. As shown below..



#!/usr/bin/perl

use strict;
use...
3,448
Posted By pinpe
Perfect! Thanks so much radoulov! :b: :)
Perfect! Thanks so much radoulov! :b: :)
3,448
Posted By pinpe
How to change the date format
Hi Guys,

Can someone help me on how to change the date format using sed or any unix command to give my desired output as shown below.

INPUT FILE:

69372,200,20100122T17:56:02,2...
6,739
Posted By pinpe
Hi bartus, Sun Microsystems Inc. SunOS...
Hi bartus,

Sun Microsystems Inc. SunOS 5.10
UNIX

Br,
pinpe
6,739
Posted By pinpe
Hi bartus, It is giveing me error as shown...
Hi bartus,

It is giveing me error as shown below.


root>date -d tomorrow +%Y%m%d
date: illegal option -- d
usage: date [-u] mmddHHMM[[cc]yy][.SS]
date [-u] [+format]
date...
6,739
Posted By pinpe
Hi bartus, This is great! Thanks! But what...
Hi bartus,

This is great! Thanks! But what if I want to put the DATEfor tomorrow like this format 20110710

Thanks again in advance. Really appreciate your help.


Br,
Pinpe
6,739
Posted By pinpe
How to insert date in a statement?
Hi Guys,

Can somebody help me in inserting today's DATE format (20110709) in my awk statement. I have a script but its not working.


inputfile.txt:

269,1,0,AAA,430
231,2,0,BBB,430...
3,770
Posted By pinpe
How to remove lines containing strings
Hi Guys,

I need some script in removing lines containing strings like ",, ," and "rows". Retain only numbers as the output. See below for the input and output file.


INPUT FILE:

9817...
2,132
Posted By pinpe
Perfect! Thanks Dude! :b: :) Br Pinpe
Perfect! Thanks Dude! :b: :)

Br
Pinpe
2,132
Posted By pinpe
How to remove unwanted strings?
Hi Guys,

Can someone give me a hand on how I can remove unwanted strings like "<Number>" and "</Number>" and retain only the numbers from the input file below.

INPUT FILE:
...
1,394
Posted By pinpe
Perfect! Thanks dude! :b: :) Br, Pinpe
Perfect! Thanks dude! :b: :)

Br,
Pinpe
1,394
Posted By pinpe
How to get the number series in between?
Hi Guys,

Can someone give me a simple script that can extract the numbers in between numbers from start to end. As shown below, it start from 100 to 110 and revealed the numbers in between.
...
2,680
Posted By pinpe
How to use awk in inserting single quote
Hi Guys,

Please someone help me to insert these numbers (enclosed with single quotes) to a statement using awk command. I'm having hard time of putting single quotes on these numbers.


input...
101,173
Posted By pinpe
Hi Scrutinizer, This is great! Thanks dude!...
Hi Scrutinizer,

This is great! Thanks dude! But the output show that it has a 5 spaces in between the columns. I want to make it 1 space only as shown below.



paste inputfile1.txt...
101,173
Posted By pinpe
How to combine 2 files into 1 file with 2 columns
Hi Guys,

I want to combine 2 files and and put together in 1 file and make two columns out it. See below desired output. Any help will be much appreciated.


inputfile1.txt

12345
67890...
Showing results 1 to 25 of 60

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