10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
My file looks like this....
User:SYSTEM,O/S User:oracle,Process:3408086,Machine:hostname ,Program:sqlplus@hostname (TNS V1-V,Logon Time:25-JUL-20
14 13:36
I want to get the date and time which is displayed after the 'Logon time'. (5 Replies)
Discussion started by: Nagesh_1985
5 Replies
2. Shell Programming and Scripting
Hi all,
I'm pretty new to Shell scripting and I need some help to split a source text file into multiple files. The source has a row with pattern where the file needs to be split, and the pattern row also contains the file name of the destination for that specific piece. Here is an example:
... (2 Replies)
Discussion started by: cul8er
2 Replies
3. Shell Programming and Scripting
Dear Friends,
I want to take last 10 characters of a file name in a variable.
E.g.
file name is
123432311234567890.txt
then we want "1234567890" to be taken in an variable.
Request you to guide me to do the same
Thanks in anticipation
Anushree (7 Replies)
Discussion started by: anushree.a
7 Replies
4. Shell Programming and Scripting
Hi experts,Please help me for the below requirement. i have a source file.(lets say contains 50 columns). I am extarcting five columns from the source file by using pattern file. for example input file:--------a,b,c,d,"a,g","v b",s,koutputfile=======a,"a,g","v b",s,kThanks in advance subhendu (2 Replies)
Discussion started by: subhendu81
2 Replies
5. Shell Programming and Scripting
Hi,
I have a file named Mani.txt. The contents are like this
cat Mani.txt
--------------------------------------------------------
Hi there how r u
My Name is Mani
Bye
------------------------------------------------------------
I want to cut the first and last lines from the file... (15 Replies)
Discussion started by: pathanjalireddy
15 Replies
6. Shell Programming and Scripting
Dear Friends,
Here I have two queries.
1. Want to make folder named as last three characters of a file name (length of file name can vary file to file)
E.g File name is AAAACCCCBBBB.txt (12 Characters excluding file extension) then folder to be created is BBB
Irrespective of... (7 Replies)
Discussion started by: anushree.a
7 Replies
7. Shell Programming and Scripting
I have a 30 column tab delimited record file. I need to extract the first 10column. The following command to cut was not working
cut -f 1-10 -d "\t" filename.
Could any one keep on this .
Thanks in Advance (4 Replies)
Discussion started by: vinod.thayil
4 Replies
8. Shell Programming and Scripting
Guys,
Can any one tell me how can we cut the columns and move each column in to a separate file using awk?
I have a tab delimited file as shown below,
1213 wattt werree
2345 skhasdjh aasas
I want to output this in to three files named a.txt,b.txt and c.txt
say a.txt... (3 Replies)
Discussion started by: Serious Sam
3 Replies
9. Shell Programming and Scripting
Hi falks,
I have the following configuration file structure:
file1:N
file2:Y
file3:Y
file4:N
......
I need to cut from the configuration file only the file with the sign "Y" in the end and copy it to some directory.
What is the best way to do it?
Thanks in advance,
Nir (8 Replies)
Discussion started by: nir_s
8 Replies
10. UNIX for Dummies Questions & Answers
Hi,
I have this problem of separating 10 consecutive lines from a file, say starting from 21 to 30... I have used a filter like this..
head -n 30 myfile | tail -n 10
Is there a simpler way than this? (2 Replies)
Discussion started by: Vishnu
2 Replies