Sponsored Content
Top Forums Shell Programming and Scripting Need help with AWK code using xargs Post 302649267 by sususa on Thursday 31st of May 2012 05:59:40 AM
Old 05-31-2012
Adding suffix in row

I have an input file like
RELTEST_SITE2||RELTEST_SITE2|RELTEST_SITE2|Huawei-BTS|Cell Sites|Huawei|||South/KERALA/COCHIN/KAZIKODE|Active|Not Maint|12|fiber|GCRNUJRNUJB001HBT022|357||RELTEST_BSC2|||||

and i want to add suffix to GCRNUJRNUJB001HBT022 as "12345"

Kindly suggest a query.

Also suggest a query which works for 5 10 rows
 

10 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

xargs

Can I use xargs to send a list of commands to a process, to be acted upon individually? Here's what I have: a file that contains numbers, one per line. The desired outcome it to send each number to a DB2 query. I thought xargs would work, but it doesn't. I tried it like this: cat file | xargs |... (4 Replies)
Discussion started by: jpprial
4 Replies

2. Shell Programming and Scripting

why we use xargs..

hi , can anyone help me by saying why we use xargs.. is it acing like a place holder..? thanks, Krips. (3 Replies)
Discussion started by: kripssmart
3 Replies

3. UNIX for Advanced & Expert Users

xargs -P

I discovered that GNU's xargs has a -P option to allow its processes to run in parallel. Great! Is this a GNU thing, or is it supported by other platforms as well? (4 Replies)
Discussion started by: otheus
4 Replies

4. Shell Programming and Scripting

Using xargs

hi i just want to know that how do we use xargs command to find files which are greater than specified memory in a given directory (6 Replies)
Discussion started by: sumit the cool
6 Replies

5. Shell Programming and Scripting

Help in using xargs

Hi, I have a requirement to RCP the files from remote server to local server. Also the RCP has to run in parallel. However using 'xargs' retrives 2 file names during each loop. How do we restrict to only one file name using xargs and loop till remaining files. I use the below code for... (2 Replies)
Discussion started by: senthil3d
2 Replies

6. Shell Programming and Scripting

Xargs and

Hello there, Let me show you a simple example of what I am trying to achieve: 1) I have an input text file with some lines: 1 a 2 b 3 c 2) And I want to run a command with these lines as arguments (+ arbitrary extra arguments). For example: $ command "1 a" "2 b" "3 c" "bye" I... (7 Replies)
Discussion started by: tokland
7 Replies

7. Shell Programming and Scripting

Help with xargs

hi Could any one please tell me the option using which we can run multiple commands using xargs I have list of files, I want to run dos2unix and chmod at one shot on them I tried google n searched man pages but couldnt really find the solution , please help right now im doing this ls... (4 Replies)
Discussion started by: sunilmenhdiratt
4 Replies

8. Shell Programming and Scripting

Help with find, xargs and awk

Hi, I want to find some files and then search for some lines in it with a particular pattern and then write those lines into a file. To do this I am using something like this from command prompt directly. cd /mdat/BVG find -name "stmt.*cl" -newer temp.txt | xargs -i awk '/BVG-/{print}' {} >... (7 Replies)
Discussion started by: Sandhya Harsh
7 Replies

9. UNIX for Dummies Questions & Answers

Xargs

Hi, can anyone tell me in detail ? what the following do in detail ? I am trying to get a largest number in a list Thanks Tao LARGEST=$(echo $* | xargs -n1 | sort -nr | tail -1) (3 Replies)
Discussion started by: ccp
3 Replies

10. Shell Programming and Scripting

Xargs, awk, match, if greater - as a one-liner

Hi I have multiple files for which I want to use awk for the following: Read each line in each file- if any of the columns match "PVALUE=" followed by the number, then print the line in case the number following "PVALUE=" is greater than 0.05. I did the following: ls *.txt | xargs -I @ -P15... (14 Replies)
Discussion started by: ts89490
14 Replies
U3G(4)							   BSD Kernel Interfaces Manual 						    U3G(4)

NAME
u3g -- USB support for 3G datacards SYNOPSIS
To compile this driver into the kernel, place the following lines in your kernel configuration file: device u3g device ucom Alternatively, to load the driver as a module at boot time, place the following line in loader.conf(5): u3g_load="YES" DESCRIPTION
The u3g driver provides support for the multiple USB-to-serial interfaces exposed by many 3G USB/PCCard modems. The device is accessed through the ucom(4) driver which makes it behave like a tty(4). HARDWARE
The u3g driver supports the following adapters: o Option GT 3G Fusion, GT Fusion Quad, etc. (only 3G part, not WLAN) o Option GT 3G, GT 3G Quad, etc. o Vodafone Mobile Connect Card 3G o Qualcomm Inc. CDMA MSM o Huawei B190, E180v, E220 ('<Huawei Mobile>') o Novatel U740, MC950D, X950D, etc. o Sierra MC875U, MC8775U, etc. (See /sys/dev/usb/serial/u3g.c for the complete list of supported cards for each vendor mentioned above.) The supported 3G cards provide the necessary modem port for ppp, pppd, or mpd connections as well as extra ports (depending on the specific device) to provide other functions (additional command port, diagnostic port, SIM toolkit port). In some of these devices a mass storage device supported by the umass(4) driver is present which contains Windows and Mac OS X drivers. The device starts up in disk mode (TruInstall, ZeroCD, etc.) and requires additional commands to switch it to modem mode. If your device is not switching automatically, please try to add quirks. See usbconfig(5) and usb_quirk(4). SEE ALSO
tty(4), ucom(4), usb(4), usb_quirk(4), usbconfig(5) HISTORY
The u3g driver appeared in FreeBSD 7.2, is based on the uark(4) driver, and written by Andrea Guzzo <aguzzo@anywi.com> in September 2008. AUTHORS
The u3g driver was written by Andrea Guzzo <aguzzo@anywi.com> and Nick Hibma <n_hibma@freebsd.org>. Hardware for testing was provided by AnyWi Technologies, Leiden, NL. BSD
October 7, 2008 BSD
All times are GMT -4. The time now is 02:29 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy