Search Results

Search: Posts Made By: kpkanani
2,395
Posted By kpkanani
:b::b::b:
:b::b::b:
2,395
Posted By kpkanani
@Corona688 .... this forum is not to give exact...
@Corona688 .... this forum is not to give exact and complex answer. Person who is asking question needs to learn as well. Hence i used cat and grep so that by executing person can learn.:D:D
2,395
Posted By kpkanani
Simplest solution you can try below: cat...
Simplest solution you can try below:
cat temp.txt | grep -v -i "^start$" | grep -v -i "^end$" | paste -d, - - - -



Please use CODE tags as required by forum rules!
1,638
Posted By kpkanani
use below code which wills serve your purpose.
#!/bin/bash
BASE_DIR=/Users/karan/Practice_Shell_Scripting/Move_Invoice
SOURCE_DIR=/Users/karan/Practice_Shell_Scripting/Move_Invoice/Source_DIR...
24,162
Posted By kpkanani
Please use below
Hello Bhaskar,
This is what you need??$ cat file3
COL1,COL2,COL3,COL4,COL5
1,A,B,C,D
2,e,f,g,h
$ cat file3 | awk -F "," '{out=$1; for(i=2;i<=NF-2;i++){out=out","$i}; print out","$(NF-1)$NF}'...
Showing results 1 to 5 of 5

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