Search Results

Search: Posts Made By: vikasghavate
8,570
Posted By vikasghavate
#! /bin/bash while read ip do ping $i ...
#! /bin/bash
while read ip
do
ping $i
done < serverlist > output.txt_$$
2,222
Posted By vikasghavate
$ cat a.txt ABC_DATA_CUSTIOMERS_20120617.dat ...
$ cat a.txt
ABC_DATA_CUSTIOMERS_20120617.dat
ABC_DATA_PRODUCTS_20120617.dat

$ cat a.txt | awk -F"[_.]" '{print $3"."$NF}' a.txt
CUSTIOMERS.dat
PRODUCTS.dat
1,882
Posted By vikasghavate
If your file name happens to change frequently...
If your file name happens to change frequently then you have re-write the code to take the argument from a seperate static file.


#!/bin/ksh

today=`date +"%d_%m_%y"`

while read FILE
do...
3,881
Posted By vikasghavate
Please be specific with your question. How do you...
Please be specific with your question. How do you want to find the line in first file, is it by pattern or line number and which line should get replaced in 2nd file???
Showing results 1 to 4 of 4

 
All times are GMT -4. The time now is 05:07 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy