![]() |
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.
|
|
google unix.com
|
|||||||
| Forums | Register | Forum Rules | Links | Albums | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| Shell Programming and Scripting Post questions about KSH, CSH, SH, BASH, PERL, PHP, SED, AWK and OTHER shell scripts and shell scripting languages here. |
More UNIX and Linux Forum Topics You Might Find Helpful
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| String substitution on find results inside exec/xargs | myndcraft | Shell Programming and Scripting | 2 | 05-17-2008 02:36 PM |
| complex command substitution | spopuri | Shell Programming and Scripting | 5 | 05-24-2006 08:37 AM |
| command substitution problems with csh using grep | voodoo31 | Shell Programming and Scripting | 2 | 01-14-2006 07:39 AM |
| Preserving space during command substitution | Sabari Nath S | UNIX for Dummies Questions & Answers | 1 | 10-04-2005 09:16 AM |
| Substitution of last command | ghazi | Shell Programming and Scripting | 6 | 01-16-2005 07:06 PM |
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
||||
|
joining command results, and substitution
Hello community
I'd like to join to command results and put it to the same line in one file, how can I do that? file: a.txt so when I put Date '+%H:%M' and echo date '+%D' in the file appears 14:44 01/05/08 not 14:44 01/05/08 I like to know how can I make a substituion of a whole line in a file, to put an example I'd like to change the line where the first column it's like 14:44 for 14:44 02/05/08 Thanks |
|
||||
|
Ok XD
Let's suppose the commands are different, maybe one is a query to the system with the largest file on a folder and the other is the current date so the result should be: ls | sort ... | cut .... (or tail) ... date ... the result could be "somefile.dat 19/01/12" not somefile.dat 19/01/12 Sorry for my bad explanation :_( |
![]() |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|