Search Results

Search: Posts Made By: paruthiveeran
1,801
Posted By paruthiveeran
Thanks. It produced the following output ...
Thanks. It produced the following output

FILE_NAME=/core/local/in/file_name3FILE_NAME=/core/local/in/file_name2FILE_NAME=/core/local/in/file_name1

I am looking for an output of this format...
1,801
Posted By paruthiveeran
search and replace with data from another file
Can someone help me in solving the problem below.

I have the following two files

template_file
------------
...other data..
...other data..
FILE_NAME=
...other data..
...other data..
...
3,823
Posted By paruthiveeran
Really appreciate all the quick responses. I am...
Really appreciate all the quick responses. I am going to go with the awk solution suggested by Franklin. works like a charm. Thanks to everyone for your suggestions.
3,823
Posted By paruthiveeran
Splitting a file based on first 8 chars
I have an input file of this format
<Date><other data>

For example,

20081213aaaaaaaaa
20081213bbbbbbbbb
20081220ccccccccc
20081220ddddddddd
20081220eeeeeeeee
20081227ffffffffffffff

...
1,536
Posted By paruthiveeran
this is just going to display the dates which is...
this is just going to display the dates which is not what I want. I want to edit the dates thru a script.
1,536
Posted By paruthiveeran
editing delimited file
I have a comma delimited file with following data

text1,text2,text3,text4,date1,date2,textn,textn+1

I want to edit ONLY the dates in the file. date1 and date2 to some other value. say date3 and...
4,515
Posted By paruthiveeran
multiple comparison in awk
I have an input file. Each line in it has several characters. If the first three characters of the line is '000' or '001' or '002' or '003', I need to print it in output. How can I do this in awk.
...
2,560
Posted By paruthiveeran
Thanks, it worked
Thanks, it worked
2,560
Posted By paruthiveeran
tough parsing
I have a string as "Period= 20090531 Client Name= Clayton Lumbar Company Destination= MD"

I want to parse the string and store it in 3 different variables.

$period (should get value 20090531)...
52,661
Posted By paruthiveeran
Thanks. It worked.
Thanks. It worked.
52,661
Posted By paruthiveeran
Reading a file in C shell
I recently started working in c shell and I am embarrassed to say I can't get a single read using while command to work

while read line
do
print $line
done < list.txt

Can somebody help. I...
4,629
Posted By paruthiveeran
extracting selected few lines through perl
How can I extract few lines(like 10 to 15, top 10 and last 10) from a file using perl.

I do it with sed, head and tail in unix scripting. I am new to perl. Appreciate your help.
39,463
Posted By paruthiveeran
Is there a generic syntax of this? sed -n -e...
Is there a generic syntax of this?

sed -n -e 's/^[0-9]\{8\}20*/&/p' file

I understand as you are skipping until 8th position and do a pattern search with 20*. I do not understand how the [0-9]...
39,463
Posted By paruthiveeran
That works fine. Much appreciated. I am...
That works fine. Much appreciated.

I am curious to know. Are there any alternate ways to do it other than using awk? Like sed, grep or cut. Do any other unix utility provide the option of...
39,463
Posted By paruthiveeran
Extracting lines that match string at certain position
I have a fixed length file in the following format

<date><product_code><other data>

The file size is huge and I have to extract only the lines that match a certain product code which is of 2...
Showing results 1 to 15 of 15

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