Search Results

Search: Posts Made By: inditopgun
2,835
Posted By inditopgun
why not use cut -f command to retrieve only the...
why not use cut -f command to retrieve only the columns you are interested in? you can use


cat $1 | while read LINE
do
echo $LINE | awk -F, '{for(i=1;i<=NF;i++){ print $i }}' | while read...
941
Posted By inditopgun
Question about File Processing
I have a file with the format

CKF,23G
ckf,234M
CKF,2356K
DFK,4589M
DFK,343K
dfk,3434M
DFK,34G
DFK,34343M,
DFK,3476G
FGK,34k
KLK,43G
KLK,3G


I would like to group by the 3-letter...
1,318
Posted By inditopgun
Help with number field manipulation
I have a comma separated file containing numbers, I would like to read the file and divide each number by 1024 and create an output file.

Input file :

50312.00,3434.05,...
1,769
Posted By inditopgun
simply awesome!! you-da-man! works like a charm. ...
simply awesome!! you-da-man! works like a charm.

Many thanks for your time and help.
1,769
Posted By inditopgun
First of all, appreciate your time in helping me...
First of all, appreciate your time in helping me out.

Apologies for not making it clear. Let me start all over again and to make it easy, lets make prune some additional details and lay down some...
1,769
Posted By inditopgun
That was really helpful, however my requirement...
That was really helpful, however my requirement is slightly more complex :

Input Data file :

TEMP, STUDENT1 COURSE1,COURSE1_DETAILS,COURSE1_SCORE
TEMP, STUDENT1...
1,769
Posted By inditopgun
Help with datafile parsing and creating spreadsheet
I have a datafile containing data in the following format

name1,employee_number1,cell1,home1,fax1
name2,employee_number2,cell2,home2,fax2
name3,employee_number3,cell3,home3,fax3...
1,563
Posted By inditopgun
Help with Pattern match and replace
I have a file containing a multiple lines of the format
sddfdsf_gaf/ywrtrtwrt_gaf
ghfghfgh_ert/xcvxcvcv_ert
werwerwwerw_adf/jkhjkhjkjhkjhk_adf

I am interested in only the first 3 letters...
5,310
Posted By inditopgun
URGENT : vi doesn't read my .exrc
I have created some custom commands (using the map macro feature) and have those map commands in my $HOME/.exrc file (I am using bash) Here are the commands, which I have in my $HOME/.exrc

map! F...
1,734
Posted By inditopgun
Help with search and delete/add/modify script
Gurus,

I need to run a script on multiple XML files in different directories and do the following (the output can be redirected to create a new file)

1. Search a pattern like "abc.mno.xyz" in...
1,370
Posted By inditopgun
Help with script
I want to write a script (either sed or awk) which will search for a particular pattern, "xyz" in an XML file, then insert 2 lines of text at the end of that XML tag. To give an example, here is how...
1,801
Posted By inditopgun
Gurus, First of all apologies for my...
Gurus,

First of all apologies for my verbose post.

I think I have solved issue# 1 and issue# 3 by changing the code in following manner :

#/bin/sh

for container_list in `ls -1...
1,801
Posted By inditopgun
Need help with some iterative file processing
Gurus - Please help with this urgent situation.

I have the following problem to solve using a shell script:

1. There are about 13 files named CONTAINER_1.lst, CONTAINER_2.lst, CONTAINER_3.lst...
2,217
Posted By inditopgun
thanks so muck! works like a charm!!
thanks so muck! works like a charm!!
2,217
Posted By inditopgun
Help needed to sort file
I have a text file comprising of 3 columns
1. First column - numeric count/frequency of error codes
2. Second column - alphanumeric hyphenated error code
3. Third column - Error code description...
2,357
Posted By inditopgun
I have narrowed down the problem further. I will...
I have narrowed down the problem further. I will strip out the absolute directory path for the file and extract a patter like

sfsdfsdfsdTemplates.xml
abcdefgsdfdsBindings.xml

from the list of...
2,357
Posted By inditopgun
My bad, I think I didn't clarify the requirement...
My bad, I think I didn't clarify the requirement correctly. Let me illustrate by specifiying an example output :

So the file looks like this

/usr/local/packages/runcmdlinetool...
2,357
Posted By inditopgun
Help with pattern search and return
I would like to write a script which will read a file containing a list of filenames of the format as shown below :

/usr/local/packages/runcmdlinetool...
6,313
Posted By inditopgun
Thanks!!!!
Thanks guys for your quick replies! Here is a summary of my testing the various solutions proposed by various people above :

cfajohnson - For some reason your solution returned PATH value for...
6,313
Posted By inditopgun
Thanks for your reply! Your solution works...
Thanks for your reply!

Your solution works fine to get the filename componet (without the extension) and so does mine.

My problem is getting the file extension (especially returning null when...
6,313
Posted By inditopgun
Here is my script for cfilename in `cat...
Here is my script

for cfilename in `cat filelist.txt | sort -u`
do
file_extension=`echo $cfilename | awk -F\/ '{print $NF}' | awk -F. '{print $NF}'`
export file_extension
...
6,313
Posted By inditopgun
Help with awk/shell script
I would like to write a shell script which will read a list of filenames(with absolute paths) from a file and then determine the just filename component (without the absolute path and the file...
8,412
Posted By inditopgun
still need help with the awk script
The solution proposed above returns file extension and filename excluding the full path and the extension, ONLY if the format of the filename is something like /home/john.doe/test.java or...
8,412
Posted By inditopgun
thanks!!
thanks Unix-god, the solution you gave works like a charm! though I couldn't figure out some of the intricate regexp embedded inside ;-))
8,412
Posted By inditopgun
Help with awk/shell script needed!
I have a shell script which reads a file named filelist.txt, containing a list of fully qualified filenames (with complete path), and then does some processing based on the file extension. In order...
Showing results 1 to 25 of 25

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