Search Results

Search: Posts Made By: atlantis_yy
1,022
Posted By atlantis_yy
I have one more clarification, with the above...
I have one more clarification, with the above commands I am getting the desired result. But at the end of last line in each file generated I get a extra space. When viewing the file in vi editor I...
1,022
Posted By atlantis_yy
Both the approaches worked fine. Thanks to...
Both the approaches worked fine.

Thanks to you both !
1,022
Posted By atlantis_yy
awk performance issue
Hi,
I have the code below as


cat <filename> | tr '~' '\n' | sed '/^$/ d' | sed "s/*/|/g" > <filename>
awk -F\| -vt=`date +%m%d%y%H%M%S%s`...
9,811
Posted By atlantis_yy
Hi, I have the code below as ...
Hi,

I have the code below as



cat <filename> | tr '~' '\n' | sed '/^$/ d' | sed "s/*/|/g" > <filename>
awk -F\| -vt=`date +%m%d%y%H%M%S%s`...
9,811
Posted By atlantis_yy
Wonderful, It worked !!! Thanks a ton.
Wonderful, It worked !!!

Thanks a ton.
9,811
Posted By atlantis_yy
I want the time format as date +%m%d%y%H%M%S. ...
I want the time format as date +%m%d%y%H%M%S.

I tried the suggested way, but when doing it I got the files generated as

${FILE}.${TIMESTAMP}3
${FILE}.${TIMESTAMP}2
${FILE}.${TIMESTAMP}1
9,811
Posted By atlantis_yy
[Solved] Adding time stamp to file name
I have the awk

awk -F\* '$1=="ST",$1=="SE"{if($1=="ST"){close(f);f="sample" ++i} ; $1=$1; print>f}' OFS=\| <filename>

How to add the time stamp to the file name mentioned as "sample"
...
1,722
Posted By atlantis_yy
For adding time stamp in the file name getting...
For adding time stamp in the file name getting generated, I modified the above awk as highlighted below

DATE=`date +%m%d%y%H%M%S`
file="214_"
awk -F\*...
1,722
Posted By atlantis_yy
Yes there will be n number of files to be...
Yes there will be n number of files to be processed. so how to do the looping part so that it take the file 1 by 1 till the last file.

Let me try for the file name with the date time stamp.
1,722
Posted By atlantis_yy
Hi, I tried and it worked fine, but here they...
Hi, I tried and it worked fine, but here they were telling that not to use awk.

Let me suggest them with this again. But in the awk

awk -F\*...
1,722
Posted By atlantis_yy
perl script to korn shell script
I have a perl script which replaces "*" with "|" and "~" with "\n" also it takes the file content starting with ST till record starting with SE written a differnet file, I wanted this to be...
1,926
Posted By atlantis_yy
Skrynesaver, The script that you gave is...
Skrynesaver,
The script that you gave is throwing error when adding any unix commands. If I need to change it unix script what should I do it so that I can also include the basic unix commands like...
2,912
Posted By atlantis_yy
It gives syntax error for when I execute it in a...
It gives syntax error for when I execute it in a script as you have mentioned.
2,912
Posted By atlantis_yy
Hi, Thanks for your reply, But I dont see any...
Hi,
Thanks for your reply, But I dont see any carriage return character metioned in your command.
Moreover I tried the command that you provided but i dont see the result. Could you please suggest...
2,912
Posted By atlantis_yy
Search and replace command
Hi,
I wanted to replace the character '~' with \n (carraige retrurn or new line character)

I am tried the commands like

s/~/\n/g

s/~//\n/g

but the commands says that no "No match...
1,926
Posted By atlantis_yy
Skrynesaver, Wow, wonderful!!!!!!! It...
Skrynesaver,

Wow, wonderful!!!!!!! It worked :) :) :) Thanks.

Now here you hardcoded the file name, suppose ie we have to modify the script which picks the file from a particular directory...
1,926
Posted By atlantis_yy
Hi [COLOR=black][FONT=Verdana]Skrynesaver, I...
Hi [COLOR=black][FONT=Verdana]Skrynesaver,
I tried you script, and in the while condition I gave the filename with complete path as

perl -e '
$file_counter=0;
$in_record=0;...
1,926
Posted By atlantis_yy
Hi, I am new to UNIX scripting, till now I have...
Hi, I am new to UNIX scripting, till now I have written a script which will read the file and it will replace the '*' with '|'. But not sure how to written the content into different files as...
1,926
Posted By atlantis_yy
Splitting the file
I have a format of file, I need to seperate the file the different colored data to separate files like file1, file2 and file 3. Also replace '*' with '|' and if there is any '~' replace with '\n'...
2,824
Posted By atlantis_yy
rename command is not working, its says ...
rename command is not working, its says

hpomt73e:/u/bxsunda> rename s/Z.*/Z/ ap_*.Z.*
ksh: rename: not found
2,824
Posted By atlantis_yy
Script to rename a group of files
Hello,

I have a directory which has the file names as

ap_boise_20091109.Z.20091110
ap_aero_20091020.Z.20091021
.
..
...

I have to remove the time stamp after which is present after Z....
Showing results 1 to 21 of 21

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