10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
gpio_rw = gpiochip162
audio_aplay = HDMI_0
audio_aplay = HDMI_1
audio_aplay = HDMI_2
graphic_xrandr_show = USB1
graphic_xrandr_show = USB2
graphic_xrandr_show = USB3
graphic_change_resolution = eDP1
gpio_rw = "gpiochip162"
audio_aplay = "HDMI_0 HDMI_1 HDMI_2"
graphic_xrandr_show =... (3 Replies)
Discussion started by: yanglei_fage
3 Replies
2. Shell Programming and Scripting
I am trying to use either awk or sed to make names like
J. A. Smith and J.A. Martin Smith become
JA Smith and JA Martin SmithThe code should concatenate abbreviated letters that have a dot after them.
I have only been able to do this:
echo $name | sed 's/\.\ //g'But that concatenates the... (3 Replies)
Discussion started by: locoroco
3 Replies
3. Shell Programming and Scripting
I wish to convert the following in shell. Help me SED or AWK
ID= 12345,23456,67859 , 90225 , 67583
I can extract the right hand side of "=" using cut command "cut -d "=" -f2
after extracting that right side i would need like this
'12345','23456','67859','90225','67583'
1 ) the... (2 Replies)
Discussion started by: ilugopal
2 Replies
4. Shell Programming and Scripting
Hi,
I have the variable "$date_update" in that form:
2011-12-31T13:00:09Z and I would like to change it to
31/12/2011 13:00:09 (Date and Time separated by a blank).
Does anyone has a simple solution for that? (using Korn Shell)
Cheers
Jurgen (4 Replies)
Discussion started by: jurgen
4 Replies
5. Shell Programming and Scripting
Hi Guys,
Can someone help me on how to change the date format using sed or any unix command to give my desired output as shown below.
INPUT FILE:
69372,200,20100122T17:56:02,2
53329,500,20100121T11:50:07,2
48865,100,20100114T16:08:16,2
11719,200,20100108T13:32:20,2
DESIRED... (2 Replies)
Discussion started by: pinpe
2 Replies
6. Shell Programming and Scripting
Hi,
Please can I have some command to get yesterday in YYMMDD format?
This will be used in ksh
Thanks, (2 Replies)
Discussion started by: smalya
2 Replies
7. Shell Programming and Scripting
I have a text file sample.txt which contains some details like
Order
9001
Item Code
34
Quantity
4
Entry Date
2009-04-23
Ordered by
Ram
Order
9002
Item Code
34
Quantity
3 (1 Reply)
Discussion started by: lazydev
1 Replies
8. Shell Programming and Scripting
Hi I have a file in the following format
I have to convert this into four files , in the format as below.
Data under Process SFA SUccess Section gets into file Named SFA_SUCCESS inthe following format
ctr1,120
ctr2,1785
Data under Process SFA FAil gets into file Named SFA_Fail inthe... (2 Replies)
Discussion started by: sapics
2 Replies
9. UNIX for Advanced & Expert Users
hi all...
i have a big problem, and i hope someone can help me...
i have a flat file, and its columns are separated by comma (CSV), something like this:
78 , 204R180 , 90/100 , 200001 , 12 ,200002 ,13 .....
78 , 204R180 , 90/100 , 200001 , 29 ,200002 ,30 .....
78 , 204R180 , 90/100 ,... (0 Replies)
Discussion started by: DebianJ
0 Replies
10. Shell Programming and Scripting
I have about 300 files which has the function getDBBackend().
How to write a program to change the empty function from the old format to the new format?
Old empty function format are either:
function getDBBackend()
{
// Not available
} // getDBBackend
or:
function... (0 Replies)
Discussion started by: powah
0 Replies