Bug 478524 - Konsole is not allowing me to write scripts/programs that print the standard output to a file. I'm writing a program that includes
Summary: Konsole is not allowing me to write scripts/programs that print the standard ...
Status: RESOLVED NOT A BUG
Alias: None
Product: konsole
Classification: Applications
Component: single-process (show other bugs)
Version: unspecified
Platform: Kubuntu Linux
: NOR normal
Target Milestone: ---
Assignee: Konsole Developer
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2023-12-14 21:01 UTC by Randy Robinson
Modified: 2023-12-17 05:50 UTC (History)
2 users (show)

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Randy Robinson 2023-12-14 21:01:39 UTC
SUMMARY
***
NOTE: If you are reporting a crash, please try to attach a backtrace with debug symbols.
See https://community.kde.org/Guidelines_and_HOWTOs/Debugging/How_to_create_useful_crash_reports
***


STEPS TO REPRODUCE
1.   apt list --installed | grep "autoconf" "automake" "recutils" "gettext" "glibc" "GnuTLS" "GNU make" "iptables" "libtool" "libltdl" "libgcrypt" "libidn2" "libidn" "libmicrohttpd" "libunistring" "libjansson" "libjose" "libgmp" "libcurl" "Texinfo" "Texlive" "makeinfo" "pkgconf" "zlib" >results.txt && nano results.txt 

2.
 
3. 

OBSERVED RESULT
The results will not print to "results.txt"

EXPECTED RESULT
The script should search for the listed packages, and print the output to results.txt.  Afterward, nano" opens results.txt, so that programmers can read the output from there. I am working on a group of system diagnostic programs that will be used for personal computer maintenance.



About my Computer:

Windows: 
macOS: 
Linux/KDE Plasma:  6.5.14  
KDE Plasma Version: 5.27.8
KDE Frameworks Version: 5.110.0
Qt Version: 5.15.10

ADDITIONAL INFORMATION
Comment 1 Vincenc Elias 2023-12-14 21:54:28 UTC
Thanks for your report!
Any bug reports are appreciated but the syntax of your command is wrong. If you want search for multiple strings use: grep "string1\|string2\|string3". If you write it like this: grep "string1" "string2", it will look for string1 in file named string2. It will basically return an error.