10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
My file has contents like below. It is named as output_file.txt
/usr/sas/sas_config/Lev1/SASApp/StoredProcessServer/Logs/SASApp_STPServer_2015-08-27_tmptcmsaslva2_19142.log
/usr/sas/sas_config/Lev1/SASApp/StoredProcessServer/Logs/SASApp_STPServer_2015-08-27_tmptcmsaslva2_19142.log... (12 Replies)
Discussion started by: Ram Kumar_BE
12 Replies
2. Shell Programming and Scripting
HI Guys,
I have Input:- A
nput A.txt
000100/port_xcu_dev_6/port_0_dev_7
000100/port_xcu_dev_6/port_1_dev_10
000100/port_xcu_dev_2/port_2_dev_8
000100/port_xcu_dev_3/port_3_dev_11
000100/port_xcuv_9/port_4_dev_9 ... (3 Replies)
Discussion started by: pareshkp
3 Replies
3. Shell Programming and Scripting
Hi,
I have to search a word in a text file and then I have to delete lines above from the word searched . For eg suppose the file is like this:
Records
P1
10,23423432
,77:1
,234:2
P2
10,9089004
,77:1
,234:2
,87:123
,9898:2
P3
456456
P1
:123,456456546
P2
abc:324234 (2 Replies)
Discussion started by: vsachan
2 Replies
4. Shell Programming and Scripting
Hi All,
I have a file with the data as below. In this i want to delete the last word. Could you pls help me.
$INSTALL_HOME/lib/fm_voucher_pol.so
$INSTALL_HOME/source/sys/fm_apn_pol/fm_apn_pol_device_set_state.c
In the above two lines i want to delete fm_voucher_pol.so and... (5 Replies)
Discussion started by: girish.raos
5 Replies
5. Shell Programming and Scripting
Friends, I'm looking for a command that delete the first tho caractere in a word. Here is an exp :
I want to replace "20091001" by "091001"
or "replace" by "place"
Thx, (13 Replies)
Discussion started by: newpromo
13 Replies
6. Shell Programming and Scripting
I am trying to visually select a section of text in vim and then substitute for it using the :%s/ sequence.
First I visually select text. Then I yank using "ay. Then I type :%s/ followed by Control R and the register name, in this case a.
This fills in the text I have visually selected into... (6 Replies)
Discussion started by: Enobarbus37
6 Replies
7. UNIX for Dummies Questions & Answers
i have created the following input script
CREATE OR REPLACE VIEW MMSSENDAVGUPLOADTIME_GN
AS
sp_strip_mean_value_type.get_val(MMSSENDAVGUPLOADTIME) MMSSENDAVGUPLOADTIME_val
sp_strip_mean_value_type.get_val(MMSSENDAVGUPLOADTIME) MMSSENDAVGUPLOADTIME_counter
select... (1 Reply)
Discussion started by: gseptember
1 Replies
8. Shell Programming and Scripting
Hi All,
I want to delete a word from file. How to do that.
I have file that contains the following Information.
EntityName:alba00r1.mis.amat.com OverallStatus:Minor IfName:Gi1/0
EntityName:alba00r1.mis.amat.com ] OverallStatus:Normal IfName:Se0/0/0... (4 Replies)
Discussion started by: ntgobinath
4 Replies
9. UNIX for Dummies Questions & Answers
I have a file which has data in columns.
Is there a way to yank columns in vi?
I tried searching in this forum. I did not find it.
Please help me out. (2 Replies)
Discussion started by: stevelrf
2 Replies
10. UNIX for Dummies Questions & Answers
This is supposed to be simple to do but I am having a hard time trying to yank 1 line (yy) but creating from it 100 lines. I can do yy then keep hitting . to repeat but it doesn't make sense. I may want to create 1000 lines from the one liner.
yy then 99 p doesn't work....
Thanks.
I was... (5 Replies)
Discussion started by: giannicello
5 Replies