10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Hi Guys,
I want to replace last 9 "," delimeters with "|" in a file
Example :-
"ashu,pant",3,5,5,7,7,87,8,8,8
"ashu,pant"|3|5|5|7|7|87|8|8|8
Help would be really appreciated.
Thanks guys,
Please use CODE tags as required by forum rules! (7 Replies)
Discussion started by: himanshupant
7 Replies
2. Shell Programming and Scripting
Hi,
I have a requirement like this
Line 1
Line 2
Line 3 Manager
Line 4
Line 5
I have to print like this
Have you done your work on time because I have to forward the work forward.
Any Help is really Appriciated.... (1 Reply)
Discussion started by: abhishek7687
1 Replies
3. Shell Programming and Scripting
Hey guys,
I have the following text:
1,2,3,4,5,6,'NULL','when',NULL,1,2,0,'NULL'
1,2,3,4,5,6,'NULL','what','NULL',1,2,0,1
I need the same text with the word NULL without commas
u know something like this:
1,2,3,4,5,6,NULL,'when',NULL,1,2,0,NULL
1,2,3,4,5,6,NULL,'what','NULL',1,2,0,1
... (1 Reply)
Discussion started by: lmyk72
1 Replies
4. Shell Programming and Scripting
Hi all,
The have 92 columns with combination of "" and , two delimiters and i need to takes some 32 columns only in that. i used awk command to extract .but its not working good.
Example: "aaaa","10,00.00",work,5555,.............
Command i tried :
awk -F"" -v OFS=","... (7 Replies)
Discussion started by: baskivs
7 Replies
5. Shell Programming and Scripting
I want to get IP address only from the input using sed. i.e string between between "(" and ")" delimeters.
echo "serverA (11.22.333.444) is alive" | sed 's/<??>/<??>/'
I know how to do this using cut and awk's split features.
I also want to know how to do this using awk's... (3 Replies)
Discussion started by: kchinnam
3 Replies
6. UNIX for Advanced & Expert Users
Hi,
I have the below script to check the count of delimeters for a file (here is File : test.csv Delimeter is ",")
awk '{gsub(/"*"/,x);print gsub(/,/,x)}' test.csv
And it return the output for each line as:
2
2
cat test.csv:
abc,xyz
"abc,zxyz",1
I need help one the below things:
- IS... (8 Replies)
Discussion started by: venkatajay_18
8 Replies
7. Shell Programming and Scripting
Hi All,
I want to execute this
cat /etc/passwd | awk -F: '{print $1,$7}'
with a fixed column on the first and second. Say on the first I want 12 column and second with 20 column.
Example
root /usr/bin/ksh
lp /bin/false
Thanks for any comment you may add. (5 Replies)
Discussion started by: itik
5 Replies
8. Shell Programming and Scripting
Hi,
i need to pick up dates and times from the file names which are of unequal length. The dates and time are delimited by dot. I am interested in getting the strings between the delimeter for fields -3, -4, -5 from behind (rear) so that the out put looks like :
071118.011300.556
I have... (2 Replies)
Discussion started by: oktbabs
2 Replies
9. Shell Programming and Scripting
Hi,
can anyone explain me below codes...i used the below one to use two delimeter(://) at a time..
but i am not able to understand the output options..
note: here there is no requirement ..only to understand myself about below command...
command:
awk -F "" '{print $1}' inputfile
... (2 Replies)
Discussion started by: Shahul
2 Replies
10. UNIX for Dummies Questions & Answers
Hi,
Newbie here. I have a file that consists of data that I want to convert to a csv file. For example:
Jul 20 2008 1111 / visit home / BlackBerry8830/4.2.2 Profile/MIDP-2.0 Configuration/CLOC-1.1 VendorID/105
Jul 21 2008 22222 / add friend / BlackBerry8830/4.2.2 Profile/MIDP-2.0... (3 Replies)
Discussion started by: kangaroo
3 Replies