In a file tht i copied from the web , i am not able to remove the leading white spaces. I tried the below , none of them working . I opened the file through vi to check for the special characters if any , but no such characters found.
Your advice will be greatly appreciated.
sed 's/^\s*//g' file_name.txt
sed 's/^[ \t]*//g' file_name.txt
sed 's/^[ \t]*//' file_name.txt
sed 's/ //g' file_name.txt