Hi,
I am below cut command:
cat test.txt | cut -c 1-320 > test_final.txt
This will cut till 320 width of each line. But i am not able to cut, if a line include an special characters(such as Ü,ç,ò,etc).
Please Help on this
Thanks
Umar
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
#!/bin/ksh
set noglob
cat test.txt | cut -c 1-320 > test_final.txt
The Korn shell in cygwin cuts the characters without any problems.
If those characters you posted are out of your data file, then you have a NULL character in your string. You’ll need to convert them to a space in order to solve your problem.