Search Results

Search: Posts Made By: mac4rfree
6,079
Posted By mac4rfree
Creating new file inside a for loop
Hi,

I have list of files present in a folder. I want to search for a particular keyword sequentially and create a file which will be later used by some other program.
Input files:
[mac]$ ls...
646
Posted By mac4rfree
Search and retrieve the next Column.
Hi Guys,

I have a File like below.

FTOP,1|NOME,5|SERP,3
SERP,4|FTOP,7|POSE,4

Now, i am able to separate using multiple Delimiters in Awk. So,now when i search for FTOP, i need to retrieve...
2,169
Posted By mac4rfree
Set Command to output a log of every command executed in the script
Hi Guys,

I like to output every command executed in the script to a file.

I have tried set -x which does the same.

But it is not giving the logs of the child script which is being called...
3,859
Posted By mac4rfree
Sorry my bad. Its S9(4) comp and S9(4) comp-3
Sorry my bad.

Its S9(4) comp and S9(4) comp-3
3,859
Posted By mac4rfree
Conversion of flat file to Mainframe file
Hi guys,

I have a flat file created by ETL tool.

Now the flat file has 4 columns. 1st column is a Character(17), 2nd Column Character(4), 3rd column is a decimal column and 4th column is also a...
2,116
Posted By mac4rfree
Sender name in the format "MAC [mac@yahoo.com]" in mailx command.
Hi Guys,

I want the sender name in the format of "MAC [mac@yahoo.com]" in the mailx command.

I tried the below command but it is throwing error.

> mailx -s "Test" -r 'MAC [mac@yahoo.com]'...
1,323
Posted By mac4rfree
sorry intially i tried with .csv but now .xls is...
sorry intially i tried with .csv but now .xls is proper. but there are two columns in between each of the columns.

So, how does the .xls separates the data in the file.. what is the file delimiter...
1,323
Posted By mac4rfree
Expand cells in .xls file created in unix
Hi Guys,

I am creating a comma separated file by quering the table and routing it to a file with an extension .xls.

I am using the mailx command to send the .xls file to windows mail box.
...
1,417
Posted By mac4rfree
permission for all the files in a folder
Hi Guys,

Is there a command or some way whenever any file is created in a folder is having a default permission.

Cheers!!!
3,210
Posted By mac4rfree
Rename all files (filename with spaces) to different extension
Hi,

I have files with filenames as below.


SGM Daily Sales Email-en-us-05312012.xlwa


I want to rename it in .xls. I am writing a script to change this, as there can be multiple files in...
22,420
Posted By mac4rfree
Hi Guys, thanks for your answers,,, Yes the...
Hi Guys, thanks for your answers,,,

Yes the tar is created using the absolute (/usr/...... ) path only.
The path /sites/VSTAR/site/live/ftp/GMEUROPE is already present.. maybe i should try with...
22,420
Posted By mac4rfree
How to Untar tar.gz to particular directory
Hi Guys,

I am able to untar a tar.gz file. But it is again extracting the tar file to further child directory.

I even tried the below command to untar it to particular directory.
tar -zxvf...
1,261
Posted By mac4rfree
Thanks for that explanation :)
Thanks for that explanation :)
1,261
Posted By mac4rfree
Thanks guruprasdpr,,, I came up with this...
Thanks guruprasdpr,,, I came up with this command.
awk -F'=' '/Country|BusinessUnit/{print $1 "=\x27" $2 "\x27" }'

But it was giving only those two records,, Can you tell me what i did wrong.
...
1,261
Posted By mac4rfree
[Solved] Need to add Single quotes to particular lines
Hi Guys,

I have the following file.

DbName=DBNAME
DbUser=USERID
DbPass=PASSLL
SrcLocation=/appl/data/VSTAR
SrcFile1=gmb_dly_ind_sls_20120410133424.txt
SrcFile2=...
982
Posted By mac4rfree
My Source is 4700 lines long.. Each line...
My Source is 4700 lines long..

Each line in the change.txt will appear within 10 times in the file. The Change.txt has 45 words which needs to be replaced.

Hope that helps
982
Posted By mac4rfree
Replace a file reading from another file
Hi Guys,

I have a file which has string which needs to be replaced by what.


Change.txt
Former Replace with
ASD AAD
ABP NAID


I like to read this file and search...
9,847
Posted By mac4rfree
PDF to Text Conversion
Hi Guys,

My OS is Suse Linux.. Is there a Command to convert PDF file to Text??

Cheers!!!!!
3,983
Posted By mac4rfree
my OS is suse linux 10..
my OS is suse linux 10..
3,983
Posted By mac4rfree
is there a way to attach multiple files..????
is there a way to attach multiple files..????
3,983
Posted By mac4rfree
@michaelrozar17,, that solved the issue.. :)
@michaelrozar17,, that solved the issue.. :)
3,983
Posted By mac4rfree
Need help in uuencode command
Hi,

I am trying this command.

/usr/bin/uuencode test.xls error.xls | mail -s "Testing" <emailid>

Instead of me having an attachment, i am getting this.


begin 644 error.xls...
1,355
Posted By mac4rfree
Variable Validation
Hi Guys,

I am getting count from a file (pipe delimited).

"23"|"9896"|"20090101"|"New Load"

I am using the following code to get the first two counts.

CtrlFileByte=`/bin/gawk -F"|" '{...
1,201
Posted By mac4rfree
Yeah Guys,, That Worked perfectly :)
Yeah Guys,,

That Worked perfectly :)
1,201
Posted By mac4rfree
Need help in reading a filename
Hi Guys,

I have the following input.


test_junk_file__20120210092009.txt
latest_file__20120210092009.txt
side_load_junk_file__20120210092009.txt


I need to exclude the timestamp part...
Showing results 1 to 25 of 280

 

Featured Tech Videos

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