Hi
I have to create a windows batch file which will read an input file and remove "double quotes" from each line of the file.
For eg.If input file name is abcd.csv and contents is :
"asasd,123123,213213,asd"
"esfrf,dsfsdf,234324,sdfsdf"
Then the batch file should remove "" from the... (11 Replies)
Hello every body,
Kindly support me to "copy a file without remove the contents of the target file"
Thanks in advance. :)
Ahmed Amer
Cairo,Egypt (2 Replies)
Hi friends,
I have a doubt, I am not sure whether it is possible ah nu.
I am having a file(sample.txt) which contain 5 lines.
I want to remove 1st line in the file and save the file with same old name (sample.txt).
For removing 1st line i am using
sed 1d filename
But dono how to... (3 Replies)
Hi,
I have two files with below data::
file1:-
123|aaa|ppp
445|fff|yyy
999|ttt|jjj
555|hhh|hhh
file2:-
445|fff|yyy
555|hhh|hhh
The records present in file1, not present in file 2 should be writtent to the out put file.
output:-
123|aaa|ppp
999|ttt|jjj
Is there any one line... (3 Replies)
I have a text file which has blank lines. I want them to be removed before upload it to DB using SQL *Loader. Below is the command line, i use to remove blank lines.
sed '/^ *$/d' /loc/test.txt
If i use the below command to replace the file after removing the blank lines, it replace the... (6 Replies)
Hi
my requirement is that i want pull the bad records from input file and move those records in to a seperate file.
that file has to be sent via email..
any suggentions please (1 Reply)
Hello Unix board community,
I have to program a shell script, but I am a complete noob so I hope I get some help here. The assignment is as follows:
The program removes all comments regardless of formatting or language from files with specific file name extensions (php, css, js, ...).... (3 Replies)
Good Afternoon,
I start with a file named biglist.txt.
I have another file smallerlist. txt
I want to remove the lines from smallerlist.txt from biglist.txt and leave those lines that do not reside in smallerlist.txt.
Thanks !! (2 Replies)
Sorry for the weird title but i have the following problem.
We have several files which have between 10000 and about 500000 lines in them. From these files we want to remove lines which contain a pattern which is located in another file (around 20000 lines, all EAN codes). We also want to get... (28 Replies)
Hello,
I have two files of the following form. I would like to remove from File.A where the first three colum matches values in File.B to give the output in File.C
File.A
121 54321 PQR CAT
122 765431 ABC DOG
124 98765 ZXY TIGER
125 86432 GEF LION
File.B
122 765431 ABC
125 86432 GEF... (4 Replies)
Discussion started by: Gussifinknottle
4 Replies
LEARN ABOUT DEBIAN
dndir
DNDIR(1) General Commands Manual DNDIR(1)NAME
dndir - Display VMS directories
SYNOPSIS
dndir [options] directory
Options:
[-sdpbolcntVh] [-w width] [-f filename width]
DESCRIPTION
dndir displays the contents of directories on VMS systems.
It behaves similarly to the ls command in that, by default, it will display filenames in columns across the screen if the output is a TTY
or in a single column otherwise. Options can be added to the command line to display more information about the files or to adjust the
column widths.
The directory name should be in the usual transparent DECnet format of node"user password"::directory (see EXAMPLES ). If a wildcard speci-
fication is omitted from the command line then *.*;* is assumed.
As with the dncopy and dntype commands, the VMS file specification should be enclosed in single quote marks to protect special characters
from the shell.
OPTIONS -s Shows the VMS file size in 512-byte blocks or bytes if the -b switch is present.
-d Shows the file creation date.
-p Shows the file protection.
-o Shows the file's owner.
-b Shows the file size in bytes rather than 512 byte blocks
-l Long format - shows all of the above (including the file size in bytes)
-t Show the total number of blocks in all the files listed. Note that this works even if you did not ask for the size to be displayed.
-T connect timeout
Specifies the maximum amount of time the command will wait to establish a connection with the remote node. a 0 here will cause it to
wait forever. The default is 60 seconds
-e Show (nearly) everything about the file. Like DIR/FULL
-n Do not show the header line with the VMS directory name on it. This is useful for embedding dndir in a pipeline.
-c Force the output to single column even on a TTY.
-w N Sets the width of a column to be N characters. The default is 22. This option only has an effect on the brief (default) output to a
TTY device.
-f N Sets the width of the displayed filename to be N characters. The default is 18. If the filename is longer than this number then any
requested file attributes will be displayed on the next line.
-h -? Displays help for using the command.
-V Show the version of the tools package that dncopy comes from.
EXAMPLES
dndir 'myvax::'
dndir 'tramp"christine pjc123"::[.pics.cats]*.jpg'
dndir 'trisha"system -"::sys$system:*.exe'
Prompts for a password rather than typing it on the command line.
SEE ALSO dntype(1), dncopy(1), dndel(1), dntask(1), dnsubmit(1), dnprint(1)DECnet utilities September 20 1998 DNDIR(1)