Sponsored Content
Full Discussion: Parsing Files
Top Forums Shell Programming and Scripting Parsing Files Post 302184856 by almeidamik on Sunday 13th of April 2008 10:46:21 AM
Old 04-13-2008
Thanks I figured it out. ^^

Well, I have a different version of xargs. It didn't have the option L. However, it used n for arguments.

So, it turned it out to be.

Code:
paste file1 file2 | xargs -n 2 mv

Now I have to work to clean up my code and make the second part of the script. ^^ Thanks a lot. :P
 

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

parsing files

I have a large file that needs to be weeded through every month. The file has events that go back forever, but on a monthly basis I need to look thru the last months worth of data. Is there a best way to get the script to know where it left off last time it read the file, like maybe putting a... (1 Reply)
Discussion started by: BG_JrAdmin
1 Replies

2. Shell Programming and Scripting

Parsing files

Hi I have code to parse a properties file (${name}) and put the letters 'XxxX' on the end of each line that has an '=' sign in it. See bellow: sed -e '/=/s/,/XxxX,/' -e '/=/s/$/XxxX/' "${name}" >"${RESULT}" I want to change this so that it will ONLY do this to lines the DON'T end in... (2 Replies)
Discussion started by: jascas
2 Replies

3. Shell Programming and Scripting

Parsing and sum column from different files

Hy everybody, I have three file with the same formating. I need to parse those files in order that for each first column of the first file, sum the second columns of first,second and third files. Can someone help me ? example : # more file1 00:00:12,137;7,0333333 # more file2... (6 Replies)
Discussion started by: robdcb
6 Replies

4. Shell Programming and Scripting

Parsing all the files in the directory and replacing them

Hi, I would like to parse all the files (*.c and *.h) in the sub-directories and if *.c or *.h files are found I would like to append a string and place it in the same directory. How do I do that? For example: I'm gonna operate on dir1 level. $dir1/subdir1/test.h should be done as... (1 Reply)
Discussion started by: suryaemlinux
1 Replies

5. Shell Programming and Scripting

Help: Parsing a file to new output files

I have an output file similar to this >HWI-ST766:129:D0WJDACXX:4:2308:16645:199681.1 /start=1 /end=100 /strand=+ Eukaryotic18S_rRNA GATTAAGCCATGCATGTGTAAGTTTAAAGTCCTAGAAGGATGAAACTGCGGACGGCTCAT TATAACAGTAATAGTTTCTTTGGTTAGTATCTATAAGGAT >HWI-ST766:129:D0WJDACXX:4:2308:2922:199946.1 /start=1... (4 Replies)
Discussion started by: fozrun
4 Replies

6. Shell Programming and Scripting

Parsing files depending on the content

I am trying to parse files kkapjil kkpcjil kkexjil ...which have autosys job names. The objective is to parse each file...do an autorep -j <job name > -q and write it as output with a line for condition at the end of the each job. The problem I am facing is with the box jobs...as autorep -j <box... (0 Replies)
Discussion started by: w020637
0 Replies

7. UNIX for Dummies Questions & Answers

Really need some help with Parsing files by date

Hi, I am new to Unix and need some help with a problem I have. I have been asked to ftp a file(s) from a directory to another system. I need to be able to allow the current days file to build and only send any other file across that is in the directory. I need a peice of code that will read... (3 Replies)
Discussion started by: darrenwg99
3 Replies

8. Shell Programming and Scripting

Parsing xml files

I want to search for all the xml files on the server that have "Status" in them. Is this the correct code that I should use? Can anyone explain exactually what this code does? xmlFileNames=$(find . -name "*.xml" -exec grep -l ".*Status" {} \; 2>/dev/null) (9 Replies)
Discussion started by: emc^24sho
9 Replies

9. Shell Programming and Scripting

Parsing through list of files

I have a requirement where I need parse through files in a directory which have a specific pattern and then check whether the file has been processed or not. The exit condition is any file that has been processed will have an entry in database. If it is processed i.e., if an entry is present for... (4 Replies)
Discussion started by: abhilashnair
4 Replies

10. Shell Programming and Scripting

Parsing large files in Solaris 11

I have a 1.2G file that contains no newline characters. This is essentially a log file with each entry being exactly 78bits long. The basic format is /DATE/USER/MISC/. The single uniform thing about the file is that that the 8 character is always ":" I worked with smaller files of the same... (8 Replies)
Discussion started by: os2mac
8 Replies
MV(1)							      General Commands Manual							     MV(1)

NAME
mv - move or rename files SYNOPSIS
mv [ -i ] [ -f ] [ - ] file1 file2 mv [ -i ] [ -f ] [ - ] file ... directory DESCRIPTION
Mv moves (changes the name of) file1 to file2. If file2 already exists, it is removed before file1 is moved. If file2 has a mode which forbids writing, mv prints the mode (see chmod(2)) and reads the standard input to obtain a line; if the line begins with y, the move takes place; if not, mv exits. In the second form, one or more files (plain files or directories) are moved to the directory with their original file-names. Mv refuses to move a file onto itself. Options: -i stands for interactive mode. Whenever a move is to supercede an existing file, the user is prompted by the name of the file followed by a question mark. If he answers with a line starting with 'y', the move continues. Any other reply prevents the move from occur- ring. -f stands for force. This option overrides any mode restrictions or the -i switch. - means interpret all the following arguments to mv as file names. This allows file names starting with minus. SEE ALSO
cp(1), ln(1) BUGS
If file1 and file2 lie on different file systems, mv must copy the file and delete the original. In this case the owner name becomes that of the copying process and any linking relationship with other files is lost. 4th Berkeley Distribution April 29, 1985 MV(1)
All times are GMT -4. The time now is 01:19 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy