10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Hello everybody, I'll get one more help
I have a cabundle file that I need to separate into 2 parts, the first sequence and the second sequence, I thought of several things but I did not remember anything that could actually accomplish this separation and transform into 2 variables, first... (4 Replies)
Discussion started by: c0i0t3
4 Replies
2. Shell Programming and Scripting
Friends have the following code that is correct.
BEGIN { num_reg = 0
suma_iva=0
}
{
num_reg++
suma_iva=suma_iva+int(substr($0, 103,9))
}
END{
printf ("%011d",suma_iva)
}
I have the following problem, I have to do just that but this time... (4 Replies)
Discussion started by: tricampeon81
4 Replies
3. Shell Programming and Scripting
Hello All,
I need help with the below, I would appreciate any tip.
I have a file as below
Input file
Apple: Green
Banana: Yellow
Grapes: Black
Apple: Red
Banana: Green
Grapes: Green
Grapes: Brown
Apple: Pale Red
Banana: Greenish yellow
Grapes: Brown
Apple: Yellowish... (14 Replies)
Discussion started by: m6248m
14 Replies
4. UNIX for Advanced & Expert Users
hi,
I am trying to get the FileType using the File command. I have one file, which holds Group separator along with ASCII character.
It's a Text file.
But when I ran the File command the FileType is coming as "data".
It should be "ASCII, Text file".
Is the latest version of File... (6 Replies)
Discussion started by: Arpitak29
6 Replies
5. Shell Programming and Scripting
Hi All,
I'm trying to view data using cut command for a fixed length file using the below command:
cut -c 1-3,4-5 FALCON_PIS_00000000.dat
I want to mention a separator say | (pipe) in between 1-3 and 4-5.
Please let me know how to achieve this.
Thanks in Advance, (3 Replies)
Discussion started by: HemaV
3 Replies
6. Shell Programming and Scripting
I have tried to use ">" as record separator, but it doesn't work.
I have tried this:
awk BEGIN{RS=">"}'{print $0}' input
output:
awk: BEGIN{RS=>}{print $0}
awk: ^ syntax error
awk BEGIN{RS="\>"}'{print $0}' input
awk: BEGIN{RS=\>}{print $0}
awk: ^ backslash not... (2 Replies)
Discussion started by: locoroco
2 Replies
7. Shell Programming and Scripting
Hello all,
I'm trying to break down a file with the following format:
entries
dzdf
daff
enries
dfln
fnljfd
.
.
..
.
I'm reading this file, using "[" as my separator. It's working quite well, but I would like to be able to read the "[" character into my array as a valid... (4 Replies)
Discussion started by: Khoomfire
4 Replies
8. Shell Programming and Scripting
Hello Experts,
I am back, with another doubt. I am not sure what it relates to this time - awk or the print command actually. I'll explain the scenario:
I have a huge file, and it has some traces(logs). In between those logs, there are statements with some SQL queries. All I want to do is... (4 Replies)
Discussion started by: hkansal
4 Replies
9. Shell Programming and Scripting
can anyone tell me any way to change record separator (default is new line).
RS in nawk as not working.
Thanks in advance.
Regards
Rochit (7 Replies)
Discussion started by: rochitsharma
7 Replies
10. UNIX for Dummies Questions & Answers
can some one give me a list of unix separtor(s) if one than just the separator please thank you. (2 Replies)
Discussion started by: Black mage2021
2 Replies