10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Hi friend,
I have one file , and i want to read that file character by character.
I need this script in ksh.
while using read option with -n1 am getting error.
while read -n1 c read has bad option
And if i am using below script, then if in a line has space like this ( Pallvi mahajan)... (10 Replies)
Discussion started by: pallvi_mahajan
10 Replies
2. Shell Programming and Scripting
Hi,
I need to extract the first character of second column of my file. If the condition matches, then I need to print the 2nd and 3rd column as my output
I tried below mentioned query but it was not working
awk -F'|' '$2~/^5/' Sgn_group.txt
File Name : Sgn_group.txt
country... (2 Replies)
Discussion started by: suresh_target
2 Replies
3. Shell Programming and Scripting
Hi there,
A total sed noob here. Is there a way using sed to delete everything before a character AND after another character on each line in a file? The deletion should also delete the indicating characters(here: an opening and a closing parenthesis).
The original file would look like... (3 Replies)
Discussion started by: bnbsd
3 Replies
4. Shell Programming and Scripting
I have hundreds of files to process. In each file
I need to look for a pattern then
extract value(s) from next line and then
search for value(s) selected from point (2) in the same file at a specific position.
HEADER ELECTRON TRANSPORT 18-MAR-98 1A7V
TITLE CYTOCHROME... (7 Replies)
Discussion started by: AshwaniSharma09
7 Replies
5. Solaris
I get a file which has all its content in a single row.
The file contains xml data containing 3000 records, but all in a single row, making it difficult for Unix to Process the file.
I decided to insert a new line character at all occurrences of a particular string in this file (say replacing... (4 Replies)
Discussion started by: ducati
4 Replies
6. Shell Programming and Scripting
hi ,
i am having a file
Full_ARTMAS_20110510152425.xml in my local directory. i wanted to extract the character at the 35143546 th position at line 1 of this file.Can any body help me how to do it???
regards
Anjali (2 Replies)
Discussion started by: angel12345
2 Replies
7. Shell Programming and Scripting
Hi guys,
I have txt file and I would need to extract all the contents between specific line numbers.
Line 1: apple
Line 2: orange
Line 3: mango
Line 4: grapes
Line 5: pine apple
I need to extract the content between line 2 and 4, including the contents of Line 2 and 4 so the ouput... (2 Replies)
Discussion started by: gowrishankar05
2 Replies
8. HP-UX
Hi Experts,
I have data coming in 4 columns and there are new line characters \n in between the data. I need to remove the new line characters in the middle of the row and keep the \n character at the end of the line.
File is comma (,) seperated.
Eg:
ID,Client ,SNo,Rank
37,Airtel \n... (8 Replies)
Discussion started by: sasikari
8 Replies
9. Shell Programming and Scripting
Hi,
I would like extract from a file a character or pattern after ( n + 1) a specific pattern (n) . ( i supposed with awk)
how could i do ?
Thanks in advance. (1 Reply)
Discussion started by: francis_tom
1 Replies
10. UNIX for Advanced & Expert Users
HI Guys,
Have a Doubt......
I have a pattern "abcdef"
and i need to extract the third character..ie(c)
How to achieve it? (10 Replies)
Discussion started by: aajan
10 Replies
uuencode(5) File Formats Manual uuencode(5)
Name
uuencode - format of an encoded uuencode file
Description
Files output by consist of a header line, followed by a number of body lines, and a trailer line. The command ignores any lines preceding
the header or following the trailer. Lines preceding a header must not, of course, look like a header.
The header line is distinguished by having the first six characters by the word ``begin'', followed by a space. The next item on the line
is a mode (in octal) and a string which names the remote file. A space separates the three items in the header line.
The body consists of a number of lines, each at most 62 characters long including the trailing new line. These consist of a character
count, followed by encoded characters, followed by a new line. The character count is a single printing character and represents an inte-
ger, the number of bytes the rest of the line represents. Such integers are always in the range from 0 to 63 and can be determined by sub-
tracting the character space (octal 40) from the character.
Groups of 3 bytes are stored in 4 characters, with 6 bits per character. All are offset by a space to make the characters print. The last
line may be shorter than the normal 45 bytes. If the size is not a multiple of 3, this fact can be determined by the value of the count on
the last line. Extra dummy characters are included to make the character count a multiple of 4. The body is terminated by a line with a
count of zero. This line consists of one ASCII space.
The trailer line consists of "end" on a line by itself.
See Also
mail(1), uucp(1c), uudecode(1c), uuencode(1c), uusend(1c)
uuencode(5)