10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
I will appreciate if you help me here in this script in Solaris Enviroment.
Scenario:
i have 2 files :
1) /tmp/TRANSACTIONS_DAILY_20180730.txt:
201807300000000004
201807300000000005
201807300000000006
201807300000000007
201807300000000008
2)... (10 Replies)
Discussion started by: teokon90
10 Replies
2. Shell Programming and Scripting
Hello is it possible with awk or sed to replace any white space with the previous line characters in the same position?
I am asking this because the file I have doesn't always follow a pattern.
For example the file I have is the result of a command to obtain windows ACLs:
icacls C:\ /t... (5 Replies)
Discussion started by: nakaedu
5 Replies
3. Shell Programming and Scripting
How can I represent the position of 1 (considering only the 1s after the colon) in the word from field5 and above; counting from right to left.
Input:
TT-124 06-03-14 08-02-10 FAS CAT1:10
TT-125-1 05-03-14 10-06-08 CAS CAT2:1010 FAT1:10000
TT-125-3 07-03-14 11-02-06 FAS FAT1:1101... (6 Replies)
Discussion started by: aydj
6 Replies
4. Shell Programming and Scripting
So I'm iterating through a series of strings and I want to pick out a character in a certain position
so if I have the string
abcde
asigned to the variable $B.
Let $i=2, then I'd like it to asign the variable $a=b
similarly, if $i=3 then $a=c
The only things I can think of work with cut,... (3 Replies)
Discussion started by: viored
3 Replies
5. Shell Programming and Scripting
Hi,
i want find the character '-' in a file from position 284-298, if it occurs i need to replace it with 'O ' for the position in the file. How to do that using SED command.
thanks in advance,
Sara (9 Replies)
Discussion started by: Sara183
9 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,
Can some one guide me to identify the position of a character using index in UNIX.
I have a record like "17/11/2010 15:16:39;reject;10.44.48.65;daemon alert; src: 10.44.48.112; dst: 172.21.52.88" . I need to identify the value which comes after _src:_ (_ denotes space).
I am able to... (15 Replies)
Discussion started by: suneel.mekala
15 Replies
8. UNIX for Dummies Questions & Answers
Hello all,
I have a script which picks up a series of large numbers, each of which are actually amalgamations of a series of other numbers. Unfortunately there are no separator characters so I can't use awk -F. I am looking for a way of splitting them into variables according to their... (4 Replies)
Discussion started by: michaeltravisuk
4 Replies
9. UNIX for Advanced & Expert Users
Hi All,
I have a file of the format :
idsfskjvfdznvdfjvh
ierwjfkncmvlkmc
xszkmdvnosndzjndf
weuhrndzierfncv
rndsjnsllshens
iernzkfndslkdhf
zkinewfinfvlkmvd
I wish to count the occurrences of character 'z' in the file.
I also need to find out the position of 'z' in various lines.
and... (3 Replies)
Discussion started by: rochitsharma
3 Replies
10. UNIX for Dummies Questions & Answers
Hi ,
I am required to view the fixed postion file very often . I am looking for the utility like this
if the file has a one or multile line
abcdefghijklmnopqr
Utility should make my file look like this
12345678910111213141516--------------------------
abcdefghijk l m n o p q r ... (4 Replies)
Discussion started by: akrathi
4 Replies