Sponsored Content
Full Discussion: another textprocessing
Top Forums Shell Programming and Scripting another textprocessing Post 302500433 by jurgen on Monday 28th of February 2011 03:04:09 PM
Old 02-28-2011
I will test it...(can not do it at the moment)...on the first view I absolutley dont understand this part:
/\1\3\/\2\3\4

---------- Post updated at 03:01 PM ---------- Previous update was at 02:57 PM ----------

---------- Post updated at 03:04 PM ---------- Previous update was at 03:01 PM ----------

Quote:
Originally Posted by panyam
Just a change to the solution suggested above

Code:
 
sed -r 's/.*_([0-9]+).txt/\1\/&/'

thanks...but how do you put the date after update/....you just copy it?
 
SPLIT(1)								FSF								  SPLIT(1)

NAME
split - split a file into pieces SYNOPSIS
split [OPTION] [INPUT [PREFIX]] DESCRIPTION
Output fixed-size pieces of INPUT to PREFIXaa, PREFIXab, ...; default PREFIX is `x'. With no INPUT, or when INPUT is -, read standard input. Mandatory arguments to long options are mandatory for short options too. -a, --suffix-length=N use suffixes of length N (default 2) -b, --bytes=SIZE put SIZE bytes per output file -C, --line-bytes=SIZE put at most SIZE bytes of lines per output file -l, --lines=NUMBER put NUMBER lines per output file --verbose print a diagnostic to standard error just before each output file is opened --help display this help and exit --version output version information and exit SIZE may have a multiplier suffix: b for 512, k for 1K, m for 1 Meg. AUTHOR
Written by Torbjorn Granlund and Richard M. Stallman. REPORTING BUGS
Report bugs to <bug-coreutils@gnu.org>. COPYRIGHT
Copyright (C) 2002 Free Software Foundation, Inc. This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICU- LAR PURPOSE. SEE ALSO
The full documentation for split is maintained as a Texinfo manual. If the info and split programs are properly installed at your site, the command info split should give you access to the complete manual. split (coreutils) 4.5.3 February 2003 SPLIT(1)
All times are GMT -4. The time now is 11:28 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy