Sponsored Content
Full Discussion: sed not see last row
Top Forums Shell Programming and Scripting sed not see last row Post 302838203 by zaxxon on Monday 29th of July 2013 06:31:26 AM
Old 07-29-2013
Without doing any special, tried with GNU sed and the sed that comes with AIX, same result:
Code:
myuser@somehost$ cat aaa.txt
"","","","","","","","",""
"","","","","","","","",""myuser@somehost$
myuser@somehost$ sed 's/"[^"]*"//g' ./aaa.txt
,,,,,,,,
,,,,,,,,myuser@somehost$

Please show the output of the following command:
Code:
od -c aaa.txt

... and tell us your OS and version of sed you are using.
 

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

How to update a single row in a file with sed

Hi. I want to be able to update only one line in a file that matches a key using sed, but I can't seem to get this (the key is right at the beginning of each row) Here is what I have tried so far, but every row is being updated. I want the end result to be that the input file only has the single... (6 Replies)
Discussion started by: brendanf
6 Replies

2. Shell Programming and Scripting

How to assign value to a variable with row(using -n) returned by sed

Hi Friends, REQUIREMENT: Want to delete files from the current directory match with the same in the file test.txt set -x i=1 echo "i=$i" COUNT=`sed -n '$=' test.txt` echo "Count=$COUNT" while do "## Here is error##" FILETOREMOVE=`sed -n \'$i,1p\' test.txt` echo $FILETOREMOVE... (5 Replies)
Discussion started by: sourabhsharma
5 Replies

3. Shell Programming and Scripting

sed command to delete row

I want to use sed command to delete a matched row with a pattern. And I also want to delete previous and next row of that row. Which option can I use with sed ? (9 Replies)
Discussion started by: anhtt
9 Replies

4. Shell Programming and Scripting

Add row, awk, sed ?

I wrote script in bash which generates this report: phrase1;phrase2;phrase3;phrase4;phrase5;phrase6;phrase7;phrase8 phrase9;phrase2;phrase10;phrase4;phrase11;phrase12;phrase13;phrase14 phrase15;phrase16;phrase17;phrase18;phrase19;phrase20;phrase21;phrase22 ... I would like add name only... (3 Replies)
Discussion started by: patrykxes
3 Replies

5. Shell Programming and Scripting

help with sed to add delimiter and new field to each row

I have a file with millions of rows that I need to add a delimiter and a new field with a zero to the end of each row. (its too big to open and do a find and replace regex) I'm looking for the next line '\n' and need to replace it with a Unit Separator (hex \037) 0 \n. I've tried the... (2 Replies)
Discussion started by: kmac
2 Replies

6. Shell Programming and Scripting

SED: delete matching row and 4 next rows?

Hi, Tried to look for solution, and found something similar but could not adapt the solution for my needs.. I'm trying to match a pattern (in this case "ProcessType")in a logfile, then delete that line and the 4 following lines. The logfile looks as follows: ProcessType: PROCESS_A... (5 Replies)
Discussion started by: Juha
5 Replies

7. Shell Programming and Scripting

Replace last row of a column in bash/awk/sed

Hi, I've got a file with 3 columns which ends like this: ... 1234 345 1400 5287 733 1400 8472 874 1400 9317 726 1400 I want to replace the last row of the last column with the value 0. So my new file will end: ... 1234 345 1400 5287 733 1400 8472 874 1400 9317 726 ... (5 Replies)
Discussion started by: jhunter87
5 Replies

8. Shell Programming and Scripting

awk/sed to get unique row

Hello ALL, I have very huge file almost 25G size contents of the file are "|" delimited columns on each row eg: 1396745|1078529|KDS|2011-04-21 00:00:00.0|1100|30|2|2011-04-20 22:35:24.0|2011-04-20 22:35:24.0|0|2011-04-21 00:00:00.0|1100|2222434|2011-04-21 11:00:00.0|0|0|2011-06-29... (10 Replies)
Discussion started by: posner
10 Replies

9. Shell Programming and Scripting

Insert row without deleting previous data using sed

Hello, I want to add a new row to a file to insert data without deleting the previous data there. Example: file a b c d Output a b newtext c (6 Replies)
Discussion started by: joseamck
6 Replies

10. Shell Programming and Scripting

Re align in one row using sed

Hi, Anyone can help on how to re align my data in one row using sed. test.csv "url1","abc","project url1" 2016-08-16 "url2,"microsoft","project url2" 2016-08-18 need output like this "url1","abc","project url1","2016-08-16" "url2,"microsoft","project url2","2016-08-18" Thanks in... (8 Replies)
Discussion started by: fspalero
8 Replies
gdmXnestchooser(1)						   User Commands						gdmXnestchooser(1)

NAME
gdmXnestchooser, gdmXnest - run an XDMCP chooser SYNOPSIS
gdmXnestchooser [--background] [--broadcast] [--direct] [--no-gdm-check] [--no-query] [--xnest-extra-options=options] [--xnest=string] [gnome-std-options] hostname DESCRIPTION
gdmXnestchooser automatically gets the correct display number, sets up access, and runs Xnest with -indirect localhost. This ensures that you get an XDMCP chooser that is provided by your machine. You can also specify the hostname whose chooser should be displayed, so that gdmXnestchooser somehost runs the XDMCP chooser from host somehost inside an Xnest. gdmXnest is a symbolic link to gdmXnestchooser and is the same as running gdmXnestchooser with the --no-query and --no-gdm-check options. gdmXnest is useful for running Xnest without actually connecting somewhere. OPTIONS
The following options are supported: -b, --background Run in the background. -B, --broadcast Run broadcast instead of indirect (chooser). -d, --direct Do direct query instead of indirect (chooser). --no-gdm-check Do not check for running GDM. -n, --no-query Just run Xnest, no query (no chooser). -o, --xnest-extra-options=options Extra options for Xnest. The default is no options. -x, --xnest=string Xnest command line. The default value is Xnest. gnome-std-options Standard options available for use with most GNOME applications. See gnome-std-options(5) for more information. OPERANDS
The following operands are supported: hostname Hostname whose chooser should be displayed. EXAMPLES
Example 1: Running the XDMCP Chooser From Host somehost Inside an Xnest example% gdmXnestchooser somehost Example 2: Connecting to somehost Directly Run example% gdmXnestchooser -d somehost FILES
The following files are used by this application: /usr/bin/gdmXnestchooser Executable to run an XDMCP chooser ATTRIBUTES
See attributes(5) for descriptions of the following attributes: +-----------------------------+-----------------------------+ | ATTRIBUTE TYPE | ATTRIBUTE VALUE | +-----------------------------+-----------------------------+ |Availability |SUNWgnome-display-mgr | +-----------------------------+-----------------------------+ |Interface stability |Volatile | +-----------------------------+-----------------------------+ SEE ALSO
Latest version of the GNOME Desktop User Guide for your platform. gdmdynamic(1), gdmflexiserver(1), gdmphotosetup(1), gdmthemetester(1), gdm(1m), gdm-restart(1m), gdmsetup(1m), attributes(5), gnome-std- options(5) NOTES
Original man page written by Martin K. Petersen <mkp@mkp.net>, George Lebl <jirka@5z.com>. Copyright (c) 1998, 1999 by Martin K. Petersen. Copyright (c) 2001, 2003, 2004 by George Lebl. Copyright (c) 2003 by Red Hat, Inc. Updated by Brian Cameron, Sun Microsystems Inc., 2004, 2006. SunOS 5.11 1 Sep 2004 gdmXnestchooser(1)
All times are GMT -4. The time now is 07:13 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy